CN106657177A - Network reconstruction method and network reconstruction system - Google Patents
Network reconstruction method and network reconstruction system Download PDFInfo
- Publication number
- CN106657177A CN106657177A CN201510716496.7A CN201510716496A CN106657177A CN 106657177 A CN106657177 A CN 106657177A CN 201510716496 A CN201510716496 A CN 201510716496A CN 106657177 A CN106657177 A CN 106657177A
- Authority
- CN
- China
- Prior art keywords
- network
- virtual machine
- website
- subnet
- information
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000013507 mapping Methods 0.000 claims abstract description 118
- 238000001514 detection method Methods 0.000 claims description 4
- 230000001360 synchronised effect Effects 0.000 claims 6
- 239000011800 void material Substances 0.000 claims 2
- 238000010304 firing Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 3
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000011895 specific detection Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
- H04L41/122—Discovery or management of network topologies of virtualised topologies, e.g. software-defined networks [SDN] or network function virtualisation [NFV]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/40—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using virtualisation of network functions or resources, e.g. SDN or NFV entities
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明公开了一种网络重构的方法及系统,该方法包括:获取站点发送的网络同步信息,判定网络同步信息中的站点网络标识是否存在于预存的网络标识映射表中,若站点网络标识未存在于网络标识映射表中时,基于网络同步信息创建站点对应网络、子网以及虚拟机,以构建站点对应网络;若站点网络标识存在于网络标识映射表中,则基于获取到的网络同步信息,更新站点对应的站点信息。通过上述的方法可以及时的将站点的网络拓扑结构进行重构,这样方便用户多层次的查看网络部署情况。
The invention discloses a method and system for network reconfiguration. The method includes: obtaining network synchronization information sent by a site, and determining whether the site network identifier in the network synchronization information exists in a pre-stored network identifier mapping table, and if the site network identifier If it does not exist in the network ID mapping table, create a site corresponding network, subnet, and virtual machine based on the network synchronization information to build a site corresponding network; if the site network ID exists in the network ID mapping table, based on the obtained network synchronization Information, update the site information corresponding to the site. Through the above method, the network topology structure of the site can be reconstructed in time, which is convenient for the user to check the network deployment status at multiple levels.
Description
技术领域technical field
本发明涉及网络技术领域,尤其涉及一种网络重构的方法及系统。The present invention relates to the field of network technology, in particular to a method and system for network reconfiguration.
背景技术Background technique
随着云计算技术和网络虚拟化技术的发展,OpenStack提供了一套部署云的操作平台或工具集,为云计算基础设施服务提供解决方案。OpenStack具有开源、互操作性、可移植性、易用性的特点,而且还提供开发的应用程序编程接口(Application Programming Interface,简称:API),以便进行二次开发,能够方便的与其他系统进行集成,赢得业界越来越多的关注。With the development of cloud computing technology and network virtualization technology, OpenStack provides a set of operating platforms or tool sets for cloud deployment, and provides solutions for cloud computing infrastructure services. OpenStack has the characteristics of open source, interoperability, portability, and ease of use, and also provides an application programming interface (Application Programming Interface, referred to as: API) for secondary development, which can be easily integrated with other systems. Integration has won more and more attention from the industry.
网络功能虚拟化(Network Function Virtualization,简称:NFV)平台的目标是通过基于行业标准的服务器、存储和网络设备,来取代私有专用的网元设备。NFV基础设施必须是跨地理位置分布式部署的,NFV架构下的虚拟基础设施管理(Virtualized Infrastructure Manager,简称:VIM)的职责是控制和管理网络功能虚拟化基础设施,如计算、网络和存储等资源,可以通过增强OpenStack的功能实现VIM的功能以支持多站点的NFV平台。The goal of the network function virtualization (Network Function Virtualization, NFV for short) platform is to replace private and dedicated network element devices with industry standard-based servers, storage and network devices. The NFV infrastructure must be distributed across geographic locations. The virtual infrastructure manager (Virtualized Infrastructure Manager, VIM) under the NFV architecture is responsible for controlling and managing network function virtualization infrastructure, such as computing, network, and storage. Resources, the function of VIM can be implemented by enhancing the function of OpenStack to support the multi-site NFV platform.
随着云计算的部署和实际的应用,跨地域、大规模以及分级化的部署需求强,应用广。在实际部署时每个站点(可认为地理位置分散的区域或数据中心)均会独立运行一套OpenStack云系统,并且该站点的可处于自治状态独立运行,同时可处于多站点的NFV平台的管理,这样就存在站点处于自治状态下创建的网络、子网和虚拟机,接入NFV平台后,需要在NFV平台上呈现总体的网络信息,这样站点的网络同步信息在NFV平台上重构就成为一个亟待解决的问题。With the deployment and actual application of cloud computing, the demand for cross-regional, large-scale and hierarchical deployment is strong and the application is wide. In actual deployment, each site (which can be considered as a geographically dispersed area or data center) will independently run a set of OpenStack cloud systems, and the site can operate independently in an autonomous state, and can be managed by a multi-site NFV platform , so that there are networks, subnets, and virtual machines created when the site is in an autonomous state. After accessing the NFV platform, the overall network information needs to be presented on the NFV platform, so that the network synchronization information of the site can be reconstructed on the NFV platform. A burning problem.
发明内容Contents of the invention
本发明提供了一种网络重构的方法及系统,用以实现站点的网络同步信息在NFV平台上重构。The present invention provides a network reconfiguration method and system, which are used to realize the reconfiguration of the network synchronization information of the site on the NFV platform.
具体的技术方案如下:The specific technical scheme is as follows:
一种网络重构的方法,包括:A method for network reconstruction, comprising:
获取所述站点发送的网络同步信息;Obtain the network synchronization information sent by the site;
判定所述网络同步信息中的站点网络标识是否存在于预存的网络标识映射表中;Determine whether the site network identifier in the network synchronization information exists in a pre-stored network identifier mapping table;
若所述站点网络标识未存在于所述网络标识映射表中时,则基于所述网络同步信息创建所述站点对应网络、子网以及虚拟机,以构建所述站点对应网络;If the site network identifier does not exist in the network identifier mapping table, create the site-corresponding network, subnet and virtual machine based on the network synchronization information to construct the site-corresponding network;
若所述站点网络标识存在于所述网络标识映射表中时,则基于获取到的所述网络同步信息,更新所述站点对应的站点信息。If the station network identifier exists in the network identifier mapping table, update the station information corresponding to the station based on the acquired network synchronization information.
可选的,基于所述网络同步信息创建所述站点对应网络、子网以及逻辑虚拟机之后,还包括:Optionally, after creating the network, subnet and logical virtual machine corresponding to the site based on the network synchronization information, the method further includes:
根据网络同步信息,创建平台网络标识与站点网络标识的网络标识映射表;以及Create a network identification mapping table between the platform network identification and the site network identification according to the network synchronization information; and
创建平台子网标识与站点子网标识的子网标识映射表;以及creating a subnet ID mapping table between the platform subnet ID and the site subnet ID; and
创建平台虚拟机标识与站点虚拟机标识的虚拟机标识映射表;Create a virtual machine ID mapping table between the platform virtual machine ID and the site virtual machine ID;
保存所述网络标识映射表、所述子网标识映射表以及所述虚拟机标识映射表。Save the network ID mapping table, the subnet ID mapping table and the virtual machine ID mapping table.
可选的,若所述网络信息标识存在于所述网络信息标识映射表中时,更新所述站点对应的站点信息,包括:Optionally, if the network information ID exists in the network information ID mapping table, updating the site information corresponding to the site includes:
若所述网络信息标识存在于所述网络信息标识映射表中时,获取所述网络同步信息中的站点子网标识;If the network information identifier exists in the network information identifier mapping table, acquire the site subnet identifier in the network synchronization information;
判定所述站点子网标识是否存在于子网标识映射表中;Determine whether the site subnet identifier exists in the subnet identifier mapping table;
若所述站点子网标识未存在于所述子网标识映射表中时,创建所述站点对应的子网以及所述子网下的虚拟机;If the site subnet ID does not exist in the subnet ID mapping table, create a subnet corresponding to the site and a virtual machine under the subnet;
若所述站点子网标识存在于所述子网标识映射表中时,对所述子网下的虚拟机信息进行检测处理。If the site subnet identifier exists in the subnet identifier mapping table, the virtual machine information under the subnet is detected and processed.
可选的,若所述站点子网标识存在于所述子网标识映射表中时,对所述子网下的虚拟机信息进行检测处理,包括:Optionally, if the site subnet identifier exists in the subnet identifier mapping table, the detection and processing of virtual machine information under the subnet includes:
获取所述网络同步信息中的站点虚拟机标识;Obtain the site virtual machine identifier in the network synchronization information;
判定所述站点对应子网下的所述站点虚拟机标识是否存在于所述虚拟机标识映射表中;Determine whether the site virtual machine identifier under the subnet corresponding to the site exists in the virtual machine identifier mapping table;
若所述站点虚拟机标识存在于所述虚拟机标识映射表中时,检测所述虚拟机与所述子网下的其他虚拟机是否存在冲突,若存在冲突,则向所述站点返回同步失败信息,若不存在冲突,则将所述虚拟机对应的所述虚拟机信息覆盖原有的虚拟机信息;If the site virtual machine identifier exists in the virtual machine identifier mapping table, detect whether there is a conflict between the virtual machine and other virtual machines under the subnet, and if there is a conflict, return a synchronization failure to the site information, if there is no conflict, the virtual machine information corresponding to the virtual machine overwrites the original virtual machine information;
若所述站点虚拟机标识未存在于所述虚拟机标识映射表中时,检测所述虚拟机与已有的虚拟机是否存在冲突,若存在冲突,则向所述站点返回同步失败信息,若不存在冲突,则创建所述子网下的虚拟机,并创建以及保存所述平台虚拟机标识与站点虚拟机标识的虚拟机标识映射表。If the site virtual machine identifier does not exist in the virtual machine identifier mapping table, detect whether there is a conflict between the virtual machine and an existing virtual machine, and if there is a conflict, return a synchronization failure message to the site, if If there is no conflict, create a virtual machine under the subnet, and create and save a virtual machine ID mapping table between the platform virtual machine ID and the site virtual machine ID.
可选的,在基于所述网络同步信息创建所述站点对应网络、子网以及逻辑虚拟机,并保存所述网络同步信息之后,还包括:Optionally, after creating the network, subnet, and logical virtual machine corresponding to the site based on the network synchronization information, and saving the network synchronization information, the method further includes:
检测是否接收到站点上报的同步结束标识;Detect whether the synchronization end identifier reported by the site is received;
若接收到所述同步结束标识,则删除平台上已使用的网络同步信息;If the synchronization end identifier is received, the network synchronization information used on the platform is deleted;
若未接收到所述同步结束标识,则继续检测所述站点上报的网络同步信息。If the synchronization end identifier is not received, continue to detect the network synchronization information reported by the station.
一种网络重构的系统,包括:A system for network reconstruction, comprising:
站点接入模块,用于获取所述站点发送的网络同步信息;A site access module, configured to obtain network synchronization information sent by the site;
网络重构模块,用于判定所述网络同步信息中的站点网络标识是否存在于预存的网络标识映射表中;若所述站点网络标识未存在于所述网络标识映射表中时,则基于所述网络同步信息创建所述站点对应网络、子网以及虚拟机,以构建所述站点对应网络;若所述站点网络标识存在于所述网络标识映射表中时,则基于获取到的所述网络同步信息,更新所述站点对应的站点信息。A network reconfiguration module, configured to determine whether the site network identifier in the network synchronization information exists in a pre-stored network identifier mapping table; if the station network identifier does not exist in the network identifier mapping table, then based on the The network synchronization information creates the corresponding network, subnet and virtual machine of the site to construct the network corresponding to the site; if the network identification of the site exists in the network identification mapping table, based on the acquired network Synchronize information, and update the site information corresponding to the site.
可选的,所述网络重构模块,还用于根据网络同步信息,创建平台网络标识与站点网络标识的网络标识映射表;以及创建平台子网标识与站点子网标识的子网标识映射表;以及创建平台虚拟机标识与站点虚拟机标识的虚拟机标识映射表;Optionally, the network reconfiguration module is further configured to create a network identifier mapping table between platform network identifiers and site network identifiers according to network synchronization information; and create a subnetwork identifier mapping table between platform subnet identifiers and site subnet identifiers ; and creating a virtual machine ID mapping table between the platform virtual machine ID and the site virtual machine ID;
数据库模块,用于保存所述网络标识映射表、所述子网标识映射表以及所述虚拟机标识映射表。A database module, configured to save the network ID mapping table, the subnet ID mapping table and the virtual machine ID mapping table.
可选的,所述网络重构模块,具体用于若所述网络信息标识存在于所述网络信息标识映射表中时,获取所述网络同步信息中的站点子网标识;判定所述站点子网标识是否存在于子网标识映射表中;若所述站点子网标识未存在于所述子网标识映射表中时,创建所述站点对应的子网以及所述子网下的虚拟机;若所述站点子网标识存在于所述子网标识映射表中时,对所述子网下的虚拟机信息进行检测处理。Optionally, the network reconfiguration module is specifically configured to obtain the site subnet ID in the network synchronization information if the network information ID exists in the network information ID mapping table; Whether the network identifier exists in the subnet identifier mapping table; if the site subnet identifier does not exist in the subnet identifier mapping table, create the subnet corresponding to the site and the virtual machine under the subnet; If the site subnet identifier exists in the subnet identifier mapping table, the virtual machine information under the subnet is detected and processed.
可选的,所述网络重构模块,具体用于获取所述网络同步信息中的站点虚拟机标识;判定所述站点对应子网下的所述站点虚拟机标识是否存在于所述虚拟机标识映射表中;若所述站点虚拟机标识存在于所述虚拟机标识映射表中时,检测所述虚拟机与所述子网下的其他虚拟机是否存在冲突,若存在冲突,则向所述站点返回同步失败信息,若不存在冲突,则将所述虚拟机对应的所述虚拟机信息覆盖原有的虚拟机信息;若所述站点虚拟机标识未存在于所述虚拟机标识映射表中时,检测所述虚拟机与已有的虚拟机是否存在冲突,若存在冲突,则向所述站点返回同步失败信息,若不存在冲突,则创建所述子网下的虚拟机,并创建以及保存所述平台虚拟机标识与站点虚拟机标识的虚拟机标识映射表。Optionally, the network reconfiguration module is specifically configured to obtain the site virtual machine identifier in the network synchronization information; determine whether the site virtual machine identifier under the subnet corresponding to the site exists in the virtual machine identifier In the mapping table; if the site virtual machine identifier exists in the virtual machine identifier mapping table, detect whether there is a conflict between the virtual machine and other virtual machines under the subnet, and if there is a conflict, send the The site returns synchronization failure information, and if there is no conflict, the virtual machine information corresponding to the virtual machine overwrites the original virtual machine information; if the site virtual machine ID does not exist in the virtual machine ID mapping table , detect whether there is a conflict between the virtual machine and the existing virtual machine, if there is a conflict, return a synchronization failure message to the site, if there is no conflict, create a virtual machine under the subnet, and create and A virtual machine identifier mapping table of the platform virtual machine identifier and the site virtual machine identifier is saved.
可选的,所述网络重构模块,还用于检测是否接收到站点上报的同步结束标识;若接收到所述同步结束标识,则删除平台上已使用的网络同步信息;若未接收到所述同步结束标识,则继续检测所述站点上报的网络同步信息。Optionally, the network reconfiguration module is also used to detect whether the synchronization end identifier reported by the site is received; if the synchronization end identifier is received, the network synchronization information used on the platform is deleted; if the synchronization end identifier is not received If the synchronization end flag is not specified, continue to detect the network synchronization information reported by the station.
本发明提供一种网络重构的方法,该方法包括:获取站点发送的网络同步信息,判定网络同步信息中的站点网络标识是否存在于预存的网络标识映射表中,若站点网络标识未存在于网络标识映射表中时,基于网络同步信息创建站点对应网络、子网以及虚拟机,以构建站点对应网络;若站点网络标识存在于网络标识映射表中,则基于获取到的网络同步信息,更新站点对应的站点信息。通过上述的方法可以及时的将站点的网络拓扑结构进行重构,这样方便用户多层次的查看网络部署情况。The present invention provides a method for network reconfiguration, the method comprising: acquiring network synchronization information sent by a site, and determining whether the site network identifier in the network synchronization information exists in a pre-stored network identifier mapping table, if the site network identifier does not exist in the When it is in the network ID mapping table, create the network corresponding to the site, subnet and virtual machine based on the network synchronization information to build the network corresponding to the site; if the network ID of the site exists in the network ID mapping table, based on the obtained network synchronization information, update Site information corresponding to the site. Through the above method, the network topology structure of the site can be reconstructed in time, which is convenient for the user to check the network deployment status at multiple levels.
附图说明Description of drawings
图1为本发明实施例中一种网络重构的方法流程图;FIG. 1 is a flowchart of a method for network reconfiguration in an embodiment of the present invention;
图2为本发明实施例中站点与NFV平台的交互示意图;Fig. 2 is a schematic diagram of interaction between a site and an NFV platform in an embodiment of the present invention;
图3为本发明实施例中一种网络重构的系统结构示意图。FIG. 3 is a schematic structural diagram of a network reconfiguration system in an embodiment of the present invention.
具体实施方式detailed description
本发明实施例提供一种网络重构的方法及系统,该方法包括:获取站点发送的网络同步信息,判定网络同步信息中的站点网络标识是否存在于预存的网络标识映射表中,若站点网络标识未存在于网络标识映射表中时,基于网络同步信息创建站点对应网络、子网以及虚拟机,以构建站点对应网络;若站点网络标识存在于网络标识映射表中,则基于获取到的网络同步信息,更新站点对应的站点信息。通过上述的方法可以及时的将站点的网络拓扑结构进行重构,这样方便用户多层次的查看网络部署情况。Embodiments of the present invention provide a method and system for network reconfiguration, the method including: obtaining network synchronization information sent by a site, and determining whether the site network ID in the network synchronization information exists in the pre-stored network ID mapping table, if the site network When the identifier does not exist in the network identifier mapping table, create the network corresponding to the site, subnet and virtual machine based on the network synchronization information to construct the network corresponding to the site; if the network identifier of the site exists in the network identifier mapping table, based on the obtained network Synchronize information and update the site information corresponding to the site. Through the above method, the network topology structure of the site can be reconstructed in time, which is convenient for the user to check the network deployment status at multiple levels.
下面通过附图以及具体实施例对本发明技术方案做详细的说明,应当理解,本发明实施例以及实施例中的具体技术特征只是对本发明技术方案的说明,而不是限定,在不冲突的情况下,本发明实施例以及实施例中的具体技术特征可以相互组合。The technical solutions of the present invention will be described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific technical features in the embodiments are only descriptions of the technical solutions of the present invention, rather than limitations. , the embodiments of the present invention and specific technical features in the embodiments may be combined with each other.
如图1所示为本发明实施例中一种网络重构的方法的流程图,该方法包括:As shown in Figure 1, it is a flowchart of a method for network reconfiguration in an embodiment of the present invention, the method includes:
S101,获取站点发送的网络同步信息;S101, acquiring network synchronization information sent by the site;
S102,判定网络同步信息中的站点网络标识是否存在于预存的网络标识映射表中;S102. Determine whether the site network identifier in the network synchronization information exists in a pre-stored network identifier mapping table;
若站点网络标识未存在于网络标识映射表中时,则执行S103,若站点网络标识存在于网络标识映射表中时,则执行S104。If the site network identifier does not exist in the network identifier mapping table, execute S103, and if the station network identifier exists in the network identifier mapping table, execute S104.
S103,基于网络同步信息创建站点对应网络、子网以及虚拟机,以构建站点对应网络;S103. Create a site-corresponding network, a subnet, and a virtual machine based on the network synchronization information, so as to construct a site-corresponding network;
S104,基于获取到的网络同步信息,更新站点对应的站点信息。S104. Based on the acquired network synchronization information, update the site information corresponding to the site.
具体来讲,在本发明实施例中,该方法可以应用到网络功能虚拟化平台(Network Function Virtualization,简称:NFV)中,为了保证该NFV平台能够及时的更新重构网络结构,因此,NFV平台将实时的获取到下属站点的网络同步信息,在本发明实施例中,该网络同步信息可以为如下的格式:Specifically, in the embodiment of the present invention, the method can be applied to a network function virtualization platform (Network Function Virtualization, NFV for short), in order to ensure that the NFV platform can update and reconstruct the network structure in time, therefore, the NFV platform The network synchronization information of the subordinate sites will be obtained in real time. In the embodiment of the present invention, the network synchronization information can be in the following format:
{sitname:{networkName1:{sitNetUUID,sitSubnetName1:{sitSubnetUUID,VM1:{sitvmUUID,otherVMIntfo},otherSubnetInfo},otherNetInfo}}}{sitname:{networkName1:{sitNetUUID, sitSubnetName1:{sitSubnetUUID,VM1:{sitvmUUID,otherVMIntfo},otherSubnetInfo},otherNetInfo}}}
其中,sitname表示站点名;networkName1表示网络名;sitNetUUID表示该网络在站点内标识的ID值,即:站点网络标识;nsitSubnetName1表示该网络下的子网1的名称;sitSubnetUUID表示子网在站点内标识的ID值,即:站点子网标识;VM1表示处于该子网下的虚拟机1;sitvmUUID表示虚拟机在站点内标识的ID值,即:站点虚拟机标识;otherVMIntfo表示虚拟机的其它信息,otherSubnetInfo表示子网的其它信息;otherNetInfo表示网络的其它信息。Among them, sitname indicates the site name; networkName1 indicates the network name; sitNetUUID indicates the ID value of the network identified in the site, that is, the site network ID; nsitSubnetName1 indicates the name of subnet 1 under the network; sitSubnetUUID indicates the identification of the subnet in the site ID value, namely: site subnet ID; VM1 indicates virtual machine 1 under this subnet; sitvmUUID indicates the ID value of the virtual machine identified in the site, namely: site virtual machine ID; otherVMIntfo indicates other information of the virtual machine, otherSubnetInfo indicates other information of the subnet; otherNetInfo indicates other information of the network.
进一步,在本发明实施例中,NFV平台中预存了已接入过该NFV平台的站点的各种映射表,比如说网络标识映射表、子网标识映射表、虚拟机标识映射表,在网络标识映射表中保存了已接入过NFV平台的站点的站点网络标识,在子网标识映射表中保存了已接入过NFV平台的站点的站点子网标识,在虚拟机标识映射表中保存了已接入过NFV平台的站点的站点虚拟机标识。Further, in the embodiment of the present invention, various mapping tables of sites that have accessed the NFV platform are pre-stored in the NFV platform, such as the network identification mapping table, the subnet identification mapping table, and the virtual machine identification mapping table. The site network ID of the site that has been connected to the NFV platform is stored in the ID mapping table, the subnet ID of the site that has been connected to the NFV platform is stored in the subnet ID mapping table, and the virtual machine ID mapping table is saved The ID of the site virtual machine that has been connected to the NFV platform.
基于上述的已保存的各种映射表,NFV平台获取到某一个站点上报的具有上述格式的网络同步信息之后,NFV平台将首先在网络同步信息中获取到站点网络标识,NFV平台将获取到的站点网络标识与网络标识映射表中各个站点网络标识进行匹配,若是该网络同步信息中的站点网络标识未存在于网络标识映射表中时,NFV平台将基于网络同步信息创建站点对应网络、子网以及虚拟机,在创建站点对应网络、子网以及虚拟机之后,NFV平台将根据网络同步信息,创建平台网络标识与站点网络标识的网络标识映射表,以及创建平台子网标识与站点子网标识的子网标识映射表,以及创建平台虚拟机标识与站点虚拟机的虚拟机映射表。NFV平台保存创建的网络标识映射表、子网标识映射表以及虚拟机标识映射表。Based on the above-mentioned saved mapping tables, after the NFV platform obtains the network synchronization information in the above format reported by a certain site, the NFV platform will first obtain the site network identifier from the network synchronization information, and the NFV platform will obtain the Match the site network ID with the network ID of each site in the network ID mapping table. If the site network ID in the network synchronization information does not exist in the network ID mapping table, the NFV platform will create the network and subnet corresponding to the site based on the network synchronization information And the virtual machine, after creating the network, subnet and virtual machine corresponding to the site, the NFV platform will create a network identification mapping table between the platform network identification and the site network identification according to the network synchronization information, and create the platform subnet identification and the site subnet identification Create a subnet ID mapping table for the platform virtual machine ID and a virtual machine mapping table for the site virtual machine. The NFV platform saves the created network ID mapping table, subnet ID mapping table and virtual machine ID mapping table.
基于NFV平台针对该站点创建的网络、子网、虚拟机以及网络标识映射表、子网标识映射表、虚拟机标识映射表,NFV平台将重构出该站点对应网络。Based on the network, subnet, virtual machine, and network ID mapping table, subnet ID mapping table, and virtual machine ID mapping table created by the NFV platform for the site, the NFV platform will reconstruct the network corresponding to the site.
若是站点的站点网络标识存在于网络标识映射表中时,NFV平台将根据网络同步信息,更新该站点对应的站点信息,具体更新处理方法如下:If the site network identifier of the site exists in the network identifier mapping table, the NFV platform will update the site information corresponding to the site according to the network synchronization information. The specific update processing method is as follows:
站点的站点网络标识存在于网络标识映射表中时,NFV平台将进一步的获取网络同步信息中的站点子网标识,判定站点子网标识是否存在于子网标识映射表中,若是站点子网标识未存在于子网标识映射标识中时,创建站点对应的子网以及该子网下的虚拟机,也就是说,该站点在NFV平台中为构建完整网络时,NFV平台将为该站点构建子网以及子网下的虚拟机,并且创建创建平台子网标识与站点子网标识的子网标识映射表,以及创建平台虚拟机标识与站点虚拟机的虚拟机映射表,这样使得站点在NFV平台能够重构该站点对应网络。When the site network ID of the site exists in the network ID mapping table, the NFV platform will further obtain the site subnet ID in the network synchronization information, and determine whether the site subnet ID exists in the subnet ID mapping table. If the site subnet ID If it does not exist in the subnet identifier mapping identifier, create the subnet corresponding to the site and the virtual machines under the subnet, that is, when the site is not building a complete network in the NFV platform, the NFV platform will build a Network and virtual machines under the subnet, and create a subnet ID mapping table between the platform subnet ID and the site subnet ID, and create a virtual machine mapping table between the platform virtual machine ID and the site virtual machine, so that the site is on the NFV platform It is possible to reconstruct the network corresponding to the site.
进一步,若是NFV平台检测到该站点对应的站点子网标识存在于子网标识映射表中时,NFV平台对该子网下的虚拟机信息进行检测处理,具体的检测处理过程如下:Further, if the NFV platform detects that the site subnet ID corresponding to the site exists in the subnet ID mapping table, the NFV platform detects and processes the virtual machine information under the subnet, and the specific detection process is as follows:
NFV平台获取网络同步信息中的站点虚拟机标识,判定站点对应子网下的站点虚拟机标识是否存在于虚拟机标识映射表中,若站点虚拟机标识存在于虚拟机标识映射表中时,检测虚拟机与子网下的其他虚拟机是否存在冲突,若存在冲突,则向站点返回同步失败信息,若不存在冲突,则将虚拟机对应的虚拟机信息覆盖原有的虚拟机信息,也就是说,子网下虚拟机不存在冲突的情况下,NFV平台将通过获取到的虚拟机信息更新原有的虚拟机信息,从而通过网络同步信息重构该站点对应网络,进而保证站点对应网络能够及时更新。The NFV platform obtains the site virtual machine ID in the network synchronization information, and determines whether the site virtual machine ID under the subnet corresponding to the site exists in the virtual machine ID mapping table. If the site virtual machine ID exists in the virtual machine ID mapping table, it detects Whether there is conflict between the virtual machine and other virtual machines under the subnet. If there is a conflict, the synchronization failure information will be returned to the site. If there is no conflict, the virtual machine information corresponding to the virtual machine will overwrite the original virtual machine information, that is, In other words, if there is no conflict in the virtual machines under the subnet, the NFV platform will update the original virtual machine information through the obtained virtual machine information, thereby reconstructing the network corresponding to the site through network synchronization information, thereby ensuring that the network corresponding to the site can renewed on time.
若是站点虚拟机标识未存在虚拟机标识映射表中时,检测虚拟机与已有的虚拟机是否存在冲突,若存在冲突,则向站点返回同步失败信息,若不存在冲突,则创建子网下的虚拟机,并创建以及保存平台虚拟机标识与站点虚拟机标识的虚拟机标识映射表。也就是说,在虚拟机不存在当前子网下,NFV平台将在该子网下创建不存在冲突的虚拟机,这样通过网络同步信息重构该站点对应网络,进而保证站点对应网络能够及时更新。If the virtual machine ID of the site does not exist in the virtual machine ID mapping table, check whether there is a conflict between the virtual machine and the existing virtual machine. If there is a conflict, return the synchronization failure information to the site. If there is no conflict, create a subnet virtual machine, and create and save a virtual machine ID mapping table between the platform virtual machine ID and the site virtual machine ID. That is to say, if the virtual machine does not exist in the current subnet, the NFV platform will create a virtual machine in the subnet without conflicts, so that the corresponding network of the site can be reconstructed through network synchronization information, thereby ensuring that the corresponding network of the site can be updated in time .
下面通过图2对上述的内容进行简要说明,在图2中,站点向NFV平台发起连接,NFV平台向站点返回接受连接,这样NFV平台与站点之间就建立连接,站点启动网络同步,站点向NFV平台发送网络同步信息,NFV平台接收到该网络同步信息之后,NFV平台处理该网络同步信息,并进行网络重构,在重构完成之后,NFV平台将向站点反馈网络同步完成响应,这样就完成了网络信息同步过程。Below is a brief description of the above content through Figure 2. In Figure 2, the site initiates a connection to the NFV platform, and the NFV platform returns to the site to accept the connection. In this way, a connection is established between the NFV platform and the site, and the site starts network synchronization. The NFV platform sends network synchronization information. After the NFV platform receives the network synchronization information, the NFV platform processes the network synchronization information and performs network reconstruction. After the reconstruction is completed, the NFV platform will feed back the network synchronization completion response to the site, so that The network information synchronization process is completed.
进一步,在本发明实施例中,NFV平台在获取网络同步信息时,该将检测是否接收到站点上报的同步结束标识,若是接收到同步结束标识时,则删除平台上已使用的网络同步信息,若未接收到同步结束标识时,则继续检测站点上报的网络同步信息,也就是说,站点在完成网络同步信息的上报之后,站点会将同步结束标识发送给NFV平台,这样NFV平台能够及时停止对该站点的网络同步,从而避免出现网络资源浪费,并且也可以减少NFV平台的运行压力。Further, in the embodiment of the present invention, when the NFV platform acquires network synchronization information, it will detect whether the synchronization end identifier reported by the site is received, and if it receives the synchronization end identifier, then delete the used network synchronization information on the platform, If the synchronization end identification is not received, continue to detect the network synchronization information reported by the site, that is, after the site completes the reporting of the network synchronization information, the site will send the synchronization end identification to the NFV platform, so that the NFV platform can stop in time The network synchronization of the site avoids waste of network resources and reduces the operating pressure of the NFV platform.
综上来讲,在本发明实施例中NFV平台获取站点发送的网络同步信息,判定网络同步信息中的站点网络标识是否存在于预存的网络标识映射表中,若站点网络标识未存在于网络标识映射表中时,基于网络同步信息创建站点对应网络、子网以及虚拟机,以构建站点对应网络;若站点网络标识存在于网络标识映射表中,则基于获取到的网络同步信息,更新站点对应的站点信息。通过上述的方法可以及时的将站点的网络拓扑结构进行重构,这样方便用户多层次的查看网络部署情况。To sum up, in the embodiment of the present invention, the NFV platform obtains the network synchronization information sent by the site, and determines whether the site network identifier in the network synchronization information exists in the pre-stored network identifier mapping table, if the site network identifier does not exist in the network identifier mapping table When in the table, create the network, subnet, and virtual machine corresponding to the site based on the network synchronization information to build the network corresponding to the site; if the site network identifier exists in the network identifier mapping table, update the corresponding Site Information. Through the above method, the network topology structure of the site can be reconstructed in time, which is convenient for the user to check the network deployment status at multiple levels.
另外需要说明的是,上述的过程说明的是一个站点对应的网络同步,其他站点的同步过程上述的过程一致,在本发明实施例就不再一一说明。In addition, it should be noted that the above process describes the network synchronization corresponding to one site, and the synchronization process of other sites is the same as the above process, and will not be described one by one in the embodiment of the present invention.
对应本发明实施例中一种网络重构的方法,本发明实施例中还提供了一种网络重构的系统,如图3所示为本发明实施例中一种网络重构的系统结构示意图,该系统包括:Corresponding to a network reconfiguration method in the embodiment of the present invention, a network reconfiguration system is also provided in the embodiment of the present invention, as shown in FIG. 3 , a schematic structural diagram of a network reconfiguration system in the embodiment of the present invention , the system consists of:
站点接入模块301,用于获取所述站点发送的网络同步信息;A site access module 301, configured to acquire network synchronization information sent by the site;
网络重构模块302,用于判定所述网络同步信息中的站点网络标识是否存在于预存的网络标识映射表中;若所述站点网络标识未存在于所述网络标识映射表中时,则基于所述网络同步信息创建所述站点对应网络、子网以及虚拟机,以构建所述站点对应网络;若所述站点网络标识存在于所述网络标识映射表中时,则基于获取到的所述网络同步信息,更新所述站点对应的站点信息。A network reconfiguration module 302, configured to determine whether the station network identifier in the network synchronization information exists in a pre-stored network identifier mapping table; if the station network identifier does not exist in the network identifier mapping table, then based on The network synchronization information creates the site-corresponding network, subnet and virtual machine to construct the site-corresponding network; if the site network identifier exists in the network identifier mapping table, based on the acquired The network synchronizes the information, and updates the site information corresponding to the site.
进一步,在本发明实施例中,所述网络重构模块202,还用于根据网络同步信息,创建平台网络标识与站点网络标识的网络标识映射表;以及创建平台子网标识与站点子网标识的子网标识映射表;以及创建平台虚拟机标识与站点虚拟机标识的虚拟机标识映射表;Further, in the embodiment of the present invention, the network reconfiguration module 202 is also used to create a network identification mapping table of the platform network identification and the site network identification according to the network synchronization information; and create the platform subnet identification and the site subnet identification Subnet ID mapping table; and creating a virtual machine ID mapping table between the platform virtual machine ID and the site virtual machine ID;
数据库模块,用于保存所述网络标识映射表、所述子网标识映射表以及所述虚拟机标识映射表。A database module, configured to save the network ID mapping table, the subnet ID mapping table and the virtual machine ID mapping table.
进一步,在本发明实施例中,所述网络重构模块202,具体用于若所述网络信息标识存在于所述网络信息标识映射表中时,获取所述网络同步信息中的站点子网标识;判定所述站点子网标识是否存在于子网标识映射表中;若所述站点子网标识未存在于所述子网标识映射表中时,创建所述站点对应的子网以及所述子网下的虚拟机;若所述站点子网标识存在于所述子网标识映射表中时,对所述子网下的虚拟机信息进行检测处理。Further, in the embodiment of the present invention, the network reconfiguration module 202 is specifically configured to acquire the site subnet ID in the network synchronization information if the network information ID exists in the network information ID mapping table ; Determine whether the site subnet ID exists in the subnet ID mapping table; if the site subnet ID does not exist in the subnet ID mapping table, create the subnet corresponding to the site and the subnet A virtual machine under the network; if the site subnet ID exists in the subnet ID mapping table, detect and process information about the virtual machine under the subnet.
进一步,在本发明实施例中,所述网络重构模块202,具体用于获取所述网络同步信息中的站点虚拟机标识;判定所述站点对应子网下的所述站点虚拟机标识是否存在于所述虚拟机标识映射表中;若所述站点虚拟机标识存在于所述虚拟机标识映射表中时,检测所述虚拟机与所述子网下的其他虚拟机是否存在冲突,若存在冲突,则向所述站点返回同步失败信息,若不存在冲突,则将所述虚拟机对应的所述虚拟机信息覆盖原有的虚拟机信息;若所述站点虚拟机标识未存在于所述虚拟机标识映射表中时,检测所述虚拟机与已有的虚拟机是否存在冲突,若存在冲突,则向所述站点返回同步失败信息,若不存在冲突,则创建所述子网下的虚拟机,并创建以及保存所述平台虚拟机标识与站点虚拟机标识的虚拟机标识映射表。Further, in the embodiment of the present invention, the network reconfiguration module 202 is specifically configured to obtain the site virtual machine identifier in the network synchronization information; determine whether the site virtual machine identifier exists under the subnet corresponding to the site In the virtual machine identifier mapping table; if the site virtual machine identifier exists in the virtual machine identifier mapping table, detect whether there is a conflict between the virtual machine and other virtual machines under the subnet, and if there is conflict, then return synchronization failure information to the site, if there is no conflict, the virtual machine information corresponding to the virtual machine will overwrite the original virtual machine information; if the site virtual machine identifier does not exist in the When the virtual machine identifier is in the mapping table, detect whether there is a conflict between the virtual machine and the existing virtual machine, if there is a conflict, then return the synchronization failure information to the site, if there is no conflict, then create a virtual machine under the subnet virtual machine, and create and save a virtual machine ID mapping table between the platform virtual machine ID and the site virtual machine ID.
进一步,在本发明实施例中,所述网络重构模块202,还用于检测是否接收到站点上报的同步结束标识;若接收到所述同步结束标识,则删除平台上已使用的网络同步信息;若未接收到所述同步结束标识,则继续检测所述站点上报的网络同步信息。Further, in the embodiment of the present invention, the network reconfiguration module 202 is also used to detect whether the synchronization end identifier reported by the site is received; if the synchronization end identifier is received, the network synchronization information used on the platform is deleted ; If the synchronization end identifier is not received, continue to detect the network synchronization information reported by the station.
进一步,在本发明实施例中,该系统还包括:Further, in the embodiment of the present invention, the system also includes:
网络呈现模块,具体用于根据呈现指令,呈现网络重构结构。The network presentation module is specifically configured to present the network reconstruction structure according to the presentation instruction.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510716496.7A CN106657177A (en) | 2015-10-29 | 2015-10-29 | Network reconstruction method and network reconstruction system |
PCT/CN2016/088211 WO2017071279A1 (en) | 2015-10-29 | 2016-07-01 | Network reconstruction method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510716496.7A CN106657177A (en) | 2015-10-29 | 2015-10-29 | Network reconstruction method and network reconstruction system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106657177A true CN106657177A (en) | 2017-05-10 |
Family
ID=58629801
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510716496.7A Withdrawn CN106657177A (en) | 2015-10-29 | 2015-10-29 | Network reconstruction method and network reconstruction system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106657177A (en) |
WO (1) | WO2017071279A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107783822A (en) * | 2017-11-10 | 2018-03-09 | 郑州云海信息技术有限公司 | A kind of method for managing resource and device |
CN114826928A (en) * | 2021-01-21 | 2022-07-29 | 中国移动通信有限公司研究院 | NFV (network function virtualization) test processing method and device and related equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1929407A (en) * | 2006-09-27 | 2007-03-14 | 华为技术有限公司 | Method for obtaining network information and network management system |
CN101291304A (en) * | 2008-06-13 | 2008-10-22 | 清华大学 | A Portable Network Information Sharing Method |
CN103067129A (en) * | 2012-12-24 | 2013-04-24 | 中国科学院深圳先进技术研究院 | Method and system for transmission of network data |
CN103532741A (en) * | 2013-09-27 | 2014-01-22 | 瑞斯康达科技发展股份有限公司 | Access level network topology management method and system |
CN103780470A (en) * | 2014-01-03 | 2014-05-07 | 杭州华三通信技术有限公司 | IS-IS information synchronization method and device |
US20150180730A1 (en) * | 2013-12-19 | 2015-06-25 | Amdocs Software Systems Limited | System, method, and computer program for inter-module communication in a network based on network function virtualization (nfv) |
CN104811328A (en) * | 2014-01-27 | 2015-07-29 | 杭州华三通信技术有限公司 | Virtual network resource management method and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101521836B1 (en) * | 2008-07-25 | 2015-05-20 | 알까뗄 루슨트 | A method and device used in radio relay networks to re-construct the topology of networks |
CN104301812B (en) * | 2014-09-19 | 2020-06-30 | 中国电力科学研究院信息通信研究所 | Optical network system and network function virtualization method |
CN104244364A (en) * | 2014-10-08 | 2014-12-24 | 无锡北邮感知技术产业研究院有限公司 | Content-oriented network system and layering method thereof |
-
2015
- 2015-10-29 CN CN201510716496.7A patent/CN106657177A/en not_active Withdrawn
-
2016
- 2016-07-01 WO PCT/CN2016/088211 patent/WO2017071279A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1929407A (en) * | 2006-09-27 | 2007-03-14 | 华为技术有限公司 | Method for obtaining network information and network management system |
CN101291304A (en) * | 2008-06-13 | 2008-10-22 | 清华大学 | A Portable Network Information Sharing Method |
CN103067129A (en) * | 2012-12-24 | 2013-04-24 | 中国科学院深圳先进技术研究院 | Method and system for transmission of network data |
CN103532741A (en) * | 2013-09-27 | 2014-01-22 | 瑞斯康达科技发展股份有限公司 | Access level network topology management method and system |
US20150180730A1 (en) * | 2013-12-19 | 2015-06-25 | Amdocs Software Systems Limited | System, method, and computer program for inter-module communication in a network based on network function virtualization (nfv) |
CN103780470A (en) * | 2014-01-03 | 2014-05-07 | 杭州华三通信技术有限公司 | IS-IS information synchronization method and device |
CN104811328A (en) * | 2014-01-27 | 2015-07-29 | 杭州华三通信技术有限公司 | Virtual network resource management method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107783822A (en) * | 2017-11-10 | 2018-03-09 | 郑州云海信息技术有限公司 | A kind of method for managing resource and device |
CN114826928A (en) * | 2021-01-21 | 2022-07-29 | 中国移动通信有限公司研究院 | NFV (network function virtualization) test processing method and device and related equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2017071279A1 (en) | 2017-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10270648B2 (en) | Configuration information management method, device, network element management system and storage medium | |
CN105103507B (en) | Method and device for network function virtualization | |
WO2019237588A1 (en) | Linux virtual server creation method, device, computer device and storage medium | |
CN102412978B (en) | Method for carrying out network configuration for VM and system thereof | |
CN107967140B (en) | Method for initiating software modification, method and device for publishing metadata | |
US10826768B2 (en) | Controlled node configuration | |
CN107357660A (en) | The distribution method and device of a kind of virtual resource | |
CN103595801B (en) | Cloud computing system and real-time monitoring method for virtual machine in cloud computing system | |
CN103701913B (en) | Data synchronization method and device | |
CN106502840B (en) | Data backup method, device and system | |
CN105812171A (en) | Virtualized network function VNF control method and device | |
WO2019057055A1 (en) | Task processing method and apparatus, electronic device, and storage medium | |
CN110391940A (en) | Response method, device, system, equipment and the storage medium of address of service | |
CN116074372B (en) | Service management method, device and electronic equipment | |
CN104506654A (en) | Cloud computing system and backup method of dynamic host configuration protocol server | |
US20160191620A1 (en) | System backup device and backup method | |
CN103546572A (en) | A cloud storage device and multi-cloud storage networking system and method | |
WO2016115896A1 (en) | Method and device for management of virtual network function (vnf) | |
CN106657177A (en) | Network reconstruction method and network reconstruction system | |
US20210136597A1 (en) | Ap deployment in a network comprising a centralized system and a distributed system | |
CN107148772A (en) | Information processor and its control method and program | |
CN106685708B (en) | Method, device and system for determining service relationship | |
CN108089968A (en) | Method for monitoring state of database of virtual machine by host machine | |
CN109344202B (en) | Data synchronization method and management node | |
CN108092790B (en) | Management method and device |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170510 |
|
WW01 | Invention patent application withdrawn after publication |