CN104539448B - A kind of method, collecting unit and system for being used to gather exchanger information - Google Patents
A kind of method, collecting unit and system for being used to gather exchanger information Download PDFInfo
- Publication number
- CN104539448B CN104539448B CN201410778853.8A CN201410778853A CN104539448B CN 104539448 B CN104539448 B CN 104539448B CN 201410778853 A CN201410778853 A CN 201410778853A CN 104539448 B CN104539448 B CN 104539448B
- Authority
- CN
- China
- Prior art keywords
- switch
- information
- switch information
- unit
- storage unit
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明提供了一种在计算机系统中用于采集并存储交换机信息的方法,该方法包括:所述至少一个采集单元中的每个采集单元根据交换机的被采集项的标识信息,采集所述交换机的交换机信息,并将所述交换机信息提供给所述分配单元;对于每个接收到的交换机信息,所述分配单元根据所述交换机信息,确定与该交换机信息对应的存储单元,并将该交换机信息发送给对应的存储单元;所述至少一个存储单元中的每个存储单元对接收到的交换机信息进行存储。根据本发明的方案,在采集并存储交换机信息的过程中,无需考虑交换机的厂商和型号不同而带来的兼容问题。
The present invention provides a method for collecting and storing switch information in a computer system, the method comprising: each collecting unit in the at least one collecting unit collects the information of the switch according to the identification information of the collected item of the switch switch information, and provide the switch information to the distribution unit; for each received switch information, the distribution unit determines the storage unit corresponding to the switch information according to the switch information, and sends the switch information The information is sent to a corresponding storage unit; each storage unit in the at least one storage unit stores the received switch information. According to the solution of the present invention, in the process of collecting and storing switch information, there is no need to consider compatibility issues caused by different manufacturers and models of switches.
Description
技术领域technical field
本发明涉及计算机技术领域,尤其涉及一种用于采集交换机信息的方法、采集单元和系统。The invention relates to the field of computer technology, in particular to a method, a collection unit and a system for collecting switch information.
背景技术Background technique
现有技术中,一个网络中通常会部属有由多个不同厂商所生产的交换机;并且,对于同一厂商,该网络中往往会存在该厂商所生产的不同型号的交换机。因此,若在该网络中采集不同厂商或同一厂商的不同型号的多个交换机的交换机信息,则会遇到兼容问题。In the prior art, switches produced by multiple different manufacturers are usually deployed in a network; and, for the same manufacturer, switches of different models produced by the manufacturer often exist in the network. Therefore, if the switch information of multiple switches of different manufacturers or different models of the same manufacturer is collected in the network, compatibility problems will be encountered.
发明内容Contents of the invention
本发明的目的是提供一种用于采集交换机信息的方法、采集单元和系统。The purpose of the present invention is to provide a method, a collection unit and a system for collecting exchange information.
根据本发明的一个方面,提供一种在采集单元中用于采集交换机信息的方法,其中,该方法包括以下步骤:According to one aspect of the present invention, a method for collecting switch information in a collection unit is provided, wherein the method includes the following steps:
根据交换机的被采集项的标识信息,采集所述交换机的交换机信息,其中,所述交换机信息包括所述被采集项的值;Collecting switch information of the switch according to the identification information of the collected item of the switch, wherein the switch information includes the value of the collected item;
将所述交换机信息提供给用于为交换机信息分配存储位置的分配单元。The switch information is provided to an allocating unit for allocating a storage location for the switch information.
根据本发明的另一个方面,还提供了一种在计算机系统中用于采集并存储交换机信息的方法,其中,所述计算机系统包括至少一个采集单元、分配单元以及至少一个存储单元,该方法包括以下步骤:According to another aspect of the present invention, there is also provided a method for collecting and storing switch information in a computer system, wherein the computer system includes at least one collection unit, an allocation unit, and at least one storage unit, and the method includes The following steps:
所述至少一个采集单元中的每个采集单元根据交换机的被采集项的标识信息,采集所述交换机的交换机信息,并将所述交换机信息提供给所述分配单元,其中,所述交换机信息包括所述被采集项的值;Each collection unit in the at least one collection unit collects switch information of the switch according to the identification information of the collected item of the switch, and provides the switch information to the distribution unit, wherein the switch information includes the value of the collected item;
对于每个接收到的交换机信息,所述分配单元根据所述交换机信息,确定与该交换机信息对应的存储单元,并将该交换机信息发送给对应的存储单元;For each switch information received, the allocating unit determines a storage unit corresponding to the switch information according to the switch information, and sends the switch information to the corresponding storage unit;
所述至少一个存储单元中的每个存储单元对接收到的交换机信息进行存储。Each storage unit of the at least one storage unit stores the received switch information.
根据本发明的另一方面,还提供了一种用于采集交换机信息的采集单元,其中,该采集单元包括以下装置:According to another aspect of the present invention, a collection unit for collecting switch information is also provided, wherein the collection unit includes the following devices:
用于根据交换机的被采集项的标识信息,采集所述交换机的交换机信息的装置,其中,所述交换机信息包括所述被采集项的值;A device for collecting switch information of the switch according to the identification information of the collected item of the switch, wherein the switch information includes the value of the collected item;
用于将所述交换机信息提供给用于为交换机信息分配存储位置的分配单元的装置。Means for providing said switch information to an allocating unit for allocating storage locations for switch information.
根据本发明的另一方面,还提供了一种用于采集并存储交换机信息的计算机系统,其中,所述计算机系统包括至少一个采集单元、分配单元以及至少一个存储单元,其中:According to another aspect of the present invention, there is also provided a computer system for collecting and storing switch information, wherein the computer system includes at least one collection unit, distribution unit and at least one storage unit, wherein:
所述至少一个采集单元中的每个采集单元根据交换机的被采集项的标识信息,采集所述交换机的交换机信息,并将所述交换机信息提供给所述分配单元,其中,所述交换机信息包括所述被采集项的值;Each collection unit in the at least one collection unit collects switch information of the switch according to the identification information of the collected item of the switch, and provides the switch information to the distribution unit, wherein the switch information includes the value of the collected item;
对于每个接收到的交换机信息,所述分配单元根据所述交换机信息,确定与该交换机信息对应的存储单元,并将该交换机信息发送给对应的存储单元;For each switch information received, the allocating unit determines a storage unit corresponding to the switch information according to the switch information, and sends the switch information to the corresponding storage unit;
所述至少一个存储单元中的每个存储单元对接收到的交换机信息进行存储。Each storage unit of the at least one storage unit stores the received switch information.
与现有技术相比,本发明具有以下优点:1)在采集交换机信息的过程中,不需要考虑交换机的生产厂商和型号是否相同,从而解决了现有技术中的兼容问题,具有极强的通用性,并且,可通过在外部数据单元中预先存储所有交换机的被采集项的标识信息,以实现对网络中的交换机以及被采集项的统一管理,且在新增交换机以及被采集项时,仅需要更新外部数据单元,而无需针对每个采集单元进行更新,这为系统的扩展以及更新提供了极大的便利,减少了人工操作;2)基于采集单元的可扩展性,可在大规模的交换机部署中进行交换机信息的采集,且由该方案可以跨IDC机房来采集交换机信息,且不会由于交换机设备数量的增大而引起采集瓶颈;3)分配单元能够根据交换机信息,为交换机信息分配存储位置;4)存储单元支持对交换机信息的临时存储和长期存储,且由于存储单元的可扩展性,当网络规模增大或交换机数量增加时,可随时通过增加物理存储介质来对存储单元进行扩展;5)查询单元可根据被查询项的标识信息,从相应的存储单元中查询交换机信息,以在计算机系统中提供即时的和历史的交换机信息的查询功能,使得交换机信息具备可视化特点,更便于系统的了解与维护;6)本发明的计算机系统中的采集单元、分配单元、存储单元、查询单元之间具有高内聚松耦合的特点,每个单元可以进行单独的更新,而不会影响到其他单元的功能。Compared with the prior art, the present invention has the following advantages: 1) in the process of collecting exchange information, it is not necessary to consider whether the manufacturer and model of the exchange are the same, thereby solving the compatibility problem in the prior art and having a strong Versatility, and, by pre-storing the identification information of the collected items of all switches in the external data unit, the unified management of the switches and collected items in the network can be realized, and when new switches and collected items are added, It is only necessary to update the external data unit instead of updating each acquisition unit, which provides great convenience for system expansion and update and reduces manual operations; 2) based on the scalability of the acquisition unit, it can be used on a large scale In the switch deployment, the switch information is collected, and the solution can collect the switch information across the IDC computer room, and the collection bottleneck will not be caused by the increase in the number of switch devices; 3) the distribution unit can generate the switch information according to the switch information Allocate storage locations; 4) The storage unit supports temporary storage and long-term storage of switch information, and due to the scalability of the storage unit, when the network scale increases or the number of switches increases, the storage unit can be updated at any time by adding physical storage media Expand; 5) the query unit can query the exchange information from the corresponding storage unit according to the identification information of the inquired item, so as to provide the instant and historical inquiry function of the exchange information in the computer system, so that the exchange information has the characteristics of visualization, It is more convenient for the understanding and maintenance of the system; 6) the acquisition unit, the distribution unit, the storage unit, and the query unit in the computer system of the present invention have the characteristics of high cohesion and loose coupling, and each unit can be updated independently without Will affect the function of other units.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1为本发明一个优选实施例的计算机系统的架构示意图;Fig. 1 is the structural representation of the computer system of a preferred embodiment of the present invention;
图2为本发明一个优选实施例的用于采集并存储交换机信息的方法的流程示意图;FIG. 2 is a schematic flowchart of a method for collecting and storing switch information in a preferred embodiment of the present invention;
图3为本发明一个优选实施例的用于采集并存储交换机信息的系统的结构示意图。Fig. 3 is a schematic structural diagram of a system for collecting and storing switch information according to a preferred embodiment of the present invention.
附图中相同或相似的附图标记代表相同或相似的部件。The same or similar reference numerals in the drawings represent the same or similar components.
具体实施方式detailed description
下面结合附图对本发明作进一步详细描述。The present invention will be described in further detail below in conjunction with the accompanying drawings.
图1为本发明的一个优选实施例的计算机系统的架构示意图。FIG. 1 is a schematic diagram of the computer system architecture of a preferred embodiment of the present invention.
该计算机系统包括至少一个采集单元、分配单元以及至少一个存储单元。The computer system includes at least one collection unit, distribution unit and at least one storage unit.
其中,所述至少一个采集单元中的每个采集单元根据交换机的被采集项的标识信息,采集所述交换机的交换机信息,并将所述交换机信息提供给所述分配单元;对于每个接收到的交换机信息,所述分配单元根据所述交换机信息,确定与该交换机信息对应的存储单元,并将该交换机信息发送给对应的存储单元;所述至少一个存储单元中的每个存储单元对接收到的交换机信息进行存储。Wherein, each collection unit in the at least one collection unit collects the switch information of the switch according to the identification information of the collected item of the switch, and provides the switch information to the distribution unit; for each received switch information, the allocation unit determines the storage unit corresponding to the switch information according to the switch information, and sends the switch information to the corresponding storage unit; each storage unit in the at least one storage unit receives Store the received switch information.
其中,所述采集单元包括任何用于采集交换机信息的功能单元;例如,采集单元为用于采集交换机信息的探针Snmp_probe。优选地,采集单元所属的设备与所述交换机不同,如采集单元所属的设备为服务器等;且一个采集单元能够采集至少一个交换机的交换机信息。更优选地,不同的采集单元所对应的交换机互不重叠;例如,采集单元Cunit1用于采集机房IDC1中的所有交换机的交换机信息,采集单元Cunit2用于采集机房IDC2中的所有交换机的交换机信息。需要说明的是,任何能够安装所述采集单元的计算机设备,均可作为该采集单元所属的设备,且不同的采集单元可能分别安装在多个计算机设备中。Wherein, the collection unit includes any functional unit for collecting switch information; for example, the collection unit is a probe Snmp_probe for collecting switch information. Preferably, the device to which the collection unit belongs is different from the switch, for example, the device to which the collection unit belongs is a server, etc.; and one collection unit can collect switch information of at least one switch. More preferably, the switches corresponding to different collection units do not overlap each other; for example, the collection unit Cunit1 is used to collect switch information of all switches in the computer room IDC1, and the collection unit Cunit2 is used to collect switch information of all switches in the computer room IDC2. It should be noted that any computer device capable of installing the collection unit can be used as the device to which the collection unit belongs, and different collection units may be respectively installed in multiple computer devices.
其中,所述分配单元包括任何可用于为交换机信息分配存储位置的功能单元;例如,分配单元为能够用于为交换机信息分配存储位置的客户端。需要说明的是,任何能够安装所述分配单元的计算机设备,均可作为该分配单元所属的设备。Wherein, the allocation unit includes any functional unit that can be used to allocate storage locations for switch information; for example, the allocation unit is a client that can be used to allocate storage locations for switch information. It should be noted that any computer device capable of installing the distribution unit can be used as the device to which the distribution unit belongs.
其中,所述存储单元包括任何可用于存储交换机信息的功能单元,如物理存储器、云存储等。优选地,所述存储单元包括内存储器和外存储器。其中,所述内存储器包括但不限于寄存器、高速缓冲存储器、主存储器等;所述外存储器包括但不限于软盘存储器、硬盘存储器、光盘存储器等。需要说明的是,任何能够安装所述存储单元的计算机设备,均可作为该存储单元所属的设备,且多个的存储单元可分别安装在多个设备中,或安装在同一个设备中。Wherein, the storage unit includes any functional unit that can be used to store switch information, such as physical storage, cloud storage, and the like. Preferably, the storage unit includes an internal memory and an external memory. Wherein, the internal storage includes but not limited to registers, cache memory, main memory, etc.; the external storage includes but not limited to floppy disk storage, hard disk storage, optical disk storage, etc. It should be noted that any computer device capable of installing the storage unit can be used as the device to which the storage unit belongs, and multiple storage units can be respectively installed in multiple devices, or installed in the same device.
需要说明的是,存储单元和分配单元可能被集成在同一个计算机设备中。It should be noted that the storage unit and the distribution unit may be integrated in the same computer device.
其中,上述计算机设备包括但不限于单个网络服务器、多个网络服务器组成的服务器组或基于云计算(Cloud Computing)的由大量计算机或网络服务器构成的云,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机;所述计算机设备所处的网络包括但不限于互联网、广域网、城域网、局域网、VPN(VirtualPrivate Network,虚拟专用网络)网络等。Wherein, the above-mentioned computer equipment includes but not limited to a single network server, a server group composed of multiple network servers, or a cloud composed of a large number of computers or network servers based on Cloud Computing (Cloud Computing), wherein Cloud Computing is a type of distributed computing. A super virtual computer composed of a group of loosely coupled computer sets; the network where the computer equipment is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a VPN (Virtual Private Network, virtual private network) network, etc.
需要说明的是,所述计算机设备仅为举例,其他现有的或今后可能出现的计算机设备如可适用于本发明,也应包含在本发明保护范围以内,并以引用方式包含于此。It should be noted that the computer equipment described above is only an example, and other existing or future computer equipment applicable to the present invention should also be included in the protection scope of the present invention and included here by reference.
图2为本发明一个优选实施例的用于采集交换机信息的方法的流程示意图。Fig. 2 is a schematic flowchart of a method for collecting switch information according to a preferred embodiment of the present invention.
根据本实施例的方法包括步骤S1、步骤S2、步骤S3和步骤S4。The method according to this embodiment includes step S1, step S2, step S3 and step S4.
其中,本实施例的方法主要通过采集单元、分配单元、存储单元来实现。Wherein, the method of this embodiment is mainly implemented by a collection unit, a distribution unit, and a storage unit.
在步骤S1中,采集单元根据交换机的被采集项的标识信息,采集所述交换机的交换机信息。In step S1, the collecting unit collects the switch information of the switch according to the identification information of the collected item of the switch.
其中,所述被采集项包括任何在交换机中能够被采集的项;优选地,所述被采集项包括但不限于:Wherein, the collected items include any items that can be collected in the switch; preferably, the collected items include but are not limited to:
1)交换机的端口流量。1) Port traffic of the switch.
其中,所述端口流量包括交换机在入(in)方向上的端口流量和出(out)方向上的端口流量。优选地,所述端口流量的oid(Object Identifier Desendant,对象标示符)符合RFC(Requests For Comment,请求注释)的规定。Wherein, the port traffic includes the port traffic of the switch in the incoming (in) direction and the port traffic in the outgoing (out) direction. Preferably, the oid (Object Identifier Desendant, object identifier) of the port traffic complies with the regulations of RFC (Requests For Comment, request for comment).
2)交换机的CPU使用信息。2) CPU usage information of the switch.
其中,所述CPU使用信息包括任何与CPU的使用情况相关的信息;优选地,所述CPU使用信息包括但不限于CPU温度、CPU利用率等。Wherein, the CPU usage information includes any information related to CPU usage; preferably, the CPU usage information includes but not limited to CPU temperature, CPU utilization rate and the like.
3)交换机的错误包/丢包信息。3) Error packet/packet loss information of the switch.
其中,所述错误包/丢包信息包括交换机在入方向上的错误包/丢包信息和出方向上的错误包/丢包信息。Wherein, the error packet/packet loss information includes the error packet/packet loss information of the switch in the inbound direction and the error packet/packet loss information in the outbound direction.
需要说明的是,上述被采集项仅为举例,本领域技术人员应能理解,任何在交换机中能够被采集的项,均应包含在本发明所述的被采集项的范围内。It should be noted that the above collected items are only examples, and those skilled in the art should understand that any item that can be collected in the switch should be included in the scope of the collected items described in the present invention.
其中,所述被采集项的标识信息包括任何能够唯一标识被采集项的信息;优选地,所述标识信息包括但不限于被采集项的oid等;例如,交换机在入方向上的端口流量的oid为1.3.6.1.2.1.31.1.1.1.6.1,在出方向上的端口流量的oid为1.3.6.1.2.1.31.1.1.1.10.1。Wherein, the identification information of the collected item includes any information that can uniquely identify the collected item; preferably, the identification information includes but not limited to the oid of the collected item; for example, the port traffic of the switch in the inbound direction The oid is 1.3.6.1.2.1.31.1.1.1.6.1, and the oid of port traffic in the outbound direction is 1.3.6.1.2.1.31.1.1.1.10.1.
其中,所述交换机信息包括被采集项的值。优选地,所述交换机信息包括但不限于被采集项的标识信息、被采集项的值等;更优选地,所述交换机信息可表示为(key,value),其中,“key”标识被采集项的标识信息,“value”表示该被采集项的值。Wherein, the switch information includes the value of the collected item. Preferably, the switch information includes but not limited to the identification information of the collected item, the value of the collected item, etc.; more preferably, the switch information can be expressed as (key, value), where "key" identifies the collected item The identification information of the item, "value" indicates the value of the collected item.
其中,采集单元可采用多种方式获取交换机的被采集项的标识信息。Wherein, the collection unit may obtain the identification information of the collected items of the switch in various ways.
例如,采集单元直接获取用户输入的被采集项的标识信息。For example, the collection unit directly obtains the identification information of the collected item input by the user.
又例如,采集单元根据被采集的交换机的标识信息,读取与该交换机对应的被采集项的标识信息。其中,所述交换机的标识信息用于标识该交换机;优选地,所述交换机的标识信息包括但不限于交换机的型号等。For another example, the collection unit reads the identification information of the collected item corresponding to the exchange according to the identification information of the exchange to be collected. Wherein, the identification information of the switch is used to identify the switch; preferably, the identification information of the switch includes but not limited to the model of the switch.
进一步地,在上例中,采集单元可采用多种方式根据被采集的交换机的标识信息,读取与该交换机对应的被采集项的标识信息。Further, in the above example, the collection unit may read the identification information of the collected item corresponding to the exchange according to the identification information of the collected exchange in various ways.
例如,采集单元根据被采集的交换机的标识信息,从本地数据库中读取该交换机的被采集项的标识信息。For example, the collection unit reads the identification information of the collected item of the switch from the local database according to the collected identification information of the switch.
又例如,采集单元根据被采集的交换机的标识信息,从外部数据单元中,读取该交换机的被采集项的标识信息。优选地,所述外部数据单元中预先存储各种类型的交换机的所有被采集项的标识信息。需要说明的是,当计算机系统中包括多个采集单元时,所述外部数据单元中可预先存储该多个采集单元中每个采集单元所对应的全部交换机的所有被采集项的标识信息。For another example, the collection unit reads the identification information of the collected item of the switch from the external data unit according to the collected identification information of the switch. Preferably, the external data unit pre-stores identification information of all collected items of various types of switches. It should be noted that, when the computer system includes multiple collection units, the external data unit may pre-store identification information of all collected items of all switches corresponding to each collection unit in the multiple collection units.
具体地,采集单元根据交换机的被采集项的标识信息,采集该被采集项所对应的交换机信息。Specifically, the collection unit collects switch information corresponding to the collected item according to the identification information of the collected item of the switch.
例如,被采集项包括交换机的CPU利用率,该CPU利用率的oid为1.3.6.1.4.2011.10.2.6.1.1.1.1.6;在步骤S1中,采集单元根据CPU利用率的oid,采集CPU利用率所对应的交换机信息,该交换机信息包括CPU利用率的值。For example, the collected item includes the CPU utilization rate of the switch, and the oid of the CPU utilization rate is 1.3.6.1.4.2011.10.2.6.1.1.1.1.6; in step S1, the collection unit collects the CPU utilization rate according to the oid of the CPU utilization rate The switch information corresponding to the rate, the switch information includes the CPU utilization value.
作为步骤S1的一种优选方案,步骤S1包括以下步骤:采集单元根据交换机被采集的对象的对象信息以及在该对象上的被采集项的标识信息,采集所述交换机的交换机信息。As a preferred solution of step S1, step S1 includes the following steps: the collecting unit collects the switch information of the switch according to the object information of the object collected by the switch and the identification information of the collected item on the object.
其中,所述被采集的对象包括交换机上任何能够被采集的元件,如交换机的端口等。所述对象信息包括任何用于指示被采集的对象的信息。例如,被采集的对象为交换机的端口,所述对象信息包括该端口的端口号;如,对象信息为196.168.8.1_1_1,该对象信息用于指示被采集的对象是:IP地址为196.168.8.1的交换机的第1个板卡(或槽位)的第一个端口。Wherein, the collected objects include any components on the switch that can be collected, such as ports of the switch. The object information includes any information indicative of the object being captured. For example, the collected object is a port of a switch, and the object information includes the port number of the port; such as, the object information is 196.168.8.1_1_1, and the object information is used to indicate that the collected object is: IP address is 196.168.8.1 The first port of the first card (or slot) of the switch.
其中,所述交换机信息包括被采集项在该对象上的值。例如,交换机信息包括被采集项在“196.168.8.1_1_1”所对应的端口上的值。Wherein, the switch information includes the value of the collected item on the object. For example, the switch information includes the value of the collected item on the port corresponding to "196.168.8.1_1_1".
其中,采集单元获取交换机被采集的对象的对象信息的实现方式与前述采集单元获取交换机的被采集项的标识信息的实现方式相同或者相似,在此不再赘述。Wherein, the acquisition unit acquires the object information of the object collected by the switch in the same or similar manner as the aforementioned acquisition unit acquires the identification information of the item collected by the switch, and will not be repeated here.
具体地,该优选方案中,采集单元根据交换机被采集的对象的对象信息以及在该对象上的被采集项的标识信息,采集该被采集项所对应的交换机信息。Specifically, in this preferred solution, the collection unit collects the switch information corresponding to the collected item according to the object information of the collected object of the switch and the identification information of the collected item on the object.
例如,交换机被采集的对象为端口,对象信息包括该端口的端口号“GigabitEthernet1/1/1”,其中,“GigabitEthernet1/1/1”表示第1个槽位的第1个子槽位的第1个GigabitEthernet(千兆以太网)端口,被采集项包括交换机在入方向上的端口流量,该入方向上的端口流量的oid为1.3.6.1.2.1.31.1.1.1.6.1;则在步骤S1中,采集单元根据该对象信息以及入方向上的端口流量的oid,在交换机的端口GigabitEthernet1/1/1上采集入方向上的端口流量的值。For example, the object collected by the switch is a port, and the object information includes the port number "GigabitEthernet1/1/1", where "GigabitEthernet1/1/1" represents the first slot of the first sub-slot of the first slot. GigabitEthernet (gigabit Ethernet) ports, the collected items include the port traffic of the switch on the incoming direction, and the oid of the port traffic on the incoming direction is 1.3.6.1.2.1.31.1.1.1.6.1; then in step S1 , the collection unit collects the value of the port flow in the inbound direction on the port GigabitEthernet1/1/1 of the switch according to the object information and the oid of the port flow in the inbound direction.
优选地,在步骤S1中,采集单元采集交换机信息的操作基于SNMP(Simple NetworkManagement Protocol,简单网络管理协议)来实现。例如,采集单元为基于SNMP协议的探针Snmp_probe,且采集单元基于SNMP协议来采集交换机的交换机信息。Preferably, in step S1, the collection unit collects switch information based on SNMP (Simple Network Management Protocol, Simple Network Management Protocol). For example, the collection unit is a probe Snmp_probe based on the SNMP protocol, and the collection unit collects switch information of the switch based on the SNMP protocol.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何根据交换机的被采集项的标识信息,采集所述交换机的交换机信息的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only to better illustrate the technical solution of the present invention, rather than limiting the present invention. Those skilled in the art should understand that any switch that collects the switch according to the identification information of the item to be collected of the switch The realization of information shall be included in the scope of the present invention.
在步骤S2中,采集单元将所采集到的交换机信息提供给用于为交换机信息分配存储位置的分配单元。In step S2, the collecting unit provides the collected switch information to an allocating unit for allocating storage locations for the switch information.
具体地,采集单元基于该采集单元所属设备与分配单元所属设备之间的连接方式,将所采集到的交换机信息提供给用于为交换机信息分配存储位置的分配单元。Specifically, based on the connection mode between the device to which the collection unit belongs and the device to which the distribution unit belongs, the collection unit provides the collected switch information to the distribution unit for allocating storage locations for the switch information.
例如,采集单元基于该采集单元所属设备与分配单元所属设备之间的TCP连接,将在步骤S1中所采集到的交换机信息(key1,value1)发送至分配单元。For example, the collection unit sends the switch information (key1, value1) collected in step S1 to the distribution unit based on the TCP connection between the device to which the collection unit belongs and the device to which the distribution unit belongs.
作为步骤S2的一种优选方案,步骤S2包括以下步骤:采集单元将交换机信息以及与该交换机信息对应的对象信息提供给用于为交换机信息分配存储位置的分配单元。As a preferred solution of step S2, step S2 includes the following steps: the acquisition unit provides the switch information and the object information corresponding to the switch information to the allocating unit for allocating storage locations for the switch information.
例如,采集单元基于该采集单元所属设备与分配单元所属设备之间的TCP连接,将在步骤S1中所采集到的交换机信息(key2,value2)以及与该交换机信息对应的对象信息“196.168.8.1_1_1”发送至分配单元。For example, based on the TCP connection between the device to which the collection unit belongs and the device to which the distribution unit belongs, the collection unit transfers the switch information (key2, value2) collected in step S1 and the object information corresponding to the switch information "196.168.8.1 _1_1" to the allocation unit.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何将所采集到的交换机信息提供给用于为交换机信息分配存储位置的分配单元的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only to better illustrate the technical solution of the present invention, and are not intended to limit the present invention. Those skilled in the art should understand that any switch information that is collected is provided to allocate storage for the switch information. The implementation of the location allocation unit should be included in the scope of the present invention.
在步骤S3中,分配单元根据交换机信息,确定与该交换机信息对应的存储单元,并将该交换机信息发送给对应的存储单元。In step S3, the distribution unit determines the storage unit corresponding to the switch information according to the switch information, and sends the switch information to the corresponding storage unit.
其中,分配单元根据交换机信息,确定与该交换机信息对应的存储单元的方式包括但不限于:Wherein, the allocation unit determines the storage unit corresponding to the switch information according to the switch information, including but not limited to:
1)分配单元根据交换机信息,并结合预定映射规则,直接确定与该交换机信息对应的存储单元。1) The allocation unit directly determines the storage unit corresponding to the switch information according to the switch information and in combination with a predetermined mapping rule.
其中,所述预定映射规则包括任何预定的、交换机信息与存储单元之间的映射规则。例如,预定映射规则用于指示将CPU利用率所对应的交换机信息映射至第1个存储单元,将错误包信息所对应的交换机信息映射至第2个存储单元,将丢包信息所对应的交换机信息映射至第3个存储单元。Wherein, the predetermined mapping rules include any predetermined mapping rules between switch information and storage units. For example, the predetermined mapping rule is used to indicate that the switch information corresponding to the CPU utilization rate is mapped to the first storage unit, the switch information corresponding to the error packet information is mapped to the second storage unit, and the switch information corresponding to the packet loss information is mapped to the second storage unit. Information is mapped to the 3rd memory location.
2)分配单元对所述交换机信息进行数字签名处理,并根据该数字签名处理的结果,确定与该交换机信息对应的存储单元。2) The allocation unit performs digital signature processing on the switch information, and determines the storage unit corresponding to the switch information according to the result of the digital signature processing.
其中,所述数字签名处理包括任何对于固定地输入能产生固定地输出的处理,例如,哈希处理,DSA加密处理、RSA加密处理等。Wherein, the digital signature processing includes any processing that can generate a fixed output for a fixed input, for example, hash processing, DSA encryption processing, RSA encryption processing, and the like.
例如,分配单元对交换机信息中的被采集项的标识信息“1.3.6.1.2.1.31.1.1.1.6.1”采用哈希函数hash_1进行数字签名处理,获得数字处理结果“Sind1”,并将该数字处理结果“Sind1”所对应的存储单元Storage1作为该交换机信息对应的存储单元。For example, the allocation unit uses the hash function hash_1 to perform digital signature processing on the identification information "1.3.6.1.2.1.31.1.1.1.6.1" of the collected item in the exchange information, obtains the digital processing result "Sind1", and converts the digital The storage unit Storage1 corresponding to the processing result "Sind1" is used as the storage unit corresponding to the switch information.
作为步骤S3的一种优选方案,步骤S3包括以下步骤:分配单元根据交换机信息和/或与该交换机信息对应的对象信息,确定与该交换机信息对应的存储单元,并将该交换机信息发送给对应的存储单元。As a preferred solution of step S3, step S3 includes the following steps: the allocation unit determines the storage unit corresponding to the switch information according to the switch information and/or the object information corresponding to the switch information, and sends the switch information to the corresponding storage unit.
具体地,分配单元根据交换机信息和/或与该交换机信息对应的对象信息,确定与该交换机信息对应的存储单元,并将该交换机信息发送给对应的存储单元的实现方式,与前述分配单元根据交换机信息,确定与该交换机信息对应的存储单元,并将该交换机信息发送给对应的存储单元的实现方式相同或者相似,在此不再赘述。Specifically, the allocation unit determines the storage unit corresponding to the switch information according to the switch information and/or the object information corresponding to the switch information, and sends the switch information to the corresponding storage unit. For the switch information, the implementation manner of determining the storage unit corresponding to the switch information and sending the switch information to the corresponding storage unit is the same or similar, and will not be repeated here.
在该优选方案中,更优选地,分配单元还将与该交换机信息对应的对象信息发送给所述存储单元。In this preferred solution, more preferably, the allocation unit also sends the object information corresponding to the switch information to the storage unit.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何根据交换机信息,确定与该交换机信息对应的存储单元,并将该交换机信息发送给对应的存储单元的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only to better illustrate the technical solution of the present invention, and are not intended to limit the present invention. Those skilled in the art should understand that any storage unit corresponding to the switch information is determined according to the switch information, and the The implementation of sending the switch information to the corresponding storage unit should be included in the scope of the present invention.
在步骤S4中,存储单元对接收到的交换机信息进行存储。In step S4, the storage unit stores the received switch information.
优选地,存储单元包括内存储器和外存储器,步骤S4包括以下步骤:当所述交换机信息需要进行临时存储时,将所述交换机信息存储至内存储器中;当所述交换机信息需要进行长期存储时,将所述交换机信息存储至外存储器中。Preferably, the storage unit includes an internal memory and an external memory, and step S4 includes the following steps: when the switch information needs to be temporarily stored, storing the switch information in the internal memory; when the switch information needs to be stored for a long time , storing the switch information in the external memory.
优选地,存储单元可根据交换机信息所对应的被采集项来确定该交换机信息是否需要临时存储或长期存储。例如,当交换机信息所对应的被采集项为交换机的端口流量或CPU使用信息时,该交换机信息需要进行长期存储;当交换机信息所对应的被采集项为交换机的错误包/丢包信息时,该交换机信息需要进行临时存储。Preferably, the storage unit can determine whether the switch information needs to be temporarily stored or long-term stored according to the collected item corresponding to the switch information. For example, when the collected item corresponding to the switch information is port traffic or CPU usage information of the switch, the switch information needs to be stored for a long time; when the collected item corresponding to the switch information is the error packet/packet loss information of the switch, The switch information needs to be stored temporarily.
需要说明的是,存储单元包括内存储器和外存储器时,存储单元可将交换机信息直接存储在外存储器中,或者,同时存储至内存储器和外存储器中,而不考虑是否需要进行临时存储。It should be noted that when the storage unit includes an internal memory and an external memory, the storage unit can directly store the switch information in the external memory, or simultaneously store the information in the internal memory and the external memory, regardless of whether temporary storage is required.
优选地,存储单元还接收到与该交换机信息对应的对象信息,则存储单元在对接收到的交换机信息进行存储时,同时对该对象信息进行存储。Preferably, the storage unit also receives object information corresponding to the switch information, and the storage unit simultaneously stores the object information when storing the received switch information.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何对接收到的交换机信息进行存储的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only to better illustrate the technical solution of the present invention, rather than limit the present invention. Those skilled in the art should understand that any implementation of storing the received switch information should be included in the within the scope of the present invention.
作为一种优选方案,本实施例的计算机系统还包括查询单元,其中,所述查询单元包括任何用于查询交换机信息的功能单元;优选地,需要说明的是,任何能够安装所述查询单元的计算机设备,均可作为该查询单元所属的设备。需要说明的是,查询单元和分配单元,或者,查询单元、分配单元和存储单元可能安装在同一个计算机设备中。As a preferred solution, the computer system of this embodiment further includes a query unit, wherein the query unit includes any functional unit for querying switch information; preferably, it should be noted that any device that can install the query unit Computer equipment can be used as the equipment to which the query unit belongs. It should be noted that the query unit and the distribution unit, or the query unit, the distribution unit and the storage unit may be installed in the same computer device.
本优选方案中,本实施例的方法还包括步骤S5。In this preferred solution, the method in this embodiment further includes step S5.
在步骤S5中,查询单元根据被查询项的标识信息,确定被查询的交换机信息所存储至的存储单元,并从所确定的存储单元中读取被查询的交换机信息。In step S5, the query unit determines the storage unit where the queried switch information is stored according to the identification information of the queried item, and reads the queried switch information from the determined storage unit.
其中,所述被查询项用于指示需要查询的被采集项。Wherein, the queried item is used to indicate the collected item that needs to be queried.
其中,所述被查询项的标识信息表示需要查询的被采集项的标识信息。Wherein, the identification information of the queried item represents the identification information of the collected item that needs to be queried.
其中,查询单元可采用多种方式根据被查询项的标识信息,确定被查询的交换机信息所存储至的存储单元。例如,查询单元根据被查询项的标识信息,并结合预定映射规则,直接确定与被查询的交换机信息对应的存储单元;又例如,查询单元对被查询项的标识信息进行数字签名处理,并根据该数字签名处理的结果,确定与该交换机信息对应的存储单元。Wherein, the query unit may determine the storage unit where the queried switch information is stored according to the identification information of the queried item in various ways. For example, the query unit directly determines the storage unit corresponding to the queried switch information according to the identification information of the queried item in combination with predetermined mapping rules; As a result of the digital signature processing, the storage unit corresponding to the exchange information is determined.
具体地,查询单元根据被查询项的标识信息,确定被查询的交换机信息所存储至的存储单元,并从该存储单元中读取被查询的交换机信息。Specifically, the query unit determines the storage unit where the queried switch information is stored according to the identification information of the queried item, and reads the queried switch information from the storage unit.
例如,被查询项为CPU利用率,查询单元对CPU利用率的oid“1.3.6.1.2.1.31.1.1.1.6.1”采用哈希函数hash_1进行数字签名处理,获得数字处理结果“Sind1”,并将该数字处理结果“Sind1”所对应的存储单元Storage1作为被查询的交换机信息所存储至的存储单元,并从Storage1中读取与被查询项对应的交换机信息。For example, the item to be queried is CPU utilization, and the query unit uses the hash function hash_1 to perform digital signature processing on the oid "1.3.6.1.2.1.31.1.1.1.6.1" of the CPU utilization, obtains the digital processing result "Sind1", and The storage unit Storage1 corresponding to the digital processing result "Sind1" is used as the storage unit where the queried switch information is stored, and the switch information corresponding to the queried item is read from Storage1.
优选地,在步骤S5中,查询单元根据被查询的对象的对象信息和/或被查询项的标识信息,确定被查询的交换机信息所存储至的存储单元,并从所确定的存储单元中读取被查询的交换机信息。Preferably, in step S5, the query unit determines the storage unit where the queried switch information is stored according to the object information of the queried object and/or the identification information of the queried item, and reads from the determined storage unit. Get the information of the queried switch.
例如,查询单元对被查询的端口的端口号“GigabitEthernet1/1/1”采用哈希函数hash_2进行数字签名处理,获得数字处理结果“Sind2”,并将该数字处理结果“Sind2”所对应的存储单元Storage2作为被查询的交换机信息所存储至的存储单元,并从Storage2中读取被查询的端口上的交换机信息。For example, the query unit uses the hash function hash_2 to perform digital signature processing on the port number "GigabitEthernet1/1/1" of the port being queried, obtains the digital processing result "Sind2", and stores the digital processing result "Sind2" corresponding to Unit Storage2 is used as a storage unit where the queried switch information is stored, and reads the switch information on the queried port from Storage2.
又例如,被查询项为入方向上的端口流量,查询单元采用strcat函数将被查询的端口的对象信息和入方向上的端口流量的oid连接成一个联合字符串,并对该联合字符串采用哈希函数hash_3进行数字签名处理,获得数字处理结果“Sind3”,并将该数字处理结果“Sind3”所对应的存储单元Storage3作为入方向上的端口流量所存储至的存储单元,并从Storage3中读取入方向上的端口流量在被查询的端口上的交换机信息。For another example, if the queried item is port traffic in the inbound direction, the query unit uses the strcat function to connect the object information of the queried port and the oid of the port traffic in the inbound direction into a joint string, and uses the The hash function hash_3 performs digital signature processing to obtain the digital processing result "Sind3", and the storage unit Storage3 corresponding to the digital processing result "Sind3" is used as the storage unit where the port traffic in the inbound direction is stored, and from Storage3 Read the switch information of the port traffic in the inbound direction on the queried port.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何根据查询项的标识信息,确定被查询的交换机信息所存储至的存储单元,并从所确定的存储单元中读取被查询的交换机信息的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only to better illustrate the technical solution of the present invention, and are not intended to limit the present invention. Those skilled in the art should understand that any information stored in the switch information to be queried is determined according to the identification information of the query item. The storage unit and the realization of reading the queried switch information from the determined storage unit should be included in the scope of the present invention.
根据本实施例的方案,在采集交换机信息的过程中,能够采集不同生产厂商生产的不同型号的交换机的信息,解决了现有技术中的兼容问题,具有极强的通用性;并且,本实施例可通过在外部数据单元中预先存储所有交换机的被采集项的标识信息,以实现对网络中的交换机以及被采集项的统一管理,且在新增交换机以及被采集项时,仅需要更新外部数据单元,而无需针对每个采集单元进行更新,这为系统的扩展以及更新提供了极大的便利,减少了人工操作;此外,基于采集单元的可扩展性,可在大规模的交换机部署中进行交换机信息的采集,且由该方案可以跨IDC(Internet Data Center,互联网数据中心)机房来采集交换机信息,且不会由于交换机设备数量的增大而引起采集瓶颈。According to the scheme of this embodiment, in the process of collecting switch information, it is possible to collect information of different types of switches produced by different manufacturers, which solves the compatibility problem in the prior art and has strong versatility; and, this implementation For example, the identification information of collected items of all switches can be pre-stored in the external data unit to realize unified management of switches and collected items in the network, and when new switches and collected items are added, only the external The data unit does not need to be updated for each acquisition unit, which provides great convenience for system expansion and update and reduces manual operations; in addition, based on the scalability of the acquisition unit, it can be deployed in large-scale switches Collect switch information, and this solution can collect switch information across IDC (Internet Data Center, Internet Data Center) computer rooms, and will not cause collection bottlenecks due to the increase in the number of switch devices.
此外,分配单元能够根据交换机信息,为交换机信息分配存储位置;并且,存储单元支持对交换机信息的临时存储和长期存储,且由于存储单元的可扩展性,当网络规模增大或交换机数量增加时,可随时通过增加物理存储介质来对存储单元进行扩展;并且,查询单元可根据被查询项的标识信息,从相应的存储单元中查询交换机信息,以在计算机系统中提供即时的和历史的交换机信息的查询功能,使得交换机信息具备可视化特点,更便于系统的了解与维护。In addition, the allocation unit can allocate storage locations for the switch information according to the switch information; and the storage unit supports temporary storage and long-term storage of the switch information, and due to the scalability of the storage unit, when the network scale increases or the number of switches increases , the storage unit can be expanded at any time by adding physical storage media; and the query unit can query the switch information from the corresponding storage unit according to the identification information of the queried item, so as to provide instant and historical switch information in the computer system The information query function enables the switch information to be visualized, making it easier to understand and maintain the system.
此外,本发明的计算机系统中的采集单元、分配单元、存储单元、查询单元之间具有高内聚松耦合的特点,每个单元可以进行单独的更新,而不会影响到其他单元的功能。In addition, the acquisition unit, distribution unit, storage unit, and query unit in the computer system of the present invention have the characteristics of high cohesion and loose coupling, and each unit can be updated independently without affecting the functions of other units.
图3为本发明一个优选实施例的用于采集交换机信息的计算机系统的结构示意图。该计算机系统包括采集单元、分配单元和存储单元;所述采集单元包括用于根据交换机的被采集项的标识信息,采集交换机的交换机信息的装置(以下简称为“采集装置1”),以及用于将交换机信息提供给用于为交换机信息分配存储位置的分配单元的装置(以下简称为“提供装置2”)。Fig. 3 is a schematic structural diagram of a computer system for collecting exchange information according to a preferred embodiment of the present invention. The computer system includes a collection unit, a distribution unit, and a storage unit; the collection unit includes a device (hereinafter referred to as "collection device 1") for collecting switch information of the switch according to the identification information of the collected items of the switch, and A device for providing switch information to an allocating unit for allocating storage locations for switch information (hereinafter simply referred to as "providing device 2").
采集单元的采集装置1根据交换机的被采集项的标识信息,采集所述交换机的交换机信息。The collection device 1 of the collection unit collects the switch information of the switch according to the identification information of the collected item of the switch.
其中,所述被采集项包括任何在交换机中能够被采集的项;优选地,所述被采集项包括但不限于:Wherein, the collected items include any items that can be collected in the switch; preferably, the collected items include but are not limited to:
1)交换机的端口流量。1) Port traffic of the switch.
其中,所述端口流量包括交换机在入(in)方向上的端口流量和出(out)方向上的端口流量。优选地,所述端口流量的oid(Object Identifier Desendant,对象标示符)符合RFC(Requests For Comment,请求注释)的规定。Wherein, the port traffic includes the port traffic of the switch in the incoming (in) direction and the port traffic in the outgoing (out) direction. Preferably, the oid (Object Identifier Desendant, object identifier) of the port traffic complies with the regulations of RFC (Requests For Comment, request for comment).
2)交换机的CPU使用信息。2) CPU usage information of the switch.
其中,所述CPU使用信息包括任何与CPU的使用情况相关的信息;优选地,所述CPU使用信息包括但不限于CPU温度、CPU利用率等。Wherein, the CPU usage information includes any information related to CPU usage; preferably, the CPU usage information includes but not limited to CPU temperature, CPU utilization rate and the like.
3)交换机的错误包/丢包信息。3) Error packet/packet loss information of the switch.
其中,所述错误包/丢包信息包括交换机在入方向上的错误包/丢包信息和出方向上的错误包/丢包信息。Wherein, the error packet/packet loss information includes the error packet/packet loss information of the switch in the inbound direction and the error packet/packet loss information in the outbound direction.
需要说明的是,上述被采集项仅为举例,本领域技术人员应能理解,任何在交换机中能够被采集的项,均应包含在本发明所述的被采集项的范围内。It should be noted that the above collected items are only examples, and those skilled in the art should understand that any item that can be collected in the switch should be included in the scope of the collected items described in the present invention.
其中,所述被采集项的标识信息包括任何能够唯一标识被采集项的信息;优选地,所述标识信息包括但不限于被采集项的oid等;例如,交换机在入方向上的端口流量的oid为1.3.6.1.2.1.31.1.1.1.6.1,在出方向上的端口流量的oid为1.3.6.1.2.1.31.1.1.1.10.1。Wherein, the identification information of the collected item includes any information that can uniquely identify the collected item; preferably, the identification information includes but not limited to the oid of the collected item; for example, the port traffic of the switch in the inbound direction The oid is 1.3.6.1.2.1.31.1.1.1.6.1, and the oid of port traffic in the outbound direction is 1.3.6.1.2.1.31.1.1.1.10.1.
其中,所述交换机信息包括被采集项的值。优选地,所述交换机信息包括但不限于被采集项的标识信息、被采集项在被采集的值等;更优选地,所述交换机信息可表示为(key,value),其中,“key”标识被采集项的标识信息,“value”表示该被采集项在被采集的值。Wherein, the switch information includes the value of the collected item. Preferably, the switch information includes but not limited to the identification information of the collected item, the collected value of the collected item, etc.; more preferably, the switch information can be expressed as (key, value), where "key" Identify the identification information of the collected item, and "value" indicates the collected value of the collected item.
其中,采集装置1可采用多种方式获取交换机的被采集项的标识信息。Wherein, the collection device 1 can acquire the identification information of the collected item of the switch in various ways.
例如,采集装置1直接获取用户输入的被采集项的标识信息。For example, the collection device 1 directly obtains the identification information of the collected item input by the user.
又例如,采集装置1包括用于根据被采集的交换机的标识信息,读取与该交换机对应的被采集项的标识信息的装置(以下简称为“读取装置”,图未示)。其中,所述交换机的标识信息用于标识该交换机;优选地,所述交换机的标识信息包括但不限于交换机的型号等。For another example, the collection device 1 includes a device for reading the identification information of the collected items corresponding to the exchange according to the identification information of the exchange collected (hereinafter referred to as "reading device", not shown in the figure). Wherein, the identification information of the switch is used to identify the switch; preferably, the identification information of the switch includes but not limited to the model of the switch.
进一步地,在上例中,读取装置可采用多种方式根据被采集的交换机的标识信息,读取与该交换机对应的被采集项的标识信息。Further, in the above example, the reading device can read the identification information of the collected item corresponding to the exchange according to the identification information of the collected exchange in various ways.
例如,读取装置根据被采集的交换机的标识信息,从本地数据库中读取该交换机的被采集项的标识信息。For example, the reading device reads the identification information of the collected item of the switch from the local database according to the collected identification information of the switch.
又例如,读取装置根据被采集的交换机的标识信息,从外部数据单元中,读取该交换机的被采集项的标识信息。优选地,所述外部数据单元中预先存储各种类型的交换机的所有被采集项的标识信息。需要说明的是,当计算机系统中包括多个采集单元时,所述外部数据单元中可预先存储该多个采集单元中每个采集单元所对应的全部交换机的所有被采集项的标识信息。For another example, the reading device reads the identification information of the collected items of the exchange from the external data unit according to the collected identification information of the exchange. Preferably, the external data unit pre-stores identification information of all collected items of various types of switches. It should be noted that, when the computer system includes multiple collection units, the external data unit may pre-store identification information of all collected items of all switches corresponding to each collection unit in the multiple collection units.
具体地,采集装置1根据交换机的被采集项的标识信息,在该被采集该被采集项所对应的交换机信息。Specifically, the collection device 1 collects switch information corresponding to the collected item according to the identification information of the collected item of the switch.
例如,被采集项包括交换机的CPU利用率,该CPU利用率的oid为1.3.6.1.4.2011.10.2.6.1.1.1.1.6;在步骤S1中,采集单元根据CPU利用率的oid,采集CPU利用率所对应的交换机信息,该交换机信息包括CPU利用率的值。For example, the collected item includes the CPU utilization rate of the switch, and the oid of the CPU utilization rate is 1.3.6.1.4.2011.10.2.6.1.1.1.1.6; in step S1, the collection unit collects the CPU utilization rate according to the oid of the CPU utilization rate The switch information corresponding to the rate, the switch information includes the CPU utilization value.
作为一种优选方案,采集装置1进一步包括用于根据交换机被采集的对象的对象信息以及在该对象上的被采集项的标识信息,采集所述交换机的交换机信息的装置(以下简称为“子采集装置”,图未示)。As a preferred solution, the collection device 1 further includes a device for collecting the switch information of the switch according to the object information of the object collected by the switch and the identification information of the collected items on the object (hereinafter referred to as "sub- Acquisition device", not shown in the figure).
其中,所述被采集的对象包括交换机上任何能够被采集的元件,如交换机的端口等。所述对象信息包括任何用于指示被采集的对象的信息。例如,被采集的对象为交换机的端口,所述对象信息包括该端口的端口号;如,对象信息为196.168.8.1_1_1,该对象信息用于指示被采集的对象是:IP地址为196.168.8.1的交换机的第1个板卡(或槽位)的第一个端口。Wherein, the collected objects include any components on the switch that can be collected, such as ports of the switch. The object information includes any information indicative of the object being captured. For example, the collected object is a port of a switch, and the object information includes the port number of the port; such as, the object information is 196.168.8.1_1_1, and the object information is used to indicate that the collected object is: IP address is 196.168.8.1 The first port of the first card (or slot) of the switch.
其中,所述交换机信息包括被采集项在该对象上的值。例如,交换机信息包括被采集项在“196.168.8.1_1_1”所对应的端口上的值。Wherein, the switch information includes the value of the collected item on the object. For example, the switch information includes the value of the collected item on the port corresponding to "196.168.8.1_1_1".
其中,子采集装置获取交换机被采集的对象的对象信息的实现方式与前述采集装置1获取交换机的被采集项的标识信息的实现方式相同或者相似,在此不再赘述。Wherein, the implementation manner of acquiring the object information of the objects collected by the switch by the sub-acquisition device is the same or similar to the implementation manner of acquiring the identification information of the collected items of the switch by the aforementioned acquisition device 1, and will not be repeated here.
具体地,该优选方案中,子采集装置根据交换机被采集的对象的对象信息以及在该对象上的被采集项的标识信息,采集该被采集项所对应的交换机信息。Specifically, in this preferred solution, the sub-acquisition device collects the switch information corresponding to the collected item according to the object information of the object collected by the switch and the identification information of the collected item on the object.
例如,交换机被采集的对象为端口,对象信息包括该端口的端口号“GigabitEthernet1/1/1”,其中,“GigabitEthernet1/1/1”表示第1个槽位的第1个子槽位的第1个GigabitEthernet(千兆以太网)端口,被采集项包括交换机在入方向上的端口流量,该入方向上的端口流量的oid为1.3.6.1.2.1.31.1.1.1.6.1;则子采集装置根据该对象信息以及入方向上的端口流量的oid,在交换机的端口GigabitEthernet1/1/1上采集入方向上的端口流量的值。For example, the object collected by the switch is a port, and the object information includes the port number "GigabitEthernet1/1/1", where "GigabitEthernet1/1/1" represents the first slot of the first sub-slot of the first slot. GigabitEthernet (gigabit Ethernet) ports, the collected items include the port traffic of the switch on the incoming direction, and the oid of the port traffic on the incoming direction is 1.3.6.1.2.1.31.1.1.1.6.1; then the sub-acquisition device according to The object information and the oid of the port traffic in the inbound direction are collected on the port GigabitEthernet1/1/1 of the switch. The value of the port traffic in the inbound direction is collected.
优选地,采集装置1采集交换机信息的操作基于SNMP(Simple NetworkManagement Protocol,简单网络管理协议)来实现。例如,采集单元为基于SNMP协议的探针Snmp_probe,且采集单元的采集装置1基于SNMP协议来采集交换机的交换机信息。Preferably, the collection device 1 collects switch information based on SNMP (Simple Network Management Protocol, Simple Network Management Protocol). For example, the collection unit is a probe Snmp_probe based on the SNMP protocol, and the collection device 1 of the collection unit collects switch information of the switch based on the SNMP protocol.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何根据交换机的被采集项的标识信息,采集所述交换机的交换机信息的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only to better illustrate the technical solution of the present invention, rather than limiting the present invention. Those skilled in the art should understand that any switch that collects the switch according to the identification information of the item to be collected of the switch The realization of information shall be included in the scope of the present invention.
采集单元的提供装置2将所采集到的交换机信息提供给用于为交换机信息分配存储位置的分配单元。The providing device 2 of the collecting unit provides the collected switch information to the allocating unit for allocating storage locations for the switch information.
具体地,提供装置2基于该采集单元所属设备与分配单元所属设备之间的连接方式,将所采集到的交换机信息提供给用于为交换机信息分配存储位置的分配单元。Specifically, the providing device 2 provides the collected switch information to the distribution unit for allocating storage locations for the switch information based on the connection mode between the device to which the collection unit belongs and the device to which the distribution unit belongs.
例如,提供装置2基于该采集单元所属设备与分配单元所属设备之间的TCP连接,将采集装置1所采集到的交换机信息(key1,value1)发送至分配单元。For example, the providing device 2 sends the switch information (key1, value1) collected by the collecting device 1 to the distribution unit based on the TCP connection between the device to which the collection unit belongs and the device to which the distribution unit belongs.
作为一种优选方案,提供装置2包括用于将交换机信息以及与该交换机信息对应的对象信息提供给用于为交换机信息分配存储位置的分配单元的装置(以下简称为“子提供装置”,图未示)。As a preferred solution, the providing device 2 includes a device for providing switch information and object information corresponding to the switch information to an allocation unit for allocating storage locations for the switch information (hereinafter referred to as "sub-providing device", FIG. not shown).
例如,采集单元基于该采集单元所属设备与分配单元所属设备之间的TCP连接,将在步骤S1中所采集到的交换机信息(key2,value2)以及与该交换机信息对应的对象信息“196.168.8.1_1_1”发送至分配单元。For example, based on the TCP connection between the device to which the collection unit belongs and the device to which the distribution unit belongs, the collection unit transfers the switch information (key2, value2) collected in step S1 and the object information corresponding to the switch information "196.168.8.1 _1_1" to the distribution unit.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何将所采集到的交换机信息提供给用于为交换机信息分配存储位置的分配单元的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only to better illustrate the technical solution of the present invention, and are not intended to limit the present invention. Those skilled in the art should understand that any switch information that is collected is provided to allocate storage for the switch information. The implementation of the location allocation unit should be included in the scope of the present invention.
分配单元根据交换机信息,确定与该交换机信息对应的存储单元,并将该交换机信息发送给对应的存储单元。The distribution unit determines the storage unit corresponding to the switch information according to the switch information, and sends the switch information to the corresponding storage unit.
其中,分配单元根据交换机信息,确定与该交换机信息对应的存储单元的方式包括但不限于:Wherein, the allocation unit determines the storage unit corresponding to the switch information according to the switch information, including but not limited to:
1)分配单元根据交换机信息,并结合预定映射规则,直接确定与该交换机信息对应的存储单元。1) The allocation unit directly determines the storage unit corresponding to the switch information according to the switch information and in combination with a predetermined mapping rule.
其中,所述预定映射规则包括任何预定的、交换机信息与存储单元之间的映射规则。例如,预定映射规则用于指示将CPU利用率所对应的交换机信息映射至第1个存储单元,将错误包信息所对应的交换机信息映射至第2个存储单元,将丢包信息所对应的交换机信息映射至第3个存储单元。Wherein, the predetermined mapping rules include any predetermined mapping rules between switch information and storage units. For example, the predetermined mapping rule is used to indicate that the switch information corresponding to the CPU utilization rate is mapped to the first storage unit, the switch information corresponding to the error packet information is mapped to the second storage unit, and the switch information corresponding to the packet loss information is mapped to the second storage unit. Information is mapped to the 3rd memory location.
2)分配单元对所述交换机信息进行数字签名处理,并根据该数字签名处理的结果,确定与该交换机信息对应的存储单元。2) The allocation unit performs digital signature processing on the switch information, and determines the storage unit corresponding to the switch information according to the result of the digital signature processing.
其中,所述数字签名处理包括任何对于固定地输入能产生固定地输出的处理,例如,哈希处理,DSA加密处理、RSA加密处理等。Wherein, the digital signature processing includes any processing that can generate a fixed output for a fixed input, for example, hash processing, DSA encryption processing, RSA encryption processing, and the like.
例如,分配单元对交换机信息中的被采集项的标识信息“1.3.6.1.2.1.31.1.1.1.6.1”采用哈希函数hash_1进行数字签名处理,获得数字处理结果“Sind1”,并将该数字处理结果“Sind1”所对应的存储单元Storage1作为该交换机信息对应的存储单元。For example, the allocation unit uses the hash function hash_1 to perform digital signature processing on the identification information "1.3.6.1.2.1.31.1.1.1.6.1" of the collected item in the exchange information, obtains the digital processing result "Sind1", and converts the digital The storage unit Storage1 corresponding to the processing result "Sind1" is used as the storage unit corresponding to the switch information.
作为一种优选方案,分配单元根据交换机信息,确定与该交换机信息对应的存储单元,并将该交换机信息发送给对应的存储单元的操作包括:分配单元根据交换机信息和/或与该交换机信息对应的对象信息,确定与该交换机信息对应的存储单元,并将该交换机信息发送给对应的存储单元。As a preferred solution, the distribution unit determines the storage unit corresponding to the switch information according to the switch information, and the operation of sending the switch information to the corresponding storage unit includes: the distribution unit according to the switch information and/or corresponding to the switch information The object information of the switch is determined, the storage unit corresponding to the switch information is determined, and the switch information is sent to the corresponding storage unit.
具体地,分配单元根据交换机信息和/或与该交换机信息对应的对象信息,确定与该交换机信息对应的存储单元,并将该交换机信息发送给对应的存储单元的实现方式,与前述分配单元根据交换机信息,确定与该交换机信息对应的存储单元,并将该交换机信息发送给对应的存储单元的实现方式相同或者相似,在此不再赘述。Specifically, the allocation unit determines the storage unit corresponding to the switch information according to the switch information and/or the object information corresponding to the switch information, and sends the switch information to the corresponding storage unit. For the switch information, the implementation manner of determining the storage unit corresponding to the switch information and sending the switch information to the corresponding storage unit is the same or similar, and will not be repeated here.
在该优选方案中,更优选地,分配单元还将与该交换机信息对应的对象信息发送给所述存储单元。In this preferred solution, more preferably, the allocation unit also sends the object information corresponding to the switch information to the storage unit.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何根据交换机信息,确定与该交换机信息对应的存储单元,并将该交换机信息发送给对应的存储单元的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only to better illustrate the technical solution of the present invention, and are not intended to limit the present invention. Those skilled in the art should understand that any storage unit corresponding to the switch information is determined according to the switch information, and the The implementation of sending the switch information to the corresponding storage unit should be included in the scope of the present invention.
存储单元对接收到的交换机信息进行存储。The storage unit stores the received switch information.
优选地,存储单元包括内存储器和外存储器,存储单元对接收到的交换机信息进行存储的操作包括:当所述交换机信息需要进行临时存储时,将所述交换机信息存储至内存储器中;当所述交换机信息需要进行长期存储时,将所述交换机信息存储至外存储器中。Preferably, the storage unit includes an internal memory and an external memory, and the operation of storing the received switch information by the storage unit includes: storing the switch information in the internal memory when the switch information needs to be temporarily stored; When the switch information needs to be stored for a long time, the switch information is stored in the external memory.
优选地,存储单元可根据交换机信息所对应的被采集项来确定该交换机信息是否需要临时存储或长期存储。例如,当交换机信息所对应的被采集项为交换机的端口流量或CPU使用信息时,该交换机信息需要进行长期存储;当交换机信息所对应的被采集项为交换机的错误包/丢包信息时,该交换机信息需要进行临时存储。Preferably, the storage unit can determine whether the switch information needs to be temporarily stored or long-term stored according to the collected item corresponding to the switch information. For example, when the collected item corresponding to the switch information is port traffic or CPU usage information of the switch, the switch information needs to be stored for a long time; when the collected item corresponding to the switch information is the error packet/packet loss information of the switch, The switch information needs to be stored temporarily.
需要说明的是,存储单元包括内存储器和外存储器时,存储单元可将交换机信息直接存储在外存储器中,或者,同时存储至内存储器和外存储器中,而不考虑是否需要进行临时存储。It should be noted that when the storage unit includes an internal memory and an external memory, the storage unit can directly store the switch information in the external memory, or simultaneously store the information in the internal memory and the external memory, regardless of whether temporary storage is required.
优选地,存储单元还接收到与该交换机信息对应的对象信息,则存储单元在对接收到的交换机信息进行存储时,同时对该对象信息进行存储。Preferably, the storage unit also receives object information corresponding to the switch information, and the storage unit simultaneously stores the object information when storing the received switch information.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何对接收到的交换机信息进行存储的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only to better illustrate the technical solution of the present invention, rather than limit the present invention. Those skilled in the art should understand that any implementation of storing the received switch information should be included in the within the scope of the present invention.
作为一种优选方案,本实施例的计算机系统还包括查询单元,其中,所述查询单元包括任何用于查询交换机信息的功能单元;优选地,需要说明的是,任何能够安装所述查询单元的计算机设备,均可作为该查询单元所属的设备。需要说明的是,查询单元和分配单元,或者,查询单元、分配单元和存储单元可能被安装在同一个计算机设备中。As a preferred solution, the computer system of this embodiment further includes a query unit, wherein the query unit includes any functional unit for querying switch information; preferably, it should be noted that any device that can install the query unit Computer equipment can be used as the equipment to which the query unit belongs. It should be noted that the query unit and the distribution unit, or the query unit, the distribution unit and the storage unit may be installed in the same computer device.
本优选方案中,查询单元根据被查询项的标识信息,确定被查询的交换机信息所存储至的存储单元,并从所确定的存储单元中读取被查询的交换机信息。In this preferred solution, the query unit determines the storage unit where the queried switch information is stored according to the identification information of the queried item, and reads the queried switch information from the determined storage unit.
其中,所述被查询项用于指示需要查询的被采集项。Wherein, the queried item is used to indicate the collected item that needs to be queried.
其中,所述被查询项的标识信息表示需要查询的被采集项的标识信息。Wherein, the identification information of the queried item represents the identification information of the collected item that needs to be queried.
其中,查询单元可采用多种方式根据被查询项的标识信息,确定被查询的交换机信息所存储至的存储单元。例如,查询单元根据被查询项的标识信息,并结合预定映射规则,直接确定与被查询的交换机信息对应的存储单元;又例如,查询单元对被查询项的标识信息进行数字签名处理,并根据该数字签名处理的结果,确定与该交换机信息对应的存储单元。Wherein, the query unit may determine the storage unit where the queried switch information is stored according to the identification information of the queried item in various ways. For example, the query unit directly determines the storage unit corresponding to the queried switch information according to the identification information of the queried item in combination with predetermined mapping rules; As a result of the digital signature processing, the storage unit corresponding to the exchange information is determined.
具体地,查询单元根据被查询项的标识信息,确定被查询的交换机信息所存储至的存储单元,并从该存储单元中读取被查询的交换机信息。Specifically, the query unit determines the storage unit where the queried switch information is stored according to the identification information of the queried item, and reads the queried switch information from the storage unit.
例如,被查询项为CPU利用率,查询单元对CPU利用率的oid“1.3.6.1.2.1.31.1.1.1.6.1”采用哈希函数hash_1进行数字签名处理,获得数字处理结果“Sind1”,并将该数字处理结果“Sind1”所对应的存储单元Storage1作为被查询的交换机信息所存储至的存储单元,并从Storage1中读取与被查询项对应的交换机信息。For example, the item to be queried is CPU utilization, and the query unit uses the hash function hash_1 to perform digital signature processing on the oid "1.3.6.1.2.1.31.1.1.1.6.1" of the CPU utilization, obtains the digital processing result "Sind1", and The storage unit Storage1 corresponding to the digital processing result "Sind1" is used as the storage unit where the queried switch information is stored, and the switch information corresponding to the queried item is read from Storage1.
优选地,查询单元根据被查询项的标识信息,确定被查询的交换机信息所存储至的存储单元,并从所确定的存储单元中读取被查询的交换机信息的操作包括:查询单元根据被查询的对象的对象信息和/或被查询项的标识信息,确定被查询的交换机信息所存储至的存储单元,并从所确定的存储单元中读取被查询的交换机信息。Preferably, the query unit determines the storage unit where the queried switch information is stored according to the identification information of the queried item, and the operation of reading the queried switch information from the determined storage unit includes: the query unit according to the queried The object information of the object and/or the identification information of the queried item, determine the storage unit where the queried switch information is stored, and read the queried switch information from the determined storage unit.
例如,查询单元对被查询的端口的端口号“GigabitEthernet1/1/1”采用哈希函数hash_2进行数字签名处理,获得数字处理结果“Sind2”,For example, the query unit uses the hash function hash_2 to perform digital signature processing on the port number "GigabitEthernet1/1/1" of the port being queried, and obtains the digital processing result "Sind2",
并将该数字处理结果“Sind2”所对应的存储单元Storage2作为被查询的交换机信息所存储至的存储单元,并从Storage2中读取被查询的端口上的交换机信息。The storage unit Storage2 corresponding to the digital processing result "Sind2" is used as the storage unit where the queried switch information is stored, and the switch information on the queried port is read from Storage2.
又例如,被查询项为入方向上的端口流量,查询单元采用strcat函数将被查询的端口的对象信息和入方向上的端口流量的oid连接成一个联合字符串,并对该联合字符串采用哈希函数hash_3进行数字For another example, if the queried item is port traffic in the inbound direction, the query unit uses the strcat function to connect the object information of the queried port and the oid of the port traffic in the inbound direction into a joint string, and uses the The hash function hash_3 performs digital
签名处理,获得数字处理结果“Sind3”,并将该数字处理结果“Sind3”所对应的存储单元Storage3作为入方向上的端口流量所存储至的存储单元,并从Storage3中读取入方向上的端口流量在被查询的端口上的交换机信息。Signature processing, obtain the digital processing result "Sind3", and use the storage unit Storage3 corresponding to the digital processing result "Sind3" as the storage unit where the port traffic in the inbound direction is stored, and read the inbound port traffic from Storage3 Switch information for port traffic on the port being queried.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何根据被查询项的标识信息,确定被查询的交换机信息所存储至的存储单元,并从所确定的存储单元中读取被查询的交换机信息的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only to better illustrate the technical solution of the present invention, rather than limit the present invention. Those skilled in the art should understand that any The implementation manner of reading the queried switch information from the determined storage unit and the determined storage unit shall be included in the scope of the present invention.
根据本实施例的方案,在采集交换机信息的过程中,能够采集不同生产厂商生产的不同型号的交换机的信息,解决了现有技术中的兼容问题,具有极强的通用性;并且,本实施例可通过在外部数据单元中预先存储所有交换机的被采集项的标识信息,以实现对网络中的交换机以及被采集项的统一管理,且在新增交换机以及被采集项时,仅需要更新外部数据单元,而无需针对每个采集单元进行更新,这为系统的扩展以及更新提供了极大的便利,减少了人工操作;此外,基于采集单元的可扩展性,可在大规模的交换机部署中进行交换机信息的采集,且由该方案可以跨IDC(Internet Data Center,互联网数据中心)机房来采集交换机信息,且不会由于交换机设备数量的增大而引起采集瓶颈。According to the scheme of this embodiment, in the process of collecting switch information, it is possible to collect information of different types of switches produced by different manufacturers, which solves the compatibility problem in the prior art and has strong versatility; and, this implementation For example, the identification information of collected items of all switches can be pre-stored in the external data unit to realize unified management of switches and collected items in the network, and when new switches and collected items are added, only the external The data unit does not need to be updated for each acquisition unit, which provides great convenience for system expansion and update and reduces manual operations; in addition, based on the scalability of the acquisition unit, it can be deployed in large-scale switches Collect switch information, and this solution can collect switch information across IDC (Internet Data Center, Internet Data Center) computer rooms, and will not cause collection bottlenecks due to the increase in the number of switch devices.
此外,分配单元能够根据交换机信息,为交换机信息分配存储位置;并且,存储单元支持对交换机信息的临时存储和长期存储,且由于存储单元的可扩展性,当网络规模增大或交换机数量增加时,可随时通过增加物理存储介质来对存储单元进行扩展;并且,查询单元可根据被查询项的标识信息,从相应的存储单元中查询交换机信息,以在计算机系统中提供即时的和历史的交换机信息的查询功能,使得交换机信息具备可视化特点,更便于系统的了解与维护。In addition, the allocation unit can allocate storage locations for the switch information according to the switch information; and the storage unit supports temporary storage and long-term storage of the switch information, and due to the scalability of the storage unit, when the network scale increases or the number of switches increases , the storage unit can be expanded at any time by adding physical storage media; and the query unit can query the switch information from the corresponding storage unit according to the identification information of the queried item, so as to provide instant and historical switch information in the computer system The information query function enables the switch information to be visualized, making it easier to understand and maintain the system.
此外,本发明的计算机系统中的采集单元、分配单元、存储单元、查询单元之间具有高内聚松耦合的特点,每个单元可以进行单独的更新,而不会影响到其他单元的功能。In addition, the acquisition unit, distribution unit, storage unit, and query unit in the computer system of the present invention have the characteristics of high cohesion and loose coupling, and each unit can be updated independently without affecting the functions of other units.
需要注意的是,本发明可在软件和/或软件与硬件的组合体中被实施,例如,本发明的装置和/或单元可采用专用集成电路(ASIC)或任何其他类似硬件设备来实现。在一个实施例中,本发明的软件程序可以通过处理器执行以实现上文所述步骤或功能。同样地,本发明的软件程序(包括相关的数据结构)可以被存储到计算机可读记录介质中,例如,RAM存储器,磁或光驱动器或软磁盘及类似设备。另外,本发明的一些步骤或功能可采用硬件来实现,例如,作为与处理器配合从而执行各个步骤或功能的电路。It should be noted that the present invention can be implemented in software and/or a combination of software and hardware. For example, the devices and/or units of the present invention can be implemented by application-specific integrated circuits (ASICs) or any other similar hardware devices. In one embodiment, the software program of the present invention can be executed by a processor to realize the steps or functions described above. Likewise, the software program (including associated data structures) of the present invention can be stored in a computer-readable recording medium such as RAM memory, magnetic or optical drive or floppy disk and the like. In addition, some steps or functions of the present invention may be implemented by hardware, for example, as a circuit that cooperates with a processor to execute each step or function.
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。It will be apparent to those skilled in the art that the invention is not limited to the details of the above-described exemplary embodiments, but that the invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Accordingly, the embodiments should be regarded in all points of view as exemplary and not restrictive, the scope of the invention being defined by the appended claims rather than the foregoing description, and it is therefore intended that the scope of the invention be defined by the appended claims rather than by the foregoing description. All changes within the meaning and range of equivalents of the elements are embraced in the present invention. Any reference sign in a claim should not be construed as limiting the claim concerned. In addition, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or devices stated in the system claims may also be realized by one unit or device through software or hardware. The words first, second, etc. are used to denote names and do not imply any particular order.
Claims (16)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410778853.8A CN104539448B (en) | 2014-12-15 | 2014-12-15 | A kind of method, collecting unit and system for being used to gather exchanger information |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410778853.8A CN104539448B (en) | 2014-12-15 | 2014-12-15 | A kind of method, collecting unit and system for being used to gather exchanger information |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104539448A CN104539448A (en) | 2015-04-22 |
| CN104539448B true CN104539448B (en) | 2017-12-26 |
Family
ID=52854917
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410778853.8A Active CN104539448B (en) | 2014-12-15 | 2014-12-15 | A kind of method, collecting unit and system for being used to gather exchanger information |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104539448B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107888456B (en) * | 2017-12-04 | 2019-05-10 | 北京百度网讯科技有限公司 | Method and device for monitoring port data volume |
| CN119629015A (en) * | 2024-07-30 | 2025-03-14 | 超聚变数字技术有限公司 | A method for obtaining physical switch information, computing device and physical switch |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003189367A (en) * | 2001-12-20 | 2003-07-04 | Nec Corp | Wireless communication system and method for identifying time of destination mobile terminal by caller side mobile terminal |
| CN103095815A (en) * | 2012-12-31 | 2013-05-08 | 普天新能源有限责任公司 | Mobile device positioning method and mobile device positioning device |
| CN103684973A (en) * | 2012-09-07 | 2014-03-26 | 精实万维软件(北京)有限公司 | Information pushing method and device |
| CN103678417A (en) * | 2012-09-25 | 2014-03-26 | 华为技术有限公司 | Man-machine interaction data processing method and device |
-
2014
- 2014-12-15 CN CN201410778853.8A patent/CN104539448B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003189367A (en) * | 2001-12-20 | 2003-07-04 | Nec Corp | Wireless communication system and method for identifying time of destination mobile terminal by caller side mobile terminal |
| CN103684973A (en) * | 2012-09-07 | 2014-03-26 | 精实万维软件(北京)有限公司 | Information pushing method and device |
| CN103678417A (en) * | 2012-09-25 | 2014-03-26 | 华为技术有限公司 | Man-machine interaction data processing method and device |
| CN103095815A (en) * | 2012-12-31 | 2013-05-08 | 普天新能源有限责任公司 | Mobile device positioning method and mobile device positioning device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104539448A (en) | 2015-04-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI568231B (en) | Method and system for automatically generating a server network topology | |
| TWI472187B (en) | Network system, controller, network management method, storage medium, communication system and communication method | |
| CN114208128B (en) | Fault root cause positioning method and device and computer storage medium | |
| TWI580221B (en) | Method and system for high frequency wide server management and related non-transitory computer readable access media | |
| US8369227B2 (en) | Management system and information processing system | |
| CN106464565B (en) | Relay device, program and display control method | |
| US20170353367A1 (en) | System and method for providing fast platform telemetry data | |
| WO2015140842A1 (en) | System-monitoring information processing device and monitoring method | |
| CN103414605A (en) | Desktop cloud monitoring method based on exchange gateway | |
| US9985840B2 (en) | Container tracer | |
| CN109309706B (en) | Method and system for sharing fingerprints and data blocks among storage systems of cloud local area network | |
| CN108205569A (en) | For updating the method and apparatus of configuration management database | |
| CN107426007A (en) | Method and system for the network device information in tracking network interchanger | |
| CN104539448B (en) | A kind of method, collecting unit and system for being used to gather exchanger information | |
| CN103597466B (en) | Real time data based on data-pushing is monitored | |
| EP3089421A1 (en) | Network element data access method and apparatus, and network management system | |
| US10764135B2 (en) | Method and system for solution integration labeling | |
| US11451443B2 (en) | Communications network performance | |
| CN113098776B (en) | A method, device, device and storage medium for determining network topology | |
| JP7056207B2 (en) | Topology determination device, topology determination method, topology determination program and communication system | |
| JP6295681B2 (en) | Communication analysis device, communication analysis system, communication analysis method, and program | |
| US9270578B2 (en) | Management of multiple network routes | |
| JP7164140B2 (en) | COMMUNICATION ANALYSIS DEVICE, COMMUNICATION ANALYSIS METHOD AND PROGRAM | |
| JP6007753B2 (en) | Management server, hardware management device, information processing device, hardware management system, hardware management method, and computer program | |
| JP4777932B2 (en) | Network management system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant |