CN102137007B - Method and system for generating network topology as well as coordinator - Google Patents
Method and system for generating network topology as well as coordinator Download PDFInfo
- Publication number
- CN102137007B CN102137007B CN201110009449.0A CN201110009449A CN102137007B CN 102137007 B CN102137007 B CN 102137007B CN 201110009449 A CN201110009449 A CN 201110009449A CN 102137007 B CN102137007 B CN 102137007B
- Authority
- CN
- China
- Prior art keywords
- switch
- virtual machine
- port parameters
- link layer
- port
- 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
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明提出了一种网络拓扑生成方法、系统、协调者,属于通信技术领域。本发明实施例的系统包括虚拟化服务器网管、协调者、服务器;方法包括:从虚拟机获取交换机的端口参数,所述端口参数为所述虚拟机通过监听所述交换机的链路层报文获得;获取与所述交换机连接的虚拟交换机的端口参数;根据所述交换机的端口参数及所述虚拟交换机的端口参数生成网络拓扑。本发明实施例可以通过监听交换机的链路层的报文,并获取vSwitch的端口参数,以生成网络拓扑。本发明实施例中无需对vSwitch和交换机做出改进即可生成网络拓扑。这样可以便于管理,并可以方便各种应用程序的数据传输。
The invention provides a network topology generation method, system and coordinator, which belong to the technical field of communication. The system of the embodiment of the present invention includes a virtualized server network manager, a coordinator, and a server; the method includes: obtaining a port parameter of a switch from a virtual machine, and the port parameter is obtained by the virtual machine by listening to a link layer message of the switch ; Obtaining port parameters of a virtual switch connected to the switch; generating a network topology according to the port parameters of the switch and the port parameters of the virtual switch. In the embodiment of the present invention, the network topology can be generated by monitoring the message of the link layer of the switch and obtaining the port parameters of the vSwitch. In the embodiment of the present invention, the network topology can be generated without making improvements to the vSwitch and the switch. This allows for easier management and facilitates data transfer for various applications.
Description
技术领域 technical field
本发明涉及通信技术领域,特别涉及一种网络拓扑生成方法、系统、协调者。The invention relates to the field of communication technology, in particular to a network topology generation method, system and coordinator.
背景技术 Background technique
虚拟机是指将一台服务器虚拟为多台相互隔离的虚拟机,或是将多台服务器虚拟为一台虚拟机,以提高提高资源的利用率并简化系统管理。现有的虚拟机通过vSwitch(VirtualSwitch,虚拟交换机)进行数据交互,且服务器之间通过网卡与交换机之间建立物理连接;其中,该交换机可以为Tor(Top-of-Rack,架顶交换机),也可以为其他交换机。A virtual machine refers to virtualizing a server into multiple isolated virtual machines, or virtualizing multiple servers into a single virtual machine to improve resource utilization and simplify system management. Existing virtual machine carries out data interaction through vSwitch (VirtualSwitch, virtual switchboard), and establishes physical connection between server through network card and switchboard; Wherein, this switchboard can be Tor (Top-of-Rack, top-of-rack switchboard), Other switches are also possible.
通常的vSwitch具有多个端口,以分别连接虚拟机及交换机。且通常的虚拟机、虚拟交换机通过vCenter(虚拟化服务器网管)进行管理。同时,物理网络与虚拟网络之间可以通过Orchestrator(协调者)进行协调。A common vSwitch has multiple ports to connect virtual machines and switches respectively. And common virtual machines and virtual switches are managed through vCenter (virtualized server network management). At the same time, the physical network and the virtual network can be coordinated through an Orchestrator (coordinator).
链路发现是为了提高网络的扩展性而设置的第二层发现(Layer 2 Discovery),例如LLDP协议(Link Layer Discovery Protocol,链接层发现协议)或CDP协议(Cisco Discovery Protocol,Cisco发现协议)等。链路发现可以使网络中的节点向其他节点发送报文,以使其他节点获知自身的存在。以LLDP协议为例,节点可以将其自身的处理能力、管理地址、设备标识、接口标识等封装发送给直连的其他节点。Link discovery is a layer 2 discovery (Layer 2 Discovery) set up to improve the scalability of the network, such as LLDP protocol (Link Layer Discovery Protocol, Link Layer Discovery Protocol) or CDP protocol (Cisco Discovery Protocol, Cisco Discovery Protocol), etc. . Link discovery enables nodes in the network to send messages to other nodes, so that other nodes know their own existence. Taking the LLDP protocol as an example, a node can encapsulate and send its own processing capability, management address, device identifier, interface identifier, etc. to other directly connected nodes.
通常,需要在控制端生成网络拓扑,以便于管理及应用。但是由于现有的vSwitch屏蔽服务器的MAC地址,这样就导致虚拟机的控制端无法获得完整的网络拓扑。Usually, a network topology needs to be generated at the control end for easy management and application. However, since the existing vSwitch shields the MAC address of the server, the control end of the virtual machine cannot obtain a complete network topology.
发明内容 Contents of the invention
为了解决虚拟机的控制端无法获得完整的网络拓扑的问题,本发明实施例提出了一种网络拓扑生成方法、系统、协调者,所述技术方案如下:In order to solve the problem that the control terminal of the virtual machine cannot obtain a complete network topology, an embodiment of the present invention proposes a network topology generation method, system, and coordinator. The technical solution is as follows:
本发明实施例提出了一种网络拓扑生成方法,包括:The embodiment of the present invention proposes a network topology generation method, including:
从虚拟机获取交换机的端口参数,所述端口参数为所述虚拟机通过监听所述交换机的链路层报文获得;Obtaining port parameters of the switch from the virtual machine, where the port parameters are obtained by the virtual machine by monitoring the link layer message of the switch;
获取与所述交换机连接的虚拟交换机的端口参数;Obtain the port parameters of the virtual switch connected to the switch;
根据所述交换机的端口参数及所述虚拟交换机的端口参数生成网络拓扑。A network topology is generated according to the port parameters of the switch and the port parameters of the virtual switch.
本发明实施例还提出了一种协调者,包括:The embodiment of the present invention also proposes a coordinator, including:
接收模块,用于从虚拟机获取交换机的端口参数,所述端口参数为所述虚拟机通过监听所述交换机的链路层报文获得;A receiving module, configured to acquire port parameters of the switch from the virtual machine, where the port parameters are obtained by the virtual machine by monitoring the link layer packets of the switch;
获取模块,用于获取与所述交换机连接的虚拟交换机的端口参数;An obtaining module, configured to obtain port parameters of the virtual switch connected to the switch;
网络拓扑生成模块,用于通过所述交换机的端口参数及所述虚拟交换机的端口参数生成网络拓扑。A network topology generating module, configured to generate a network topology through the port parameters of the switch and the port parameters of the virtual switch.
本发明实施例还提出了一种网络拓扑生成系统,包括:虚拟化服务器网管、协调者和服务器;The embodiment of the present invention also proposes a network topology generation system, including: a virtualized server network manager, a coordinator, and a server;
所述虚拟化服务器网管用于使所述服务器生成所述虚拟机;The network manager of the virtualization server is used to make the server generate the virtual machine;
所述服务器用于生成虚拟机,所述虚拟机监听交换机的链路层的报文获取交换机的端口参数;The server is used to generate a virtual machine, and the virtual machine monitors the message of the link layer of the switch to obtain the port parameters of the switch;
所述协调者用于从所述虚拟化服务器网管获取虚拟交换机的端口参数,并从所述虚拟机获取交换机的端口参数,生成网络拓扑。The coordinator is used to obtain the port parameters of the virtual switch from the network management of the virtualization server, obtain the port parameters of the switch from the virtual machine, and generate a network topology.
本发明实施例提供的技术方案的有益效果是:本发明实施例可以通过虚拟机接收监听交换机的链路层的报文,并获取vSwitch的端口参数,以生成网络拓扑。本发明实施例中无需对vSwitch和交换机做出改进,即可获取交换机及虚拟交换机的端口参数,以生成网络拓扑。这样可以便于进行管理,并可以方便各种应用程序的数据传输。监听链路层的报文无需虚拟机做出复杂的运算和存储。The beneficial effect of the technical solution provided by the embodiment of the present invention is: the embodiment of the present invention can receive the message of the link layer of the monitoring switch through the virtual machine, and obtain the port parameters of the vSwitch to generate the network topology. In the embodiment of the present invention, without making improvements to the vSwitch and the switch, the port parameters of the switch and the virtual switch can be obtained to generate a network topology. This facilitates administration and facilitates data transfer for various applications. Listening to link-layer packets does not require virtual machines to perform complex calculations and storage.
附图说明 Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中使用的附图作一简单地介绍,显而易见地,下面所列附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the accompanying drawings listed below are only some embodiments of the present invention. As far as the skilled person is concerned, other drawings can also be obtained based on these drawings on the premise of not paying creative work.
图1为本发明第一实施例的流程示意图;Fig. 1 is a schematic flow chart of the first embodiment of the present invention;
图2为本发明第二实施例的流程示意图;Fig. 2 is a schematic flow chart of the second embodiment of the present invention;
图3为本发明第三实施例的结构示意图;Fig. 3 is the structural representation of the third embodiment of the present invention;
图4为本发明第五实施例的结构示意图;FIG. 4 is a schematic structural view of a fifth embodiment of the present invention;
图5为本发明第六实施例的结构示意图;FIG. 5 is a schematic structural view of a sixth embodiment of the present invention;
图6为本发明第七实施例的结构示意图;FIG. 6 is a schematic structural diagram of a seventh embodiment of the present invention;
图7为实现本发明实施例的网络结构示意图。Fig. 7 is a schematic diagram of a network structure implementing an embodiment of the present invention.
具体实施方式 Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.
实施例1Example 1
本发明第一实施例提出了一种网络拓扑生成方法,其流程如图1所示,包括:The first embodiment of the present invention proposes a network topology generation method, the process of which is shown in Figure 1, including:
步骤101、从虚拟机获取交换机的端口参数,所述端口参数为所述虚拟机通过监听所述交换机的链路层报文获得;
步骤102、获取与所述交换机连接的虚拟交换机的端口参数;
步骤103、根据所述交换机的端口参数及所述虚拟交换机的端口参数生成网络拓扑。
其中,该交换机可以现有技术中的任何交换机,例如架顶交换机(Tor)。该链路层的报文可以为LLDP协议报文、也可以为其他协议,例如CDP协议(Cisco Discovery Protocol,思科发现协议)、(Extreme Discovery Protocol,极进发现协议)、NDP协议(Nortel DiscoveryProtocol,北电发现协议)等。Wherein, the switch can be any switch in the prior art, such as a top-of-rack switch (Tor). The message of this link layer can be LLDP agreement message, also can be other agreement, for example CDP agreement (Cisco Discovery Protocol, Cisco Discovery Protocol), (Extreme Discovery Protocol, extreme discovery protocol), NDP agreement (Nortel Discovery Protocol, Nortel Discovery Protocol), etc.
本发明实施例可以通过虚拟机接收监听交换机的链路层的报文,并获取vSwitch的端口参数,以生成网络拓扑。本发明实施例中无需对vSwitch和交换机做出改进,即可获取交换机及虚拟交换机的端口参数,以生成网络拓扑。这样可以便于进行管理,并可以方便各种应用程序的数据传输。监听链路层的报文无需虚拟机做出复杂的运算和存储。In the embodiment of the present invention, the virtual machine can receive the message of monitoring the link layer of the switch, and obtain the port parameters of the vSwitch, so as to generate the network topology. In the embodiment of the present invention, without making improvements to the vSwitch and the switch, the port parameters of the switch and the virtual switch can be obtained to generate a network topology. This facilitates administration and facilitates data transfer for various applications. Listening to link-layer packets does not require virtual machines to perform complex calculations and storage.
实施例2Example 2
本发明第二实施例提出了一种网络拓扑生成方法,是在第一实施例的基础上改进而来。在本发明实施例中,可以通过协调者从虚拟机获取交换机端口参数,并从vCenter获取虚拟交换机的端口参数,以生成网络拓扑。其流程如图2所示,包括:The second embodiment of the present invention proposes a method for generating a network topology, which is improved on the basis of the first embodiment. In the embodiment of the present invention, the coordinator can obtain the switch port parameters from the virtual machine, and obtain the port parameters of the virtual switch from the vCenter, so as to generate the network topology. The process is shown in Figure 2, including:
步骤201、Orchestrator从虚拟机获取交换机的端口参数,所述端口参数为所述虚拟机通过监听所述交换机的链路层报文获得。Step 201, the Orchestrator obtains the port parameters of the switch from the virtual machine, and the port parameters are obtained by the virtual machine by monitoring the link layer packets of the switch.
如果链路层的报文为LLDP协议报文,可以由vCenter生成一个虚拟机,并使该虚拟机运行LLDP Daemon程序(链路层发现协议守护程序)。其中,LLDP Daemon可以监听链路层的LLDP报文。即所述步骤201可以具体包括:If the message of the link layer is an LLDP protocol message, a virtual machine can be generated by vCenter, and the virtual machine is made to run the LLDP Daemon program (link layer discovery protocol daemon program). Among them, the LLDP Daemon can monitor the LLDP packets of the link layer. That is, the step 201 may specifically include:
vCenter使服务器生成一虚拟机,并使所述虚拟机运行LLDP Daemon程序;vCenter makes the server generate a virtual machine, and makes the virtual machine run the LLDP Daemon program;
所述虚拟机监听网络中的LLDP协议报文,以获取交换机的LLDP协议报文;The virtual machine monitors the LLDP protocol message in the network to obtain the LLDP protocol message of the switch;
所述虚拟机解析该LLDP协议报文,以获取所述LLDP协议报文中的交换机的端口参数,并发送给协调者。The virtual machine parses the LLDP protocol message to obtain the port parameters of the switch in the LLDP protocol message, and sends the parameter to the coordinator.
现有的LLDP协议报文,可以将本端设备的的主要能力、管理地址、设备标识、接口标识等信息封装在LLDPDU(Link Layer Discovery Protocol Data Unit,链路层发现协议数据单元)中发布。因此本发明实施例中的虚拟机可以通过解析该LLDP协议报文获知交换机的端口参数。The existing LLDP protocol message can encapsulate information such as the main capabilities, management address, device identifier, and interface identifier of the local device in an LLDPDU (Link Layer Discovery Protocol Data Unit, Link Layer Discovery Protocol Data Unit) for publication. Therefore, the virtual machine in the embodiment of the present invention can learn the port parameters of the switch by parsing the LLDP protocol message.
步骤202、所述Orchestrator获取与所述交换机连接的虚拟交换机的端口参数。Step 202, the Orchestrator acquires port parameters of the virtual switch connected to the switch.
其中,步骤202可以具体包括:Wherein, step 202 may specifically include:
所述Orchestrator向vCenter发送请求,以请求获取vSwitch的端口参数;The Orchestrator sends a request to the vCenter to request to obtain the port parameters of the vSwitch;
vCenter将vSwitch的端口参数发送到Orchestrator。vCenter sends the port parameters of vSwitch to Orchestrator.
通常,虚拟交换机的端口参数存储在vCenter中,因此Orchestrator可以通过向vCenter发送请求的方式获取vSwitch的端口参数。Usually, the port parameters of the virtual switch are stored in the vCenter, so the Orchestrator can obtain the port parameters of the vSwitch by sending a request to the vCenter.
在本发明的一个实施例中,可以只获得vSwitch的上行端口的端口参数。上行端口是指vSwitch连接交换机的端口。In an embodiment of the present invention, only the port parameters of the uplink port of the vSwitch can be obtained. The uplink port refers to the port through which the vSwitch is connected to the switch.
步骤203、Orchestrator根据vSwitch的端口参数和交换机的端口参数,生成网络拓扑。Step 203, the Orchestrator generates a network topology according to the port parameters of the vSwitch and the port parameters of the switch.
其中,在获取网络中的节点的端口参数后,现有技术中可以通过多种方式生成该网络拓扑,例如,可以采用通常的MIB(Management Information Base,管理信息库)的方式。现有的MIB方式的网络拓扑中,数据对象为树状分层结构。结构树的分枝表示数据对象的逻辑分组;而分枝中的节点代表数据对象。这样可以通过MIB浏览器以以图形显示的形式来表示各个分枝和节点。当然,这只是举例说明,现有技术中根据网络中节点的端口参数生成网络拓扑的方式可以为多种,本发明实施例并不对此做出限定。Wherein, after obtaining the port parameters of the nodes in the network, the network topology can be generated in various ways in the prior art, for example, a common MIB (Management Information Base, management information base) can be used. In the existing MIB network topology, data objects are in a tree-like hierarchical structure. The branches of the structure tree represent logical groupings of data objects; and the nodes in the branches represent data objects. This allows the individual branches and nodes to be represented graphically through the MIB browser. Of course, this is just an example. In the prior art, there are many ways to generate the network topology according to the port parameters of the nodes in the network, which is not limited in this embodiment of the present invention.
本发明实施例中可以通过虚拟机的LLDP Daemon来监听LLDP报文,无需开发新的应用程序以节省开发费用。同时,可以通过vCenter获取vSwitch的端口参数,以降低生成网络拓扑所需的系统开销。In the embodiment of the present invention, the LLDP message can be monitored through the LLDP Daemon of the virtual machine, without developing a new application program to save development costs. At the same time, the port parameters of the vSwitch can be obtained through the vCenter, so as to reduce the system overhead required for generating the network topology.
实施例3Example 3
本发明第三实施例提出了一种协调者,其结构如图3所示,包括:The third embodiment of the present invention proposes a coordinator whose structure is shown in Figure 3, including:
接收模块301,用于从虚拟机获取交换机的端口参数,所述端口参数为所述虚拟机通过监听所述交换机的链路层报文获得;The receiving
获取模块302,用于获取与所述交换接连接的虚拟交换机的端口参数;An
网络拓扑生成模块303,用于通过所述交换机的端口参数及所述虚拟交换机的端口参数生成网络拓扑。A network topology generating module 303, configured to generate a network topology based on the port parameters of the switch and the port parameters of the virtual switch.
本发明实施例可以通过虚拟机接收监听交换机的链路层的报文,并获取vSwitch的端口参数,以生成网络拓扑。本发明实施例中无需对vSwitch和交换机做出改进,即可获取交换机及虚拟交换机的端口参数,以生成网络拓扑。这样可以便于管理,并可以方便各种应用程序的数据传输。监听链路层的报文无需虚拟机做出复杂的运算和存储。In the embodiment of the present invention, the virtual machine can receive the message of monitoring the link layer of the switch, and obtain the port parameters of the vSwitch, so as to generate the network topology. In the embodiment of the present invention, without making improvements to the vSwitch and the switch, the port parameters of the switch and the virtual switch can be obtained to generate a network topology. This allows for easier management and facilitates data transfer for various applications. Listening to link-layer packets does not require virtual machines to perform complex calculations and storage.
实施例4Example 4
本发明第四实施例提出了一种协调者,是在第三实施例的基础上改进而来。协调者包括:The fourth embodiment of the present invention proposes a coordinator, which is improved on the basis of the third embodiment. Coordinators include:
接收模块301,用于从虚拟机获取交换机的端口参数,所述端口参数为所述虚拟机通过监听所述交换机的链路层报文获得。The receiving
其中,接收模块301具体可以用于接收所述虚拟机通过链路层发现协议守护程序(LLDPDaemon)监听交换机的链路层报文获取的交换机的端口参数。Wherein, the receiving
其中,该虚拟机可以通过vCenter生成,且该虚拟机运行LLDP Daemon程序以监听网络中的LLDP协议报文,以获取交换机的LLDP协议报文。该虚拟机还可以解析该LLDP协议报文,以获取所述LLDP协议报文中的交换机的端口参数。Wherein, the virtual machine can be generated through vCenter, and the virtual machine runs the LLDP Daemon program to monitor the LLDP protocol message in the network, so as to obtain the LLDP protocol message of the switch. The virtual machine can also parse the LLDP protocol message to obtain the port parameters of the switch in the LLDP protocol message.
获取模块302,用于获取与所述交换机连接的虚拟交换机的端口参数。The obtaining
其中,获取模块302具体可以用于从虚拟化服务器网管获取所述虚拟交换机的上行端口的端口参数。Wherein, the obtaining
网络拓扑生成模块303,用于通过所述交换机的端口参数及所述虚拟交换机的端口参数生成网络拓扑。A network topology generating module 303, configured to generate a network topology based on the port parameters of the switch and the port parameters of the virtual switch.
本发明实施例中可以通过现有的LLDP Daemon来监听LLDP报文,无需开发新的应用程序以节省开发费用。同时,可以通过vCenter获取vSwitch的端口参数,以降低生成网络拓扑所需的系统开销。In the embodiment of the present invention, the existing LLDP Daemon can be used to monitor LLDP messages, without developing new application programs to save development costs. At the same time, the port parameters of the vSwitch can be obtained through the vCenter, so as to reduce the system overhead required for generating the network topology.
需要说明的是:上述第三、第四施例仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述第三、第四实施例与第一、第二实施例提出的方法属于同一构思;因此相同部分不再赘述。It should be noted that: the above-mentioned third and fourth embodiments are only illustrated with the division of the above-mentioned functional modules. In practical applications, the above-mentioned function distribution can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The methods proposed in the above-mentioned third and fourth embodiments and the first and second embodiments belong to the same idea; therefore, the same parts will not be described again.
实施例5Example 5
本发明第五实施例提出了一种虚拟机,其结构如图4所示,包括:The fifth embodiment of the present invention proposes a virtual machine, the structure of which is shown in Figure 4, including:
监听模块401,用于监听交换机的链路层的报文,以获取交换机的端口参数;The
发送模块402,用于将所述端口参数发送到协调者,以使所述协调者生成网络拓扑。A sending
本发明实施例可以通过虚拟机接收监听交换机的链路层的报文,并获取vSwitch的端口参数,以生成网络拓扑。本发明实施例中无需对vSwitch和交换机做出改进,即可获取交换机及虚拟交换机的端口参数,以生成网络拓扑。这样可以便于管理,并可以方便各种应用程序的数据传输。监听链路层的报文无需虚拟机做出复杂的运算和存储。In the embodiment of the present invention, the virtual machine can receive the message of monitoring the link layer of the switch, and obtain the port parameters of the vSwitch, so as to generate the network topology. In the embodiment of the present invention, without making improvements to the vSwitch and the switch, the port parameters of the switch and the virtual switch can be obtained to generate a network topology. This allows for easier management and facilitates data transfer for various applications. Listening to link-layer packets does not require virtual machines to perform complex calculations and storage.
实施例6Example 6
本发明第六实施例提出了一种虚拟机,是在第五实施例的基础上改进而来,其结构如图5所示,包括:The sixth embodiment of the present invention proposes a virtual machine, which is improved on the basis of the fifth embodiment, and its structure is shown in Figure 5, including:
监听模块401,用于监听交换机的链路层的报文,以获取交换机的端口参数。The
发送模块402,用于将所述端口参数发送到协调者,以使所述协调者生成网络拓扑。A sending
其中,该链路层的报文为LLDP协议报文。则监听模块401可以具体包括:Wherein, the packet of the link layer is an LLDP protocol packet. Then the
守护程序单元4011,用于通过LLDP Daemon监听交换机的链路层发现协议报文;The
解析单元4012,用于解析所述链路层发现协议报文,以获取交换机的端口参数。The
本发明实施例中的虚拟机既可以设置于服务器中,或所述虚拟机设置于外部共享存储装置中,所述外部共享存储装置通过网络连接服务器。The virtual machine in the embodiment of the present invention can be set in a server, or the virtual machine can be set in an external shared storage device, and the external shared storage device is connected to the server through a network.
本发明实施例中可以通过现有的LLDP Daemon来监听LLDP报文,无需开发新的应用程序以节省开发费用。In the embodiment of the present invention, the existing LLDP Daemon can be used to monitor LLDP messages, without developing new application programs to save development costs.
需要说明的是:上述第五、第六实施例仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述第五、第六实施例与第一、第二实施例提出的方法属于同一构思;因此相同部分不再赘述。It should be noted that the above-mentioned fifth and sixth embodiments are only illustrated with the division of the above-mentioned functional modules. In practical applications, the above-mentioned function distribution can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The above-mentioned fifth and sixth embodiments and the methods proposed in the first and second embodiments belong to the same idea; therefore, the same parts will not be repeated here.
实施例7Example 7
本发明第七实施例提出了一种网络拓扑生成系统,其结构可以如图6所示,包括:虚拟化服务器网管501、协调者502和服务器505。The seventh embodiment of the present invention proposes a network topology generation system, the structure of which can be shown in FIG. 6 , including: a virtualized
在实现本发明实施例时,可以通过如图7所示的设备实现。如图7所示的,包括vCenter501、Orchestrator502、运行虚拟机503及虚拟交换机504的服务器505、交换机506。其中运行虚拟机503和虚拟交换机504的服务器505连接交换机506,vCenter501连接该服务器505,Orchestrator502分别连接交换机506和vCenter501。When implementing the embodiment of the present invention, it may be implemented by the device shown in FIG. 7 . As shown in FIG. 7 , it includes a
所述虚拟化服务器网管501,用于使服务器505生成所述虚拟机503;The virtualization
所述服务器505用于生成虚拟机503,所述虚拟机503监听交换机的链路层的报文获取交换机的端口参数;The
所述协调者502,用于从所述虚拟化服务器网管501获取虚拟交换机504的端口参数,并从所述虚拟机503获取交换机506的端口参数,生成网络拓扑。The
本发明实施例可以通过虚拟机接收监听交换机的链路层的报文,并获取vSwitch的端口参数,以生成网络拓扑。本发明实施例中无需对vSwitch和交换机做出改进,即可获取交换机及虚拟交换机的端口参数,以生成网络拓扑。这样可以便于管理,并可以方便各种应用程序的数据传输。监听链路层的报文无需虚拟机做出复杂的运算和存储,同时在现有的虚拟机系统中很容易增加一个虚拟机,因此成本低。In the embodiment of the present invention, the virtual machine can receive the message of monitoring the link layer of the switch, and obtain the port parameters of the vSwitch, so as to generate the network topology. In the embodiment of the present invention, without making improvements to the vSwitch and the switch, the port parameters of the switch and the virtual switch can be acquired to generate a network topology. This allows for easier management and facilitates data transfer for various applications. Listening to link-layer messages does not require a virtual machine to perform complex calculations and storage, and it is easy to add a virtual machine to the existing virtual machine system, so the cost is low.
实施例8Example 8
本发明第六实施例提出了一种网络拓扑生成系统,是在第七实施例的基础上改进而来,包括:虚拟化服务器网管501、协调者502和服务器505。The sixth embodiment of the present invention proposes a network topology generation system, which is improved on the basis of the seventh embodiment, and includes: a virtualized
所述虚拟化服务器网管501,用于使服务器505生成所述虚拟机503;The virtualization
所述服务器505用于生成虚拟机503,所述虚拟机503监听交换机的链路层的报文获取交换机的端口参数;The
所述协调者502,用于从所述虚拟化服务器网管获取虚拟交换机的端口参数,并从所述虚拟机503获取交换机的端口参数,生成网络拓扑。The
其中,所述链路层的报文可以为链路层发现协议报文。则所述虚拟机503具体可以用于运行链路层发现协议守护程序,以监听交换机的链路层发现协议报文;并解析链路层发现协议报文以获取交换机的端口参数。Wherein, the link layer message may be a link layer discovery protocol message. Then the
本发明实施例中可以通过现有的LLDP Daemon来监听LLDP报文,无需开发新的应用程序以节省开发费用。In the embodiment of the present invention, the existing LLDP Daemon can be used to monitor LLDP messages, without developing new application programs to save development costs.
需要说明的是:上述第七、第八实施例仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述第七、第八实施例与第一、第二实施例提出的方法属于同一构思;因此相同部分不再赘述。It should be noted that the above-mentioned seventh and eighth embodiments are only illustrated with the division of the above-mentioned functional modules. In practical applications, the above-mentioned function distribution can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The above-mentioned seventh and eighth embodiments and the methods proposed in the first and second embodiments belong to the same idea; therefore, the same parts will not be repeated here.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110009449.0A CN102137007B (en) | 2011-01-17 | 2011-01-17 | Method and system for generating network topology as well as coordinator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110009449.0A CN102137007B (en) | 2011-01-17 | 2011-01-17 | Method and system for generating network topology as well as coordinator |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102137007A CN102137007A (en) | 2011-07-27 |
| CN102137007B true CN102137007B (en) | 2014-05-21 |
Family
ID=44296666
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201110009449.0A Active CN102137007B (en) | 2011-01-17 | 2011-01-17 | Method and system for generating network topology as well as coordinator |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102137007B (en) |
Families Citing this family (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103281206A (en) * | 2013-05-29 | 2013-09-04 | 新浪网技术(中国)有限公司 | System, method and device for determining connected relation |
| CN103281248B (en) * | 2013-06-09 | 2016-03-30 | 北京星网锐捷网络技术有限公司 | The discover method of network topology, device and system |
| CN103716222B (en) * | 2013-12-31 | 2017-11-03 | 曙光云计算集团有限公司 | The collocation method of virtual switch |
| CN105227419B (en) * | 2014-06-13 | 2019-03-15 | 杭州迪普科技股份有限公司 | Machinery of consultation and consulting device based on VEM |
| CN105207909B (en) * | 2014-06-24 | 2019-02-12 | 华为技术有限公司 | A method and network device for sending information |
| US10419365B2 (en) | 2015-04-20 | 2019-09-17 | Hillstone Networks Corp. | Service insertion in basic virtual network environment |
| WO2017107018A1 (en) * | 2015-12-21 | 2017-06-29 | 华为技术有限公司 | Method, device, and system for discovering the relationship of applied topology |
| US20170279676A1 (en) * | 2016-03-22 | 2017-09-28 | Futurewei Technologies, Inc. | Topology-based virtual switching model with pluggable flow management protocols |
| CN106789321A (en) * | 2017-01-04 | 2017-05-31 | 深圳市国电科技通信有限公司 | A kind of route networking performance estimating method and its device based on open interconnection standard |
| CN108429637B (en) * | 2018-02-05 | 2021-05-07 | 国电南瑞科技股份有限公司 | System and method for dynamically detecting process layer network topology of intelligent substation |
| CN108833179A (en) * | 2018-06-25 | 2018-11-16 | 郑州云海信息技术有限公司 | Method and device for generating host network topology |
| CN112039693B (en) * | 2020-08-17 | 2021-06-29 | 烽火通信科技股份有限公司 | System and method for managing home networking network topology |
| CN112398738B (en) * | 2020-11-05 | 2022-06-28 | 竞技世界(北京)网络技术有限公司 | Method and device for acquiring connection relation, equipment and computer readable storage medium |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1738295A (en) * | 2005-09-12 | 2006-02-22 | 中兴通讯股份有限公司 | A method for establishing an intelligent virtual switching link |
| CN101345655A (en) * | 2008-08-15 | 2009-01-14 | 中兴通讯股份有限公司 | A method for obtaining network connection information by using link layer discovery protocol |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8472443B2 (en) * | 2009-05-15 | 2013-06-25 | Cisco Technology | Port grouping for association with virtual interfaces |
-
2011
- 2011-01-17 CN CN201110009449.0A patent/CN102137007B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1738295A (en) * | 2005-09-12 | 2006-02-22 | 中兴通讯股份有限公司 | A method for establishing an intelligent virtual switching link |
| CN101345655A (en) * | 2008-08-15 | 2009-01-14 | 中兴通讯股份有限公司 | A method for obtaining network connection information by using link layer discovery protocol |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102137007A (en) | 2011-07-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102137007B (en) | Method and system for generating network topology as well as coordinator | |
| US11374857B2 (en) | Network device management method and apparatus, and system for indicating a network device to perform management operation | |
| CN107070691B (en) | Cross-host communication method and system of Docker container | |
| CN103905283B (en) | Communication means and device based on expansible VLAN | |
| CN102938794B (en) | ARP message forwarding method, switch and controller | |
| CN113810205B (en) | Reporting and receiving methods of service computing power information, servers and data center gateways | |
| US10193707B2 (en) | Packet transmission method and apparatus | |
| CN107306215B (en) | A data processing method, system and node | |
| WO2019128273A1 (en) | Method, device and system for determining connection relation of network devices | |
| WO2017114363A1 (en) | Packet processing method, bng and bng cluster system | |
| EP3203685B1 (en) | Method and apparatus for implementing operations, administration and maintenance function | |
| CN103581325A (en) | Cloud computing resource pool system and implement method thereof | |
| CN115695374A (en) | IPv6 subnet prefix advertisement implementation method, device, equipment and storage medium | |
| CN107623752A (en) | Network management and device based on link layer | |
| CN103503413B (en) | Method and device for transmitting network information | |
| WO2018000859A1 (en) | Topology determination method, message response method, controller and switch | |
| CN104936202A (en) | 6LoWPAN wireless sensor network management system based on CoAP protocol | |
| CN106487677B (en) | Provider edge equipment and data forwarding method | |
| CN104486217A (en) | Cross network message transmitting method and equipment | |
| Wang et al. | A SDN-based heterogeneous networking scheme for ProfiNet and Modbus networks | |
| EP3503484B1 (en) | Message transmission methods and devices | |
| CN109995591A (en) | A kind of method and device of the link topology based on LLDP | |
| US20240348505A1 (en) | Network system, network packet processing method and apparatus, and storage medium | |
| US20240022513A1 (en) | Communication Method and Apparatus | |
| CN104683491B (en) | A kind of method and system for the Internet Protocol address for obtaining virtual machine |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20231206 Address after: No. 1-9, 24th Floor, Unit 2, Building 1, No. 28, North Section of Tianfu Avenue, High tech Zone, Chengdu, Sichuan Province, 610000 Patentee after: Sichuan Huakun Zhenyu Intelligent Technology Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |