[go: up one dir, main page]

CN109818796B - Data center construction method and device, electronic equipment and medium - Google Patents

Data center construction method and device, electronic equipment and medium Download PDF

Info

Publication number
CN109818796B
CN109818796B CN201910110076.2A CN201910110076A CN109818796B CN 109818796 B CN109818796 B CN 109818796B CN 201910110076 A CN201910110076 A CN 201910110076A CN 109818796 B CN109818796 B CN 109818796B
Authority
CN
China
Prior art keywords
data center
roles
role
network topology
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910110076.2A
Other languages
Chinese (zh)
Other versions
CN109818796A (en
Inventor
张彻
张实唯
汪漪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Southern University of Science and Technology
Original Assignee
Southern University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Southern University of Science and Technology filed Critical Southern University of Science and Technology
Priority to CN201910110076.2A priority Critical patent/CN109818796B/en
Publication of CN109818796A publication Critical patent/CN109818796A/en
Application granted granted Critical
Publication of CN109818796B publication Critical patent/CN109818796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a data center construction method, a data center construction device, electronic equipment and a medium, wherein the method comprises the following steps: constructing a data center blueprint according to the role of the predefined node equipment and the connection relation of different node equipment, wherein the connection relation is realized based on a network topological graph; sending a moving instruction to a first operation device according to the label information of each role, wherein the label information is used for recording the position of the node equipment corresponding to the role in the machine room, and the moving instruction is used for indicating the first operation device to move the node equipment corresponding to the role to the corresponding position; and sending a network connection instruction to the second operation device according to the data center blueprint and the role of the node equipment moved to the corresponding position. The embodiment of the invention solves the problem of complicated process of constructing the data center in the prior art, simplifies the construction process of the data center and improves the construction efficiency.

Description

数据中心构建方法、装置、电子设备和介质Data center construction method, apparatus, electronic device and medium

技术领域technical field

本发明实施例涉及计算机网络技术领域,尤其涉及一种数据中心构建方法、装置、电子设备和介质。Embodiments of the present invention relate to the technical field of computer networks, and in particular, to a data center construction method, apparatus, electronic device, and medium.

背景技术Background technique

为了给用户提供高带宽低延迟、稳定并可靠的网络服务,很多新开发的应用程序均部署在云环境中,这推动了存储、传输和计算服务从电脑客户端向数据中心(Datacenter,简称DC)的转变。为了满足单个电脑客户端中越来越多的服务需求,例如网络搜索、视频观看、移动互联网和云存储等,服务终端的规模呈指数级增长。如何设计数据中心网络拓扑及路由,以实现数据中心快速扩展并充分利用数据中心网络性能,成为计算机网络领域的重要研究方向。In order to provide users with high-bandwidth, low-latency, stable and reliable network services, many newly developed applications are deployed in the cloud environment, which promotes storage, transmission and computing services from computer clients to data centers (Datacenter, DC for short). ) transformation. In order to meet more and more service requirements in a single computer client, such as web search, video viewing, mobile Internet, and cloud storage, the scale of service terminals has grown exponentially. How to design the data center network topology and routing to realize the rapid expansion of the data center and make full use of the data center network performance has become an important research direction in the field of computer networks.

现有技术中根据预先设计的机房蓝图,基于图论理论,以及统计记录的每个设备与其放置位置的对应关系,构建数据中心。但是,该构建过程比较繁琐,并且记录每一个设备与位置的对应关系是一项巨大的工作,而且这种记录可能容易出错,导致数据中心构建出错。In the prior art, a data center is constructed according to a pre-designed computer room blueprint, based on graph theory, and the corresponding relationship between each device and its placement position that is statistically recorded. However, this build process is cumbersome, and documenting the correspondence of each device to its location is a huge undertaking, and this recording can be error-prone, leading to errors in the data center build.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种数据中心构建方法、装置、电子设备和介质,以解决现有技术中数据中心构建比较繁琐的问题。Embodiments of the present invention provide a data center construction method, apparatus, electronic device, and medium, so as to solve the problem of complicated data center construction in the prior art.

第一方面,本发明实施例提供了一种数据中心构建方法,该方法包括:In a first aspect, an embodiment of the present invention provides a method for constructing a data center, the method comprising:

根据预先定义的节点设备的角色以及不同节点设备的连接关系,构建数据中心蓝图,其中,所述连接关系基于网络拓扑图实现;Build a data center blueprint according to predefined roles of node devices and connection relationships of different node devices, wherein the connection relationships are implemented based on a network topology map;

根据每个角色的标签信息,向第一操作装置发送移动指令,其中,所述标签信息用于记录与角色对应的节点设备在机房中的位置,所述移动指令用于指示所述第一操作装置将所述与角色对应的节点设备移动至对应的位置;According to the label information of each character, a movement instruction is sent to the first operation device, wherein the label information is used to record the position of the node device corresponding to the character in the computer room, and the movement instruction is used to indicate the first operation The device moves the node device corresponding to the character to a corresponding position;

根据所述数据中心蓝图和被移动至对应位置的节点设备的角色,向第二操作装置发送网络连接指令,其中,所述网络连接指令用于指示所述第二操作装置建立所述被移动至对应位置的节点设备之间的网络连接。According to the data center blueprint and the role of the node device moved to the corresponding location, a network connection instruction is sent to the second operation device, wherein the network connection instruction is used to instruct the second operation device to establish the moved to The network connection between the node devices at the corresponding location.

第二方面,本发明实施例还提供了一种数据中心构建装置,该装置包括:In a second aspect, an embodiment of the present invention further provides an apparatus for constructing a data center, the apparatus comprising:

蓝图构建模块,用于根据预先定义的节点设备的角色以及不同节点设备的连接关系,构建数据中心蓝图,其中,所述连接关系基于网络拓扑图实现;a blueprint building module, configured to construct a data center blueprint according to predefined roles of node devices and connection relationships of different node devices, wherein the connection relationships are implemented based on a network topology map;

移动指令发送模块,用于根据每个角色的标签信息,向第一操作装置发送移动指令,其中,所述标签信息用于记录与角色对应的节点设备在机房中的位置,所述移动指令用于指示所述第一操作装置将所述与角色对应的节点设备移动至对应的位置;The moving instruction sending module is used to send a moving instruction to the first operating device according to the label information of each character, wherein the label information is used to record the position of the node device corresponding to the character in the computer room, and the moving instruction is used for instructing the first operating device to move the node device corresponding to the character to a corresponding position;

网络连接指令发送模块,用于根据所述数据中心蓝图和被移动至对应位置的节点设备的角色,向第二操作装置发送网络连接指令,其中,所述网络连接指令用于指示所述第二操作装置建立所述被移动至对应位置的节点设备之间的网络连接。A network connection instruction sending module, configured to send a network connection instruction to the second operating device according to the data center blueprint and the role of the node device moved to the corresponding location, wherein the network connection instruction is used to instruct the second operation device The operating device establishes a network connection between the node devices moved to the corresponding location.

第三方面,本发明实施例还提供了一种电子设备,包括:In a third aspect, an embodiment of the present invention also provides an electronic device, including:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,storage means for storing one or more programs,

当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本发明任一实施例所述的数据中心构建方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the data center construction method according to any embodiment of the present invention.

第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本发明任一实施例所述的数据中心构建方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the data center construction method according to any embodiment of the present invention.

本发明实施例通过根据预先定义的节点设备的角色以及不同节点设备的连接关系,基于网络拓扑图构建数据中心蓝图;根据每个角色的标签信息,向第一操作装置发送移动指令,将与角色对应的节点设备移动至对应的位置;根据数据中心蓝图和被移动至对应位置的节点设备的角色,向第二操作装置发送网络连接指令,建立起各个位置上节点设备之间的网络连接,解决了现有技术中构建数据中心过程繁琐的问题,简化了数据中心的构建过程,不仅提高了构建效率,而且降低了构建过程中的出错率。In the embodiment of the present invention, a data center blueprint is constructed based on a network topology map according to the predefined roles of the node devices and the connection relationship of different node devices; according to the label information of each role, a movement instruction is sent to the first operating device, and a movement instruction is sent to the first operating device, and a data center blueprint is sent to the first operating device according to the label information of each role. The corresponding node equipment is moved to the corresponding position; according to the blueprint of the data center and the role of the node equipment moved to the corresponding position, a network connection instruction is sent to the second operating device, and the network connection between the node equipment at each position is established to solve the problem. The problem of the complicated process of constructing a data center in the prior art is solved, the construction process of the data center is simplified, not only the construction efficiency is improved, but also the error rate in the construction process is reduced.

附图说明Description of drawings

图1是本发明实施例一提供的数据中心构建方法的流程图;1 is a flowchart of a data center construction method provided in Embodiment 1 of the present invention;

图2是本发明实施例二提供的数据中心构建方法的流程图;2 is a flowchart of a data center construction method provided in Embodiment 2 of the present invention;

图3是本发明实施例二提供的基于胖树拓扑结构图的数据中心蓝图的示意图;3 is a schematic diagram of a data center blueprint based on a fat tree topology diagram according to Embodiment 2 of the present invention;

图4是本发明实施例三提供的数据中心构建装置的结构示意图;4 is a schematic structural diagram of a data center construction device provided in Embodiment 3 of the present invention;

图5是本发明实施例四提供的一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device according to Embodiment 4 of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.

实施例一Example 1

图1是本发明实施例一提供的数据中心构建方法的流程图,本实施例可适用于构建数据中心的情况,该方法可以由数据中心构建装置来执行,该装置可以采用软件和/或硬件的方式实现,并可集成在电子设备上。FIG. 1 is a flowchart of a data center construction method provided in Embodiment 1 of the present invention. This embodiment is applicable to the construction of a data center. The method can be executed by a data center construction apparatus, and the apparatus can use software and/or hardware. It can be realized in a way and can be integrated in electronic devices.

如图1所示,本实施例提供的数据中心构建方法可以包括:As shown in FIG. 1 , the data center construction method provided in this embodiment may include:

S110、根据预先定义的节点设备的角色以及不同节点设备的连接关系,构建数据中心蓝图,其中,连接关系基于网络拓扑图实现。S110. Build a data center blueprint according to predefined roles of node devices and connection relationships of different node devices, wherein the connection relationships are implemented based on a network topology map.

本实施例中利用角色表示机房中配置的各个节点设备。每个节点设备均对应有一个角色。并且,根据角色的分类,同一类型下的每个角色可以对应与角色类型相同的任一台节点设备,例如属于交换机类型的每个角色,可以对应属于交换机设备中的任一台交换机,这可以增加在机房中配置节点设备的灵活性。基于选定的网络拓扑图,将各个角色标记在网络拓扑图中,网络拓扑图中的角色连接关系即不同节点设备的连接关系。设计蓝图构建过程中所依据的节点设备间的连接关系是预先根据数据中心的构建需求确定的。相比于现有技术,基于网络拓扑图的含有角色标记的数据中心蓝图更能直观地由不同节点设备的角色和角色间连接规则快速查找出不同节点设备之间的连接关系。In this embodiment, each node device configured in the computer room is represented by roles. Each node device corresponds to a role. And, according to the classification of roles, each role under the same type can correspond to any node device of the same type as the role, for example, each role belonging to the switch type can correspond to any switch in the switch device, which can Increase the flexibility of configuring node devices in the computer room. Based on the selected network topology map, each role is marked in the network topology map, and the role connection relationship in the network topology map is the connection relationship of different node devices. The connection relationship between the node devices based on the blueprint construction process is determined in advance according to the construction requirements of the data center. Compared with the prior art, the data center blueprint containing role tags based on the network topology map can more intuitively find out the connection relationship between different node devices based on the roles of different node devices and the connection rules between roles.

进一步的,本实施例中网络拓扑图指具有层次化结构特点的网络拓扑图,包括但不限于:胖树(FatTree)拓扑结构图、VL2数据中心架构图、谷歌数据中心网络结构图(例如Google Jupiter)或多级交换网络架构图(Clos network)。Further, in this embodiment, the network topology diagram refers to a network topology diagram with hierarchical structure characteristics, including but not limited to: a fat tree (FatTree) topology diagram, a VL2 data center architecture diagram, a Google data center network diagram (such as Google Jupiter) or multi-level switching network architecture diagram (Clos network).

S120、根据每个角色的标签信息,向第一操作装置发送移动指令,其中,标签信息用于记录与角色对应的节点设备在机房中的位置,移动指令用于指示第一操作装置将与角色对应的节点设备移动至对应的位置。S120. Send a movement instruction to the first operation device according to the label information of each character, wherein the label information is used to record the position of the node device corresponding to the character in the computer room, and the movement instruction is used to instruct the first operation device to associate with the character The corresponding node device moves to the corresponding position.

在数据中心构建之前,电子设备根据机房需要配置的节点设备,考虑如何充分利用机房空间以及如何节省机房构建成本等因素,预先确定每个节点设备在机房中的位置,并在相应位置上张贴标签信息进行标记,然后将各个标签信息按照与每个节点设备的角色的对应关系进行保存,形成位置信息表。后续根据节点设备的角色在位置信息表中匹配出标签信息,将节点设备移动至相应位置即可。本实施例中定义的角色,不仅与节点设备存在对应关系,而且与用于记录节点设备位置的标签信息存在对应关系,因此,只要知道了具体的角色,便可知道对应的节点设备,进而节点设备应该放置的位置信息也可得知。在数据中心构建过程中,无需如同现有技术需要同时逐一记录与统计各个节点设备的实际位置,因而数据中心的构建过程得以简化。Before the construction of the data center, the electronic equipment considers factors such as how to make full use of the computer room space and how to save the construction cost of the computer room according to the node equipment that needs to be configured in the computer room. The information is marked, and then each label information is stored according to the corresponding relationship with the role of each node device to form a location information table. Subsequently, the label information is matched in the location information table according to the role of the node device, and the node device can be moved to the corresponding location. The roles defined in this embodiment not only have a corresponding relationship with node devices, but also have a corresponding relationship with label information used to record the location of node devices. Therefore, as long as the specific role is known, the corresponding node device can be known, and then the node device can be known. The location information where the device should be placed can also be known. During the construction of the data center, it is not necessary to simultaneously record and count the actual positions of each node device one by one as in the prior art, so the construction of the data center is simplified.

可选的,标签信息的呈现形式包括具有可读信息的标识码,例如二维码或者条形码,可读信息可以包括与角色对应的节点设备类型和节点设备位置。例如,经过标识码识别,可以得到其中存储的节点设备的位置信息。以位置信息包括机柜设备卡槽位置的坐标为例,将该位置坐标发送至第一操作装置,第一操作装置结合该位置坐标以及机房地图,将相应的节点设备移动至该位置。第一操作装置可以是任意的可用于搬运节点设备并识别地面上标签信息的自动化设备,例如机器人等。Optionally, the presentation form of the label information includes an identification code with readable information, such as a two-dimensional code or a barcode, and the readable information may include the node device type and node device location corresponding to the role. For example, through identification code identification, the location information of the node device stored therein can be obtained. Taking the location information including the coordinates of the slot position of the cabinet equipment as an example, the location coordinates are sent to the first operating device, and the first operating device combines the location coordinates and the computer room map to move the corresponding node device to the location. The first operating device may be any automated equipment that can be used to transport node equipment and identify label information on the ground, such as a robot and the like.

S130、根据数据中心蓝图和被移动至对应位置的节点设备的角色,向第二操作装置发送网络连接指令,其中,网络连接指令用于指示第二操作装置建立被移动至对应位置的节点设备之间的网络连接。S130. Send a network connection instruction to the second operating device according to the data center blueprint and the role of the node device moved to the corresponding location, wherein the network connection instruction is used to instruct the second operating device to establish a connection between the node device moved to the corresponding location. network connection between.

建立网络连接的过程即使用网线,例如通信光缆线,将各个节点设备进行连接的过程。基于构建好的数据中心蓝图,机房中各个位置上的节点设备建立起网络连接,数据中心的构建便完成。The process of establishing a network connection is a process of connecting each node device using a network cable, such as a communication optical cable. Based on the constructed data center blueprint, the node devices at various locations in the computer room establish network connections, and the construction of the data center is completed.

本实施例的技术方案通过首先根据预先定义的节点设备的角色以及不同节点设备的连接关系,基于网络拓扑图构建数据中心蓝图,然后根据每个角色的标签信息,向第一操作装置发送移动指令,将与角色对应的节点设备移动至对应的位置,最后根据数据中心蓝图和被移动至对应位置的节点设备的角色,向第二操作装置发送网络连接指令,建立起各个位置上节点设备之间的网络连接,使得数据中心构建过程中无需再次重复记录各个节点设备的位置信息,并且本实施例中基于网络拓扑图构建的数据中心蓝图可以通过定义的角色更加直观明了地展示各节点设备之间的连接,解决了现有技术中构建数据中心过程繁琐的问题,简化了数据中心的构建过程,不仅提高了构建效率,而且降低了构建过程中的出错率。The technical solution of this embodiment is to first construct a data center blueprint based on the network topology map according to the predefined roles of node devices and the connection relationships of different node devices, and then send a movement instruction to the first operating device according to the label information of each role , move the node device corresponding to the role to the corresponding position, and finally send a network connection instruction to the second operating device according to the data center blueprint and the role of the node device moved to the corresponding position, and establish a connection between the node devices at each location. In addition, the data center blueprint constructed based on the network topology map in this embodiment can more intuitively and clearly show the relationship between the node devices through the defined roles. The connection solves the cumbersome process of building a data center in the prior art, simplifies the building process of the data center, not only improves the construction efficiency, but also reduces the error rate in the construction process.

实施例二Embodiment 2

图2是本发明实施例二提供的数据中心构建方法的流程图,本实施例以网络拓扑图为具有层次化结构特点的网络拓扑图为例,在上述实施例的基础上进一步进行优化与扩展。如图2所示,该方法可以包括:FIG. 2 is a flowchart of a data center construction method provided in Embodiment 2 of the present invention. In this embodiment, the network topology diagram is taken as an example with the characteristics of a hierarchical structure, and further optimization and expansion are carried out on the basis of the above-mentioned embodiment. . As shown in Figure 2, the method may include:

S210、根据预先定义的节点设备的角色和网络拓扑图,利用预设分类方法确定具有同构性的角色,得到至少一个同构角色群组,其中,同构角色群组的数量k与网络拓扑图的层数相同,k为大于1的自然数。S210: Determine roles with isomorphism by using a preset classification method according to the roles of the predefined node devices and the network topology, and obtain at least one isomorphic role group, wherein the number k of isomorphic role groups is related to the network topology The number of layers in the graph is the same, and k is a natural number greater than 1.

具体的,可以根据无向图与邻接矩阵之间的转化关系,将网络拓扑图转化为相应的邻接矩阵,即数据矩阵,然后利用预设分类方法,确定出具有同构性的角色。可选的,预设分类方法包括但不限于图同构算法或者基于分类思想的机器学习方法,例如基于GraphWave模型的可扩展的无监督学习方法。Specifically, according to the transformation relationship between the undirected graph and the adjacency matrix, the network topology graph can be transformed into a corresponding adjacency matrix, that is, a data matrix, and then a preset classification method is used to determine the roles with isomorphism. Optionally, the preset classification method includes, but is not limited to, a graph isomorphism algorithm or a machine learning method based on classification ideas, such as a scalable unsupervised learning method based on a GraphWave model.

如果在无向图G的邻接矩阵A中,第i行和第j行的数据完全相同,则节点i和节点j同构。具体的,邻接矩阵中Aij=1,表示在节点i和节点j之间存在连接的边;Aij=0,表示在节点i和节点j之间无连接。通过确定同构角色群组,可以便于对设备角色进行分类,使得数据中心蓝图的构建更加条理化。If in the adjacency matrix A of the undirected graph G, the data in the i-th row and the j-th row are exactly the same, then the node i and the node j are isomorphic. Specifically, A ij =1 in the adjacency matrix indicates that there is an edge connected between node i and node j; A ij =0 indicates that there is no connection between node i and node j. By identifying homogeneous role groups, it is convenient to classify device roles, which makes the construction of data center blueprints more organized.

S220、根据同构角色群组的数量以及同构角色群组中角色之间的连接关系,将网络拓扑图划分为至少k-1个双层局部网络拓扑图。S220: Divide the network topology map into at least k-1 two-layer partial network topology maps according to the number of isomorphic role groups and the connection relationship between the roles in the isomorphic role groups.

基于网络拓扑图的结构性特点,如果角色之间的连接关系不存在跨层连接的情况,对于k个同构角色群组,经划分即得到k-1个双层局部网络拓扑图;如果存在跨层连接的情况,对于k个同构角色群组,经划分即得到多于k-1个双层局部网络拓扑图。Based on the structural characteristics of the network topology map, if there is no cross-layer connection in the connection relationship between roles, for k isomorphic role groups, k-1 two-layer local network topology maps are obtained after division; In the case of cross-layer connection, for k isomorphic role groups, more than k-1 two-layer local network topology maps can be obtained after division.

S230、将每个双层局部网络拓扑图中每一层的角色分别进行参数标记,其中,每个双层局部网络拓扑图中分别处于第一行和处于第二行且具有连接关系的角色使用相同的参数标记。S230: Mark the roles of each layer in each two-layer local network topology map with parameters respectively, wherein, in each two-layer local network topology map, the roles that are in the first row and the second row respectively and have a connection relationship are used The same parameter markers.

标记的参数可以使用任意的字符进行表示,例如数字或者英文字母组合等,并且,每个角色可以同时使用一个或者多个参数进行标记。具有连接关系的角色,其标记参数中存在相同的值。Marked parameters can be represented by any character, such as numbers or English letter combinations, etc., and each character can be marked with one or more parameters at the same time. A role with a join relationship with the same value present in the tag parameter.

例如,角色的标记参数包括数字标识;相应的,网络拓扑图的当前层中与其相邻的上一层和相邻的下一层中的角色均具有连接关系的角色使用二维数字标识(x,y)进行标记。For example, the labeling parameters of roles include digital identifiers; correspondingly, roles in the current layer of the network topology map that are connected to the roles in the adjacent upper layer and the adjacent lower layer use two-dimensional digital identifiers (x , y) to mark.

S240、根据角色的标记参数和不同角色之间的连接规则,构建数据中心蓝图,其中,不同角色之间的连接规则根据不同节点设备的连接关系确定。S240. Construct a data center blueprint according to the marked parameters of the roles and the connection rules between different roles, wherein the connection rules between different roles are determined according to the connection relationship of different node devices.

S250、根据每个角色的标签信息,向第一操作装置发送移动指令,其中,标签信息用于记录与角色对应的节点设备在机房中的位置,移动指令用于指示第一操作装置将与角色对应的节点设备移动至对应的位置。S250. Send a movement instruction to the first operation device according to the label information of each character, wherein the label information is used to record the position of the node device corresponding to the character in the computer room, and the movement instruction is used to instruct the first operation device to associate with the character The corresponding node device moves to the corresponding position.

S260、根据数据中心蓝图和被移动至对应位置的节点设备的角色,向第二操作装置发送网络连接指令,其中,网络连接指令用于指示第二操作装置建立被移动至对应位置的节点设备之间的网络连接。S260. Send a network connection instruction to the second operating device according to the data center blueprint and the role of the node device moved to the corresponding location, wherein the network connection instruction is used to instruct the second operating device to establish a connection between the node device moved to the corresponding location. network connection between.

以下以胖树拓扑结构图为例,对本实施例中构建数据中心蓝图的过程进行示例性说明:The following takes the fat tree topology diagram as an example to illustrate the process of building a data center blueprint in this embodiment:

如图3所示,其示出了基于胖树拓扑结构图的数据中心蓝图的示意图。该胖树拓扑结构图包括四层,分别是:服务器层,边缘层,聚合层和核心层,每一层对应一种角色类型。将四个层对应于机房中节点设备的角色,分别是服务器(ServerNode)、边缘交换机(EdgeNode)、聚合交换机(AggregateNode)和核心交换机(CoreNode)。该胖树拓扑结构图中有四个自同构集(automorphism)即四个同构角色群组。同一层的节点设备属于同一个自同构集合,即所有服务器都是自同构的,所有边缘交换机都是自同构的,所有聚合交换机都是自同构的,所有核心交换机都是自同构的。其中,如果交换机上的端口数为m,则服务器的数量为m3/4,交换机的数量一共为5m2/4。同时,该胖树拓扑结构图中有m个pod(豆荚,表示容器组),每个pod由m/2个边缘交换机和m/2个聚合交换机组成,每个pod连接m2/4个服务器。图3作为示例,m的值为4,服务器的数量为16,交换机的数量一共为20,其中,2个边缘交换机和2个聚合交换机组成一个pod。数据中心蓝图中包括了角色与其位置之间的对应关系,建造者不需要再次记录节点设备到机房位置的映射信息,根据角色到位置的映射信息和角色之间的连接规则便可构建数据中心网络。As shown in FIG. 3 , it shows a schematic diagram of a data center blueprint based on a fat tree topology diagram. The fat tree topology diagram includes four layers, namely: server layer, edge layer, aggregation layer and core layer, each layer corresponds to a role type. The four layers correspond to the roles of the node devices in the computer room, namely the server (ServerNode), the edge switch (EdgeNode), the aggregation switch (AggregateNode) and the core switch (CoreNode). There are four automorphism sets (automorphism), that is, four isomorphic role groups in the fat tree topology diagram. Node devices on the same layer belong to the same automorphic set, that is, all servers are automorphic, all edge switches are automorphic, all aggregation switches are automorphic, and all core switches are automorphic constructed. Among them, if the number of ports on the switch is m, the number of servers is m 3 /4, and the total number of switches is 5m 2 /4. At the same time, there are m pods (pods, representing container groups) in the fat tree topology diagram, each pod consists of m/2 edge switches and m/2 aggregation switches, and each pod is connected to m 2 /4 servers . As an example in Figure 3, the value of m is 4, the number of servers is 16, and the number of switches is 20. Among them, 2 edge switches and 2 aggregation switches form a pod. The data center blueprint includes the correspondence between roles and their locations. The builder does not need to record the mapping information from node devices to the location of the computer room again. The data center network can be constructed according to the mapping information from roles to locations and the connection rules between roles. .

关于设备角色的标记和连接,实现过程分别如下:Regarding the marking and connection of device roles, the implementation processes are as follows:

对于核心交换机的角色,基于相同的连接,核心交换机可以分为m/2组,每组具有m/2核心交换机,属于不同组的核心交换机使用不同的组号(group)标记,属于相同组的核心交换机使用相同的组号标记。For the role of core switches, based on the same connection, core switches can be divided into m/2 groups, each group has m/2 core switches, core switches belonging to different groups are marked with different group numbers, and those belonging to the same group Core switches are marked with the same group number.

对于聚合交换机的角色,基于pod,聚合交换机可以分为m组。每组都有m/2个聚合交换机,每个聚合交换机使用二维标识(group,index)进行标记。每组中聚合交换机的索引号(index)与其连接的核心交换机的组号相同。属于相同组的聚合交换机使用相同的组号标记,属于不同组的聚合交换机使用不同的组号标记。For the role of aggregation switches, based on pods, aggregation switches can be divided into m groups. Each group has m/2 aggregation switches, and each aggregation switch is marked with a two-dimensional identifier (group, index). The index number (index) of the aggregation switch in each group is the same as the group number of the core switch to which it is connected. Aggregation switches that belong to the same group are marked with the same group number, and aggregation switches that belong to different groups are marked with different group numbers.

对于边缘交换机的角色,基于pod,边缘交换机可以分为m组,每组有m/2个边缘交换机,每个边缘交换机使用组号(group)进行标记。属于同一组的边缘交换机使用相同的组号标记,并且组号与其连接的聚合交换机的组号相同。For the role of edge switches, based on pods, edge switches can be divided into m groups, each group has m/2 edge switches, and each edge switch is marked with a group number (group). Edge switches that belong to the same group are marked with the same group number, and the group number is the same as the group number of the aggregation switch to which they are connected.

对于服务器的角色,基于pod,服务器可以分为m组,每组有m2/4个服务器,其中每个pod中每个边缘交换机都连接了m2/4个服务器。每个服务器使用组号(group)进行标注。属于同一组的服务器使用相同的组号标记,并且组号与其连接的边缘交换机的组号相同。For the role of servers, based on pods, servers can be divided into m groups, each group has m 2 /4 servers, where each edge switch in each pod is connected to m 2 /4 servers. Each server is labeled with a group number. Servers that belong to the same group are marked with the same group number, and the group number is the same as the group number of the edge switch to which they are connected.

其中,针对使用一维参数即可标记的角色,属于相同类型并且属于同一组的角色使用完全相同的标记参数,表示这些属于相同类型且标记参数相同的角色实质上属于等同的角色。Among them, for roles that can be marked using one-dimensional parameters, roles belonging to the same type and group use exactly the same marking parameters, indicating that these roles of the same type and marking parameters are substantially equivalent roles.

除了服务器之外,交换机的角色列表的有序性,可以决定交换机之间唯一正确连接的邻接矩阵。角色之间的连接规则如下:In addition to servers, the ordering of the switch's role list determines the only properly connected adjacency matrix between switches. The connection rules between roles are as follows:

1)具有相同角色的节点设备之间不相互连接。1) Node devices with the same role are not connected to each other.

2)相邻层的交换机之间有连接。2) There are connections between switches in adjacent layers.

3)对于核心交换机的角色和聚合交换机的角色,如果核心交换机的组号等于聚合交换机的索引号,则这两种角色的交换机之间存在连接关系,否则无连接。3) For the role of the core switch and the role of the aggregation switch, if the group number of the core switch is equal to the index number of the aggregation switch, there is a connection relationship between the switches of the two roles, otherwise there is no connection.

4)对于边缘交换机的角色和聚合交换机的角色,如果它们的组号相同,则这两种角色的交换机之间存在连接关系,否则无连接。4) For the role of the edge switch and the role of the aggregation switch, if their group numbers are the same, there is a connection relationship between the switches of the two roles, otherwise there is no connection.

5)对于服务器的角色和边缘交换机角色,如果它们的组号相同,则服务器和边缘交换对应的角色之间存在连接关系,否则无连接。5) For the role of the server and the role of the edge switch, if their group numbers are the same, there is a connection relationship between the roles corresponding to the server and the edge switch, otherwise there is no connection.

具体的,基于具有层次化结构特点的网络拓扑图构建的数据中心蓝图中,各个角色层依次为服务器层、边缘层、聚合层和核心层,其中,服务器层处于最底层,核心层处于最顶层;Specifically, in the data center blueprint constructed based on the network topology with hierarchical structure characteristics, each role layer is the server layer, edge layer, aggregation layer and core layer in sequence, wherein the server layer is at the bottom and the core layer is at the top. ;

数据中心蓝图中各个角色的参数标记过程包括:The parameter marking process for each role in the data center blueprint includes:

将服务器层的各个角色按照所属的当前层中角色组依次进行参数标记,其中,角色组是在设计蓝图的过程中确定的,属于同一角色组的角色在数据中心蓝图中具有等同性;Each role of the server layer is parameterized in sequence according to the role group in the current layer to which it belongs. The role group is determined in the process of designing the blueprint, and the roles belonging to the same role group are equivalent in the data center blueprint;

根据边缘层与服务器层中角色之间的连接关系,将边缘层的角色使用与之连接的服务器类角色在服务器层中的组号进行第一次标记,并根据边缘层中角色所属的当前层中角色组依次进行第二次标记,得到边缘层的各个角色的标记参数;According to the connection relationship between the roles in the edge layer and the server layer, the role of the edge layer is marked for the first time with the group number of the server class role connected to it in the server layer, and according to the current layer to which the role in the edge layer belongs The middle role group is marked for the second time in turn, and the marking parameters of each role in the edge layer are obtained;

将核心层的各个角色按照所属的当前层中角色组依次进行参数标记;Each role of the core layer is parameterized in sequence according to the role group in the current layer to which it belongs;

根据聚合层分别与边缘层和核心层中角色之间的连接关系,将聚合层的角色使用与之连接的边缘交换机类角色在边缘层中的组号进行第一次标记,并将聚合层的角色使用与之连接的核心交换机类角色在核心层中的组号进行第二次标记,得到聚合层的各个角色的标记参数;According to the connection relationship between the aggregation layer and the roles in the edge layer and the core layer, the role of the aggregation layer is marked for the first time with the group number of the edge switch class role connected to it in the edge layer, and the role of the aggregation layer is marked for the first time. The role is marked for the second time using the group number of the core switch role connected to it in the core layer, and the marking parameters of each role of the aggregation layer are obtained;

其中,每个角色层的角色在按照所属的当前层中角色组进行标记时,属于同一角色组的角色使用相同的组号标记,当涉及两次标记时,两次标记的参数放置顺序不作具体限定。Among them, when the roles of each role layer are marked according to the role group in the current layer to which they belong, the roles belonging to the same role group are marked with the same group number. When two markings are involved, the parameter placement order of the two markings is not specified. limited.

在上述技术方案的基础上,可选的,若在构建数据中心蓝图过程中,不同角色之间的连接规则指每个双层局部网络拓扑图中不同角色之间的连接关系,则该方法还包括:On the basis of the above technical solution, optionally, if in the process of constructing the data center blueprint, the connection rules between different roles refer to the connection relationship between different roles in each two-layer local network topology diagram, the method also further include:

根据角色的标记参数和每个双层局部网络拓扑图中不同角色之间的连接关系,得到参考图矩阵;According to the labeling parameters of the roles and the connection relationship between different roles in each two-layer local network topology map, the reference map matrix is obtained;

判断参考图矩阵与目标图矩阵是否相同,其中,目标图矩阵指与网络拓扑图对应的原始图矩阵;Determine whether the reference graph matrix is the same as the target graph matrix, wherein the target graph matrix refers to the original graph matrix corresponding to the network topology graph;

根据判断结果确定构建的数据中心蓝图的正确性。Determine the correctness of the constructed data center blueprint according to the judgment result.

如果基于定义的角色构建数据中心蓝图的过程中,分别基于拓扑网络结构中存在连接关系的相邻两层建立设备角色之间的连接关系,为了防止可能遗漏部分层之间的连接关系而导致构建的数据中心蓝图出错的情况,可以在基于多个双层局部网络拓扑图中不同角色之间的连接关系完成数据中心蓝图的构建之后,计算得到与构建的数据中心蓝图对应的参考图矩阵,即数据矩阵,将该参考图矩阵与构建数据中心之前设计的原始图矩阵进行比较,若两者相同,则说明当前构建的数据中心蓝图正确,可以用于指导构建数据中心;如果两者存在差异,则说明当前构建的数据中心蓝图存在错误,当前构建的数据中心蓝图不能用于指导其对应的原始网络拓扑形式的数据中心网络的构建。If, in the process of building a data center blueprint based on the defined roles, the connection relationship between the device roles is established based on the two adjacent layers that have a connection relationship in the topology network structure. In the case of errors in the data center blueprint, after completing the construction of the data center blueprint based on the connection relationships between different roles in multiple two-layer local network topology diagrams, the reference map matrix corresponding to the constructed data center blueprint can be calculated, that is, Data matrix, compare the reference map matrix with the original map matrix designed before building the data center. If the two are the same, it means that the currently constructed data center blueprint is correct and can be used to guide the construction of the data center; if there is a difference between the two, It means that there is an error in the currently constructed data center blueprint, and the currently constructed data center blueprint cannot be used to guide the construction of the data center network corresponding to the original network topology.

本实施例的技术方案通过根据预先定义的节点设备的角色和网络拓扑图,利用预设分类方法得到至少一个同构角色群组,然后根据同构角色群组的数量以及同构角色群组中角色之间的连接关系,将网络拓扑图划分为多个双层局部网络拓扑图,并对每个角色进行参数标记,其次结合不同角色之间的连接规则,构建数据中心蓝图,用于指导构建数据中心,解决了现有技术中构建数据中心过程繁琐的问题,简化了数据中心的构建过程,提高了构建效率,并可减少构建过程中的出错率。The technical solution of this embodiment obtains at least one isomorphic role group by using a preset classification method according to the roles of the pre-defined node devices and the network topology, and then according to the number of isomorphic role groups and the number of isomorphic role groups in the isomorphic role group The connection relationship between roles, the network topology map is divided into multiple two-layer local network topology maps, and parameters are marked for each role, and then the connection rules between different roles are combined to build a data center blueprint to guide the construction The data center solves the cumbersome process of constructing a data center in the prior art, simplifies the construction process of the data center, improves the construction efficiency, and can reduce the error rate in the construction process.

实施例三Embodiment 3

图4是本发明实施例三提供的数据中心构建装置的结构示意图,本实施例可适用于构建数据中心的情况。该装置可以采用软件和/或硬件的方式实现,并可集成在电子设备上。FIG. 4 is a schematic structural diagram of an apparatus for constructing a data center according to Embodiment 3 of the present invention, and this embodiment is applicable to the construction of a data center. The apparatus can be implemented in software and/or hardware, and can be integrated on electronic equipment.

如图4所示,本实施例提供的数据中心构建装置包括蓝图构建模块310、移动指令发送模块320和网络连接指令发送模块330,其中:As shown in FIG. 4 , the data center construction apparatus provided in this embodiment includes a blueprint construction module 310, a movement instruction sending module 320, and a network connection instruction sending module 330, wherein:

蓝图构建模块310,用于根据预先定义的节点设备的角色以及不同节点设备的连接关系,构建数据中心蓝图,其中,连接关系基于网络拓扑图实现;The blueprint construction module 310 is configured to construct a data center blueprint according to the roles of the predefined node devices and the connection relationship of different node devices, wherein the connection relationship is realized based on the network topology map;

移动指令发送模块320,用于根据每个角色的标签信息,向第一操作装置发送移动指令,其中,标签信息用于记录与角色对应的节点设备在机房中的位置,移动指令用于指示第一操作装置将与角色对应的节点设备移动至对应的位置;The movement instruction sending module 320 is used to send a movement instruction to the first operating device according to the label information of each character, wherein the label information is used to record the position of the node device corresponding to the character in the computer room, and the movement instruction is used to indicate the first operation device. An operating device moves the node device corresponding to the character to the corresponding position;

网络连接指令发送模块330,用于根据数据中心蓝图和被移动至对应位置的节点设备的角色,向第二操作装置发送网络连接指令,其中,网络连接指令用于指示第二操作装置建立被移动至对应位置的节点设备之间的网络连接。The network connection instruction sending module 330 is configured to send a network connection instruction to the second operating device according to the data center blueprint and the role of the node device moved to the corresponding location, wherein the network connection instruction is used to instruct the second operating device to establish the moved A network connection between node devices at the corresponding location.

可选的,网络拓扑图指具有层次化结构特点的网络拓扑图。Optionally, the network topology map refers to a network topology map with a hierarchical structure feature.

可选的,蓝图构建模块310包括:Optionally, the blueprint building block 310 includes:

同构角色群组确定单元,用于根据预先定义的节点设备的角色和网络拓扑图,利用预设分类方法确定具有同构性的角色,得到至少一个同构角色群组,其中,同构角色群组的数量k与网络拓扑图的层数相同,k为大于1的自然数;The isomorphic role group determination unit is used to determine roles with isomorphism by using a preset classification method according to the roles of the pre-defined node devices and the network topology, and obtain at least one isomorphic role group, wherein the isomorphic role The number of groups k is the same as the number of layers of the network topology graph, and k is a natural number greater than 1;

双层局部网络拓扑图划分单元,用于根据同构角色群组的数量以及同构角色群组中角色之间的连接关系,将网络拓扑图划分为至少k-1个双层局部网络拓扑图;The two-layer local network topology map dividing unit is used to divide the network topology map into at least k-1 two-layer local network topology maps according to the number of isomorphic role groups and the connection relationship between the roles in the isomorphic role groups ;

参数标记单元,用于将每个双层局部网络拓扑图中每一层的角色分别进行参数标记,其中,每个双层局部网络拓扑图中分别处于第一行和处于第二行且具有连接关系的角色使用相同的参数标记;The parameter labeling unit is used to label the role of each layer in each two-layer local network topology map with parameters respectively, wherein each two-layer local network topology map is located in the first row and the second row respectively and has a connection The roles of the relationship are marked with the same parameters;

蓝图构建单元,用于根据角色的标记参数和不同角色之间的连接规则,构建数据中心蓝图,其中,不同角色之间的连接规则根据不同节点设备的连接关系确定。The blueprint construction unit is used to construct a data center blueprint according to the marked parameters of the roles and the connection rules between different roles, wherein the connection rules between different roles are determined according to the connection relationship of different node devices.

可选的,若蓝图构建单元中不同角色之间的连接规则指每个双层局部网络拓扑图中不同角色之间的连接关系,则该装置还包括:Optionally, if the connection rules between different roles in the blueprint construction unit refer to the connection relationship between different roles in each two-layer local network topology diagram, the device further includes:

参考图矩阵确定模块,用于根据角色的标记参数和每个双层局部网络拓扑图中不同角色之间的连接关系,得到参考图矩阵;The reference graph matrix determination module is used to obtain the reference graph matrix according to the marked parameter of the character and the connection relationship between different characters in each two-layer local network topology graph;

图矩阵判断模块,用于判断参考图矩阵与目标图矩阵是否相同,其中,目标图矩阵指与网络拓扑图对应的原始图矩阵;The graph matrix judgment module is used to judge whether the reference graph matrix is the same as the target graph matrix, wherein the target graph matrix refers to the original graph matrix corresponding to the network topology graph;

蓝图正确性确定模块,用于根据判断结果确定构建的数据中心蓝图的正确性。The blueprint correctness determination module is used to determine the correctness of the constructed data center blueprint according to the judgment result.

可选的,预设分类方法包括图同构算法或者基于分类思想的机器学习方法。Optionally, the preset classification method includes a graph isomorphism algorithm or a machine learning method based on classification ideas.

可选的,角色的标记参数包括数字标识;Optionally, the tag parameter of the role includes a digital ID;

相应的,在参数标记单元中,网络拓扑图的当前层中与其相邻的上一层和相邻的下一层中的角色均具有连接关系的角色使用二维数字标识进行标记。Correspondingly, in the parameter marking unit, the roles in the current layer of the network topology map that are connected to the roles in the adjacent upper layer and the adjacent lower layer are marked with two-dimensional digital identifiers.

可选的,标签信息的呈现形式包括具有可读信息的标识码。Optionally, the presentation form of the label information includes an identification code with readable information.

可选的,网络拓扑图包括胖树拓扑结构图、VL2数据中心架构图、谷歌数据中心网络结构图或多级交换网络架构图。Optionally, the network topology diagram includes a fat tree topology diagram, a VL2 data center architecture diagram, a Google data center network architecture diagram, or a multi-level switching network architecture diagram.

本发明实施例所提供的数据中心构建装置可执行本发明任意实施例所提供的数据中心构建方法,具备执行方法相应的功能模块和有益效果。本实施例中未详尽描述的内容可以参考本发明方法实施例中的内容描述。The data center construction apparatus provided by the embodiment of the present invention can execute the data center construction method provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. For the content not described in detail in this embodiment, reference may be made to the content description in the method embodiment of the present invention.

实施例四Embodiment 4

图5是本发明实施例四提供的一种电子设备的结构示意图。图5示出了适于用来实现本发明实施方式的示例性电子设备412的框图。图5显示的电子设备412仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 5 is a schematic structural diagram of an electronic device according to Embodiment 4 of the present invention. Figure 5 shows a block diagram of an exemplary electronic device 412 suitable for use in implementing embodiments of the present invention. The electronic device 412 shown in FIG. 5 is only an example, and should not impose any limitation on the function and scope of use of the embodiment of the present invention.

如图5所示,电子设备412以通用电子设备的形式表现。电子设备412的组件可以包括但不限于:一个或者多个处理器416,存储装置428,连接不同系统组件(包括存储装置428和处理器416)的总线418。As shown in FIG. 5, the electronic device 412 takes the form of a general electronic device. Components of electronic device 412 may include, but are not limited to, one or more processors 416, storage 428, and a bus 418 that connects various system components including storage 428 and processor 416.

总线418表示几类总线结构中的一种或多种,包括存储装置总线或者存储装置控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(Industry SubversiveAlliance,ISA)总线,微通道体系结构(Micro Channel Architecture,MAC)总线,增强型ISA总线、视频电子标准协会(Video Electronics Standards Association,VESA)局域总线以及外围组件互连(Peripheral Component Interconnect,PCI)总线。Bus 418 represents one or more of several types of bus structures, including a storage device bus or storage device controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include, but are not limited to, Industry Subversive Alliance (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (Video Electronics Standards Association) , VESA) local bus and peripheral component interconnect (Peripheral Component Interconnect, PCI) bus.

电子设备412典型地包括多种计算机系统可读介质。这些介质可以是任何能够被电子设备412访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Electronic device 412 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 412, including both volatile and nonvolatile media, removable and non-removable media.

存储装置428可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(Random Access Memory,RAM)430和/或高速缓存存储器432。电子设备412可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统434可以用于读写不可移动的、非易失性磁介质(图5未显示,通常称为“硬盘驱动器”)。尽管图5中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘,例如只读光盘(Compact Disc Read-Only Memory,CD-ROM),数字视盘(Digital Video Disc-Read Only Memory,DVD-ROM)或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线418相连。存储装置428可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各Storage 428 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 430 and/or cache memory 432 . Electronic device 412 may further include other removable/non-removable, volatile/non-volatile computer system storage media. For example only, storage system 434 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in Figure 5, a magnetic disk drive may be provided for reading and writing to removable non-volatile magnetic disks (eg "floppy disks"), as well as removable non-volatile optical disks, such as Compact Disc Read -Only Memory, CD-ROM), digital video disc (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical media) CD-ROM drive for reading and writing. In these cases, each drive may be connected to bus 418 through one or more data media interfaces. Storage device 428 may include at least one program product having a set (eg, at least one) of program modules configured to perform various aspects of the present invention.

实施例的功能。The function of the embodiment.

具有一组(至少一个)程序模块442的程序/实用工具440,可以存储在例如存储装置428中,这样的程序模块442包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块442通常执行本发明所描述的实施例中的功能和/或方法。A program/utility 440 having a set (at least one) of program modules 442, which may be stored, for example, in storage device 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and programs Data, each or some combination of these examples may include an implementation of a network environment. Program modules 442 generally perform the functions and/or methods of the described embodiments of the present invention.

电子设备412也可以与一个或多个外部设备414(例如键盘、指向终端、显示器424等)通信,还可与一个或者多个使得用户能与该电子设备412交互的终端通信,和/或与使得该电子设备412能与一个或多个其它计算终端进行通信的任何终端(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口422进行。并且,电子设备412还可以通过网络适配器420与一个或者多个网络(例如局域网(Local Area Network,LAN),广域网(Wide Area Network,WAN)和/或公共网络,例如因特网)通信。如图5所示,网络适配器420通过总线418与电子设备412的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备412使用其它硬件和/或软件模块,包括但不限于:微代码、终端驱动器、冗余处理器、外部磁盘驱动阵列、磁盘阵列(Redundant Arrays of Independent Disks,RAID)系统、磁带驱动器以及数据备份存储系统等。The electronic device 412 may also communicate with one or more external devices 414 (eg, a keyboard, pointing terminal, display 424, etc.), with one or more terminals that enable a user to interact with the electronic device 412, and/or with Any terminal (eg, network card, modem, etc.) that enables the electronic device 412 to communicate with one or more other computing terminals. Such communication may take place through input/output (I/O) interface 422 . Also, the electronic device 412 may communicate with one or more networks (eg, Local Area Network (LAN), Wide Area Network (WAN), and/or public networks such as the Internet) through a network adapter 420 . As shown in FIG. 5 , network adapter 420 communicates with other modules of electronic device 412 via bus 418 . It should be understood that, although not shown, other hardware and/or software modules may be used in conjunction with electronic device 412, including but not limited to: microcode, terminal drivers, redundant processors, external disk drive arrays, Redundant Arrays of Independent Disks, RAID) systems, tape drives, and data backup storage systems.

处理器416通过运行存储在存储装置428中的程序,从而执行各种功能应用以及数据处理,例如实现本发明任意实施例所提供的数据中心构建方法,该方法可以包括:The processor 416 executes various functional applications and data processing by running the programs stored in the storage device 428, for example, to implement the data center construction method provided by any embodiment of the present invention, and the method may include:

根据预先定义的节点设备的角色以及不同节点设备的连接关系,构建数据中心蓝图,其中,所述连接关系基于网络拓扑图实现;Build a data center blueprint according to predefined roles of node devices and connection relationships of different node devices, wherein the connection relationships are implemented based on a network topology map;

根据每个角色的标签信息,向第一操作装置发送移动指令,其中,所述标签信息用于记录与角色对应的节点设备在机房中的位置,所述移动指令用于指示所述第一操作装置将所述与角色对应的节点设备移动至对应的位置;According to the label information of each character, a movement instruction is sent to the first operation device, wherein the label information is used to record the position of the node device corresponding to the character in the computer room, and the movement instruction is used to indicate the first operation The device moves the node device corresponding to the character to a corresponding position;

根据所述数据中心蓝图和被移动至对应位置的节点设备的角色,向第二操作装置发送网络连接指令,其中,所述网络连接指令用于指示所述第二操作装置建立所述被移动至对应位置的节点设备之间的网络连接。According to the data center blueprint and the role of the node device moved to the corresponding location, a network connection instruction is sent to the second operation device, wherein the network connection instruction is used to instruct the second operation device to establish the moved to The network connection between the node devices at the corresponding location.

实施例五Embodiment 5

本发明实施例五还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本发明任意实施例所提供的数据中心构建方法,该方法可以包括:Embodiment 5 of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, implements the data center construction method provided by any embodiment of the present invention, and the method may include:

根据预先定义的节点设备的角色以及不同节点设备的连接关系,构建数据中心蓝图,其中,所述连接关系基于网络拓扑图实现;Build a data center blueprint according to predefined roles of node devices and connection relationships of different node devices, wherein the connection relationships are implemented based on a network topology map;

根据每个角色的标签信息,向第一操作装置发送移动指令,其中,所述标签信息用于记录与角色对应的节点设备在机房中的位置,所述移动指令用于指示所述第一操作装置将所述与角色对应的节点设备移动至对应的位置;According to the label information of each character, a movement instruction is sent to the first operation device, wherein the label information is used to record the position of the node device corresponding to the character in the computer room, and the movement instruction is used to indicate the first operation The device moves the node device corresponding to the character to a corresponding position;

根据所述数据中心蓝图和被移动至对应位置的节点设备的角色,向第二操作装置发送网络连接指令,其中,所述网络连接指令用于指示所述第二操作装置建立所述被移动至对应位置的节点设备之间的网络连接。According to the data center blueprint and the role of the node device moved to the corresponding location, a network connection instruction is sent to the second operation device, wherein the network connection instruction is used to instruct the second operation device to establish the moved to The network connection between the node devices at the corresponding location.

本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiments of the present invention may adopt any combination of one or more computer-readable mediums. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (a non-exhaustive list) of computer readable storage media include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .

计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any suitable medium, including - but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或终端上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as the "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.

Claims (11)

1.一种数据中心构建方法,其特征在于,包括:1. a data center construction method, is characterized in that, comprises: 根据预先定义的节点设备的角色以及不同节点设备的连接关系,构建数据中心蓝图,其中,所述连接关系基于网络拓扑图实现;Build a data center blueprint according to predefined roles of node devices and connection relationships of different node devices, wherein the connection relationships are implemented based on a network topology map; 根据每个角色的标签信息,向第一操作装置发送移动指令,其中,所述标签信息用于记录与角色对应的节点设备在机房中的位置,所述移动指令用于指示所述第一操作装置将所述与角色对应的节点设备移动至对应的位置;According to the label information of each character, a movement instruction is sent to the first operation device, wherein the label information is used to record the position of the node device corresponding to the character in the computer room, and the movement instruction is used to indicate the first operation The device moves the node device corresponding to the character to a corresponding position; 根据所述数据中心蓝图和被移动至对应位置的节点设备的角色,向第二操作装置发送网络连接指令,其中,所述网络连接指令用于指示所述第二操作装置建立所述被移动至对应位置的节点设备之间的网络连接。According to the data center blueprint and the role of the node device moved to the corresponding location, a network connection instruction is sent to the second operation device, wherein the network connection instruction is used to instruct the second operation device to establish the moved to The network connection between the node devices at the corresponding location. 2.根据权利要求1所述的方法,其特征在于,所述网络拓扑图指具有层次化结构特点的网络拓扑图。2 . The method according to claim 1 , wherein the network topology map refers to a network topology map with a hierarchical structure feature. 3 . 3.根据权利要求2所述的方法,其特征在于,所述根据预先定义的节点设备的角色以及不同节点设备的连接关系,构建数据中心蓝图,包括:3. The method according to claim 2, wherein the building a data center blueprint according to predefined roles of node devices and connection relationships of different node devices comprises: 根据所述预先定义的节点设备的角色和所述网络拓扑图,利用预设分类方法确定具有同构性的角色,得到至少一个同构角色群组,其中,同构角色群组的数量k与所述网络拓扑图的层数相同,k为大于1的自然数;According to the roles of the predefined node devices and the network topology, a preset classification method is used to determine roles with isomorphism, and at least one isomorphic role group is obtained, wherein the number k of isomorphic role groups is equal to The number of layers of the network topology graph is the same, and k is a natural number greater than 1; 根据所述同构角色群组的数量以及所述同构角色群组中角色之间的连接关系,将所述网络拓扑图划分为至少k-1个双层局部网络拓扑图;According to the number of the isomorphic role groups and the connection relationship between the roles in the isomorphic role groups, the network topology map is divided into at least k-1 two-layer local network topology maps; 将每个双层局部网络拓扑图中每一层的角色分别进行参数标记,其中,每个双层局部网络拓扑图中分别处于第一行和处于第二行且具有连接关系的角色使用相同的参数标记;The roles of each layer in each two-layer local network topology map are parameterized respectively, wherein, the roles in the first row and the second row respectively in each two-layer local network topology map and having a connection relationship use the same parameter marker; 根据角色的标记参数和不同角色之间的连接规则,构建所述数据中心蓝图,其中,所述不同角色之间的连接规则根据所述不同节点设备的连接关系确定。The data center blueprint is constructed according to the marking parameters of the roles and the connection rules between different roles, wherein the connection rules between the different roles are determined according to the connection relationship of the different node devices. 4.根据权利要求3所述的方法,其特征在于,若所述不同角色之间的连接规则指每个双层局部网络拓扑图中不同角色之间的连接关系,则所述方法还包括:4. The method according to claim 3, wherein if the connection rule between the different roles refers to the connection relationship between the different roles in each two-layer local network topology diagram, the method further comprises: 根据角色的标记参数和所述每个双层局部网络拓扑图中不同角色之间的连接关系,得到参考图矩阵;According to the labeling parameters of the roles and the connection relationship between different roles in each of the two-layer local network topology diagrams, a reference map matrix is obtained; 判断所述参考图矩阵与目标图矩阵是否相同,其中,所述目标图矩阵指与所述网络拓扑图对应的原始图矩阵;Determine whether the reference graph matrix is the same as the target graph matrix, wherein the target graph matrix refers to the original graph matrix corresponding to the network topology graph; 根据判断结果确定所述构建的数据中心蓝图的正确性。The correctness of the constructed data center blueprint is determined according to the judgment result. 5.根据权利要求3所述的方法,其特征在于,所述预设分类方法包括图同构算法或者基于分类思想的机器学习方法。5 . The method according to claim 3 , wherein the preset classification method comprises a graph isomorphism algorithm or a machine learning method based on classification ideas. 6 . 6.根据权利要求3所述的方法,其特征在于,角色的标记参数包括数字标识;6. The method of claim 3, wherein the character's marking parameter comprises a digital identifier; 相应的,所述网络拓扑图的当前层中与其相邻的上一层和相邻的下一层中的角色均具有连接关系的角色使用二维数字标识进行标记。Correspondingly, in the current layer of the network topology map, the roles in the adjacent upper layer and the adjacent lower layer that have a connection relationship are marked with two-dimensional digital identifiers. 7.根据权利要求1所述的方法,其特征在于,所述标签信息的呈现形式包括具有可读信息的标识码。7. The method according to claim 1, wherein the presentation form of the label information comprises an identification code with readable information. 8.根据权利要求2所述的方法,其特征在于,所述网络拓扑图包括胖树拓扑结构图、VL2数据中心架构图、谷歌数据中心网络结构图或多级交换网络架构图。8. The method according to claim 2, wherein the network topology diagram comprises a fat tree topology diagram, a VL2 data center architecture diagram, a Google data center network architecture diagram or a multi-level switching network architecture diagram. 9.一种数据中心构建装置,其特征在于,包括:9. A data center construction device, characterized in that, comprising: 蓝图构建模块,用于根据预先定义的节点设备的角色以及不同节点设备的连接关系,构建数据中心蓝图,其中,所述连接关系基于网络拓扑图实现;a blueprint building module, configured to construct a data center blueprint according to the roles of the predefined node devices and the connection relationship of different node devices, wherein the connection relationship is realized based on the network topology map; 移动指令发送模块,用于根据每个角色的标签信息,向第一操作装置发送移动指令,其中,所述标签信息用于记录与角色对应的节点设备在机房中的位置,所述移动指令用于指示所述第一操作装置将所述与角色对应的节点设备移动至对应的位置;The moving instruction sending module is used to send a moving instruction to the first operating device according to the label information of each character, wherein the label information is used to record the position of the node device corresponding to the character in the computer room, and the moving instruction is used for instructing the first operating device to move the node device corresponding to the character to a corresponding position; 网络连接指令发送模块,用于根据所述数据中心蓝图和被移动至对应位置的节点设备的角色,向第二操作装置发送网络连接指令,其中,所述网络连接指令用于指示所述第二操作装置建立所述被移动至对应位置的节点设备之间的网络连接。A network connection instruction sending module, configured to send a network connection instruction to the second operating device according to the data center blueprint and the role of the node device moved to the corresponding location, wherein the network connection instruction is used to instruct the second operation device The operating device establishes a network connection between the node devices moved to the corresponding position. 10.一种电子设备,其特征在于,包括:10. An electronic device, comprising: 一个或多个处理器;one or more processors; 存储装置,用于存储一个或多个程序,storage means for storing one or more programs, 当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-8中任一所述的数据中心构建方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the data center construction method according to any one of claims 1-8. 11.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-8中任一所述的数据中心构建方法。11. A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the data center construction method according to any one of claims 1-8 is implemented.
CN201910110076.2A 2019-02-11 2019-02-11 Data center construction method and device, electronic equipment and medium Active CN109818796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910110076.2A CN109818796B (en) 2019-02-11 2019-02-11 Data center construction method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910110076.2A CN109818796B (en) 2019-02-11 2019-02-11 Data center construction method and device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN109818796A CN109818796A (en) 2019-05-28
CN109818796B true CN109818796B (en) 2022-04-15

Family

ID=66606348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910110076.2A Active CN109818796B (en) 2019-02-11 2019-02-11 Data center construction method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN109818796B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014409B (en) * 2019-12-19 2023-02-28 浙江宇视科技有限公司 A method, device, device and storage medium for network equipment configuration
CN111817959A (en) * 2020-07-16 2020-10-23 迈普通信技术股份有限公司 Network path management method and device, SDN controller and readable storage medium
CN114357676B (en) * 2021-12-15 2024-04-02 华南理工大学 Aggregation frequency control method for hierarchical model training framework

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546852A (en) * 2011-12-13 2012-07-04 西安交通大学 Address automatic configuration method of fault-tolerant data center network
CN103888304A (en) * 2012-12-19 2014-06-25 华为技术有限公司 Abnormity detection method of multi-node application and related apparatus
CN105119750A (en) * 2015-09-08 2015-12-02 南京联成科技发展有限公司 Distributed information security operation and maintenance management platform based on massive data
CN106130761A (en) * 2016-06-22 2016-11-16 北京百度网讯科技有限公司 The recognition methods of the failed network device of data center and device
CN107682199A (en) * 2017-10-23 2018-02-09 北京德塔精要信息技术有限公司 Topology exhibits method and device
CN107995032A (en) * 2017-11-29 2018-05-04 北京邮电大学 A kind of method and device that network experimental platform is built based on cloud data center
CN108638025A (en) * 2018-07-23 2018-10-12 郑州云海信息技术有限公司 A kind of rail polling robot for data center
CN108768687A (en) * 2018-04-09 2018-11-06 北京世纪互联宽带数据中心有限公司 IDC mixed assets manage system and IDC resource maintenance methods
CN109274672A (en) * 2018-09-26 2019-01-25 南京南瑞信息通信科技有限公司 Mobile operation and maintenance management and data interaction system for information communication equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8799438B2 (en) * 2010-12-14 2014-08-05 Microsoft Corporation Generic and automatic address configuration for data center networks
US20170099190A1 (en) * 2015-10-02 2017-04-06 Seagate Technology Llc Data center rack flexplane

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546852A (en) * 2011-12-13 2012-07-04 西安交通大学 Address automatic configuration method of fault-tolerant data center network
CN103888304A (en) * 2012-12-19 2014-06-25 华为技术有限公司 Abnormity detection method of multi-node application and related apparatus
CN105119750A (en) * 2015-09-08 2015-12-02 南京联成科技发展有限公司 Distributed information security operation and maintenance management platform based on massive data
CN106130761A (en) * 2016-06-22 2016-11-16 北京百度网讯科技有限公司 The recognition methods of the failed network device of data center and device
CN107682199A (en) * 2017-10-23 2018-02-09 北京德塔精要信息技术有限公司 Topology exhibits method and device
CN107995032A (en) * 2017-11-29 2018-05-04 北京邮电大学 A kind of method and device that network experimental platform is built based on cloud data center
CN108768687A (en) * 2018-04-09 2018-11-06 北京世纪互联宽带数据中心有限公司 IDC mixed assets manage system and IDC resource maintenance methods
CN108638025A (en) * 2018-07-23 2018-10-12 郑州云海信息技术有限公司 A kind of rail polling robot for data center
CN109274672A (en) * 2018-09-26 2019-01-25 南京南瑞信息通信科技有限公司 Mobile operation and maintenance management and data interaction system for information communication equipment

Also Published As

Publication number Publication date
CN109818796A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
EP3855353A2 (en) Image table extraction method and apparatus, electronic device, and storage medium
CN109634598A (en) A kind of page display method, device, equipment and storage medium
US20190065624A1 (en) Method and device for obtaining answer, and computer device
CN104765621B (en) A kind of method and system of the deployment program in clustered node
CN109818796B (en) Data center construction method and device, electronic equipment and medium
US11893012B1 (en) Content extraction using related entity group metadata from reference objects
CN114970439A (en) Automatic wiring method, device, computer equipment and storage medium
CN110444133A (en) Method and device for intelligent tour guide of tourist attractions
CN112990127B (en) Target identification method and device, electronic equipment and storage medium
WO2022105120A1 (en) Text detection method and apparatus from image, computer device and storage medium
CN103559194A (en) Searching method, server and system
CN111599242A (en) A virtual simulation system for computer network teaching
CN114493799A (en) A method and system for managing special vehicle order data by sub-database and sub-table
CN113553458A (en) Data export method and device in graph database
CN109688758B (en) Method, apparatus, electronic device, and medium for determining data center failure
CN112667508A (en) Mock method, system and device based on user-defined Mock platform and storage medium
CN111190983B (en) A device, system and method for splicing a substation model and a transmission line
CN114428917A (en) Map-based information sharing method, map-based information sharing device, electronic equipment and medium
CN109861863B (en) Method and device for determining connection fault of data center, electronic equipment and medium
CN108919695A (en) A kind of coding method, device, equipment and the storage medium of electrical equipment module
CN114330807B (en) Route determination method, device and electronic device
EP4394618A1 (en) Log data query method and apparatus, and device and medium
CN110334206A (en) A kind of sight spot methods of exhibiting, system, terminal and storage medium
CN104216919A (en) Method and system for perfecting electronic map data
CN109255081B (en) Portal service navigation method and system based on cloud platform

Legal Events

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