[go: up one dir, main page]

CN109309617A - Disaster recovery switching method, related equipment and computer storage medium - Google Patents

Disaster recovery switching method, related equipment and computer storage medium Download PDF

Info

Publication number
CN109309617A
CN109309617A CN201810899856.5A CN201810899856A CN109309617A CN 109309617 A CN109309617 A CN 109309617A CN 201810899856 A CN201810899856 A CN 201810899856A CN 109309617 A CN109309617 A CN 109309617A
Authority
CN
China
Prior art keywords
gateway
site
router
forwarding table
belongs
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.)
Pending
Application number
CN201810899856.5A
Other languages
Chinese (zh)
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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201810899856.5A priority Critical patent/CN109309617A/en
Publication of CN109309617A publication Critical patent/CN109309617A/en
Priority to PCT/CN2019/099599 priority patent/WO2020030000A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses disaster tolerance switching methods, comprising: control device obtains the state of the first gateway;When the network failure of website belonging to the first gateway described in the state instruction of first gateway, router and the second gateway association in website belonging to first gateway, first gateway are belonged to different websites from second gateway by the control device.Using the embodiment of the present invention, it is able to solve the problems such as computation complexity existing in the prior art is higher, dynamic routing protocol configuration is more complicated, to reduce the complexity of disaster tolerance switching.

Description

容灾切换方法、相关设备及计算机存储介质Disaster recovery switching method, related equipment and computer storage medium

技术领域technical field

本发明涉及互联网技术领域,尤其涉及容灾切换方法、相关设备及计算机存储介质。The present invention relates to the field of Internet technologies, and in particular, to a disaster-tolerant switching method, related equipment and a computer storage medium.

背景技术Background technique

在互联网中,随着服务器规模的不断增加,数据中心的规模越来越大,部署多站点的数据中心成为主要实施方式。数据中心中的硬件设施,包括服务器集群等,分布在不同的区域,也就是说,数据中心可以划分为至少两个站点,每个站点均部署有硬件设施,各站点分布在相同的区域或者不同的区域,数据中心对能够实现对各站点的统一管理或部署,以对外提供服务。其中,为避免某个站点出现故障导致业务中断,可在多站点之间进行容灾、高可靠处部署。具体的,以两个站点为例,可在两个站点之间相互备份数据,当一个站点出现故障时,另一个站点可以提供相应的业务服务,从而不影响租户业务。In the Internet, as the scale of servers increases, the scale of data centers becomes larger and larger, and the deployment of multi-site data centers has become the main implementation method. The hardware facilities in the data center, including server clusters, etc., are distributed in different regions, that is to say, the data center can be divided into at least two sites, each site is equipped with hardware facilities, and each site is distributed in the same region or different. The data center pair can realize unified management or deployment of each site to provide external services. Among them, in order to avoid business interruption caused by a site failure, disaster recovery and high reliability can be deployed between multiple sites. Specifically, taking two sites as an example, data can be backed up between the two sites. When one site fails, the other site can provide corresponding business services, so that tenant business is not affected.

其中,现有技术提出以下方案来实现不同站点之间的切换。具体的,如图1示出一种站点切换的示意图。如图1中,每个站点均部署有网关、虚拟路由器、虚拟交换机以及虚拟机等网络设备。两个站点部署有一个全局控制装置,该全局控制装置对数据中心的两个站点进行统一管理。当站点1发生故障时,站点1的虚拟路由器通过动态路由协议切换到站点2。Among them, the prior art proposes the following solutions to realize handover between different sites. Specifically, FIG. 1 shows a schematic diagram of a site switching. As shown in Figure 1, each site is deployed with network devices such as gateways, virtual routers, virtual switches, and virtual machines. A global control device is deployed at the two sites, and the global control device performs unified management on the two sites of the data center. When site 1 fails, the virtual router at site 1 switches to site 2 through a dynamic routing protocol.

然而在实践中发现,动态路由协议的开发和配置过程比较复杂,同时还涉及较高难度的计算,计算复杂度较高。However, in practice, it is found that the development and configuration process of the dynamic routing protocol is relatively complicated, and it also involves relatively difficult calculations, and the computational complexity is relatively high.

发明内容SUMMARY OF THE INVENTION

本发明实施例公开了容灾切换方法、相关设备及计算机存储介质,能够解决现有技术中存在的动态路由协议配置比较复杂以及计算复杂度较高等问题。The embodiment of the present invention discloses a disaster tolerance switching method, related equipment and a computer storage medium, which can solve the problems existing in the prior art, such as complicated configuration of dynamic routing protocols and high computational complexity.

第一方面,本发明实施例公开提供了一种容灾切换方法,所述方法包括:In a first aspect, an embodiment of the present invention discloses and provides a disaster-tolerant switching method, and the method includes:

控制装置获取第一网关的状态,在该第一网关的状态指示第一网关所属的站点的网络发生故障时,控制装置可将所述第一网关所属的站点(具体可为第一站点)中的路由器与第二网关关联;其中,第一网关与第二网关分别位于不同的站点中。The control device acquires the state of the first gateway, and when the state of the first gateway indicates that the network of the site to which the first gateway belongs is faulty, the control device may put the site (specifically, the first site) to which the first gateway belongs. The router is associated with the second gateway; wherein the first gateway and the second gateway are located in different sites respectively.

通过实施本发明实施例,控制装置能够直接根据第一网关的状态来确定第一网关所属的第一站点的网关是否发生故障,在发生故障时将第一站点内的路由器关联切换到第二站点中的第二网关内,以保证正常的通信连接,避免租户业务中断。相比于现有技术而言,其能够解决现有技术中存在的动态路由协议配置比较复杂以及计算复杂度较高等问题,从而降低了容灾切换的复杂度,提升了容灾切换的便捷性。By implementing the embodiments of the present invention, the control device can directly determine whether the gateway of the first site to which the first gateway belongs is faulty according to the state of the first gateway, and switch the association of the routers in the first site to the second site when the failure occurs To ensure normal communication connection and avoid interruption of tenant services. Compared with the prior art, it can solve the problems existing in the prior art, such as complicated configuration of dynamic routing protocols and high computational complexity, thereby reducing the complexity of disaster recovery switching and improving the convenience of disaster recovery switching. .

结合第一方面,在第一方面的第一种可能的实施方式中,控制装置获取第一网关的状态具体包括:控制装置获取第一网关的故障状态,当第一网关的状态为故障状态时,则可指示第一站点的网络发生了故障。具体的,控制装置在预设时长内未接收到第一网关发送的通知消息,可确定第一网关的状态为故障状态;和/或,控制装置接收到第一网关发送的故障消息时,可确定第一网关的状态为故障状态。其中,通知消息用于通知第一站点的网络未发生故障。故障消息用于通知第一站点的网络发生了故障。With reference to the first aspect, in a first possible implementation manner of the first aspect, the obtaining of the state of the first gateway by the control device specifically includes: the control device obtains the failure state of the first gateway, and when the state of the first gateway is the failure state , it may indicate that the network of the first site is faulty. Specifically, if the control device does not receive the notification message sent by the first gateway within a preset time period, it may determine that the state of the first gateway is a fault state; and/or, when the control device receives the failure message sent by the first gateway, it may It is determined that the state of the first gateway is a fault state. The notification message is used to notify that the network of the first site is not faulty. The failure message is used to notify that the network of the first site has failed.

通过实施上述步骤,控制装置能够依据第一网关的状态来准确确定出第一站点的网络是否发生故障,这样可提升网络故障检测的多样性和准确性。By implementing the above steps, the control device can accurately determine whether the network of the first site is faulty according to the state of the first gateway, which can improve the diversity and accuracy of network fault detection.

结合第一方面以及第一方面的第一种可能的实施方式,在第一方面的第二种可能的实施方式中,控制装置将第一网关所属的站点中的路由器与第二网关关联,具体包括:控制装置生成路由器与第二网关关联的第一转发表,并向第二网关发送第一转发表。其中,第一转发表用于第二网关将第一站点中的数据包向路由器转发。With reference to the first aspect and the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the control device associates the router in the site to which the first gateway belongs with the second gateway, specifically The method includes: the control device generates a first forwarding table associated with the router and the second gateway, and sends the first forwarding table to the second gateway. The first forwarding table is used by the second gateway to forward the data packet in the first site to the router.

通过实施上述步骤,控制装置可为第二网关生成第一转发表。相应地第二网关可依据该第一转发表将第一站点内的数据包发送给路由器,实现相互间的网络通信。避免了灾备场景下出现租户业务中断、受影响等问题,从而保证了业务通信的高可靠性。By implementing the above steps, the control device can generate the first forwarding table for the second gateway. Correspondingly, the second gateway can send the data packets in the first site to the router according to the first forwarding table, so as to realize mutual network communication. It avoids problems such as interruption and impact of tenant services in disaster recovery scenarios, thereby ensuring high reliability of business communication.

结合第一方面以及第一方面的第一种和第二种可能的实施方式,在第一方面的第三种可能的实施方式中,控制装置将第一网关所属的站点中的路由器与第二网关关联,具体包括:控制装置生成路由器与第二网关关联的第二转发表,并向路由器发送第二转发表。其中,第二转发表用于路由器将第一站点中的数据包向第二网关转发。In combination with the first aspect and the first and second possible implementation manners of the first aspect, in a third possible implementation manner of the first aspect, the control device associates the router in the site to which the first gateway belongs with the second possible implementation manner. The gateway association specifically includes: the control device generates a second forwarding table associated with the router and the second gateway, and sends the second forwarding table to the router. The second forwarding table is used by the router to forward the data packet in the first site to the second gateway.

通过实施上述步骤,控制装置同样可为路由器生成第二转发表。相应地,路由器可依据该第二转发表将第一站点内的数据包发送给第二网关,以实现相互间的网络通信。避免了灾备场景下出现租户业务中断、受影响等问题,从而保证了业务通信的高可靠性。By implementing the above steps, the control device can also generate a second forwarding table for the router. Correspondingly, the router can send the data packet in the first site to the second gateway according to the second forwarding table, so as to realize mutual network communication. It avoids problems such as interruption and impact of tenant services in disaster recovery scenarios, thereby ensuring high reliability of business communication.

结合第一方面以及第一方面的第一种至第三种中的任一种或多种的可能的实施方式中,在第一方面的第四种可能的实施方式中,第一网关可通过探测报文监听第一网关所属的站点(第一站点)的网络是否发生了故障,进一步地可向控制装置发送故障消息和/或通知消息。便于控制装置依据该故障消息和/或通知消息来确定第一网关的状态,进而实现后续的容灾切换,相较于现有技术中利用动态路由协议切换网关的方式,提升了网络故障检测的便捷性和多样性。In a possible implementation manner combining the first aspect and any one or more of the first to third aspects of the first aspect, in a fourth possible implementation manner of the first aspect, the first gateway may pass The detection message monitors whether the network of the site (the first site) to which the first gateway belongs is faulty, and further may send a fault message and/or a notification message to the control device. It is convenient for the control device to determine the state of the first gateway according to the fault message and/or the notification message, so as to realize the subsequent disaster tolerance switching, which improves the network fault detection efficiency compared with the method of switching the gateway using the dynamic routing protocol in the prior art. Convenience and variety.

第二方面,本发明实施例提供了一种控制装置,包括获取模块以及关联模块,其中,In a second aspect, an embodiment of the present invention provides a control device, including an acquisition module and an association module, wherein,

获取模块,用于获取第一网关的状态;an acquisition module for acquiring the state of the first gateway;

关联模块,用于在第一网关的状态指示第一网关所属的站点的网络发生故障时,将第一网关所属的站点中的路由器与第二网关关联,第一网关与第二网关属于不同站点。an association module, configured to associate the router in the site to which the first gateway belongs to the second gateway when the state of the first gateway indicates that the network of the site to which the first gateway belongs is faulty, and the first gateway and the second gateway belong to different sites .

结合第二方面,在第二方面的第一种可能的实施方式中,获取模块具体用于获取第一网关的故障状态,其中,故障状态用于指示控制装置在预设时长内未接收到第一网关发送的通知消息,通知消息用于通知第一网关所属的站点的网络未发生故障,和/或,故障状态用于指示控制装置接收到第一网关发送的故障消息,故障消息用于通知第一网关所属的站点的网络发生了故障。With reference to the second aspect, in a first possible implementation manner of the second aspect, the acquisition module is specifically configured to acquire a fault state of the first gateway, wherein the fault state is used to indicate that the control device has not received the first gateway within a preset time period. A notification message sent by the gateway, where the notification message is used to notify that the network of the site to which the first gateway belongs is not faulty, and/or the fault status is used to indicate that the control device receives the fault message sent by the first gateway, and the fault message is used to notify The network of the site to which the first gateway belongs has failed.

结合第二方面以及第二方面的第一种可能的实施方式中,在第二方面的第二种可能的实施方式中,所述将第一网关所属的站点中的路由器与第二网关关联,具体包括:生成路由器与第二网关关联的第一转发表,第一转发表用于第二网关将第一网关所属的站点中的数据包向路由器转发;关联模块还用于向第二网关发送该第一转发表。In combination with the second aspect and the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the router in the site to which the first gateway belongs is associated with the second gateway, Specifically, it includes: generating a first forwarding table associated with the router and the second gateway, where the first forwarding table is used by the second gateway to forward the data packets in the site to which the first gateway belongs to the router; the association module is further configured to send data packets to the second gateway the first forwarding table.

结合第二方面以及第二方面的第一种和第二种可能的实施方式中,在第二方面的第三种可能的实施方式中,所述将第一网关所属的站点中的路由器与第二网关关联,具体包括:生成路由器与第二网关关联的第二转发表,第二转发表用于路由器将第一网关所属的站点中的数据包向第二网关转发;关联模块还用于向路由器发送该第二转发表。In combination with the second aspect and the first and second possible implementation manners of the second aspect, in a third possible implementation manner of the second aspect, the router in the site to which the first gateway belongs is associated with the third possible implementation manner. The association of two gateways specifically includes: generating a second forwarding table associated with the router and the second gateway, where the second forwarding table is used by the router to forward the data packets in the site to which the first gateway belongs to the second gateway; the association module is further configured to forward to the second gateway; The router sends the second forwarding table.

关于本发明实施例未示出或未描述的内容,可参见前述第一方面或第一方面的任意可能的实施方式中所描述的方法的相关阐述,这里不再赘述。For content not shown or described in the embodiments of the present invention, reference may be made to the relevant description of the method described in the foregoing first aspect or any possible implementation manner of the first aspect, which will not be repeated here.

第三方面,本发明实施例提供了一计算设备,每个计算设备包括:处理器,存储器,通信接口和总线;处理器、通信接口、存储器通过总线相互通信;通信接口,用于接收和发送数据;存储器,用于存储指令;处理器,用于调用存储器中的程序指令,执行上述第一方面或第一方面的任意可能的实施方式中所描述的方法。In a third aspect, an embodiment of the present invention provides a computing device, each computing device includes: a processor, a memory, a communication interface, and a bus; the processor, the communication interface, and the memory communicate with each other through the bus; a communication interface is used for receiving and sending data; a memory for storing instructions; and a processor for invoking program instructions in the memory to execute the method described in the first aspect or any possible implementation manner of the first aspect.

第四方面,提供了一种计算机非瞬态(non-transitory)存储介质,所述计算机非瞬态存储介质存储了用于容灾切换的程序代码。所述程序代码包括用于执行上述第一方面或第一方面的任意可能的实施方式中所描述的方法的指令。In a fourth aspect, a computer non-transitory storage medium is provided, and the computer non-transitory storage medium stores program codes for disaster recovery switching. The program code comprises instructions for carrying out the method described in the first aspect above or in any possible implementation of the first aspect.

第五方面,提供了一种芯片产品,以执行上述第一方面或第一方面的任意可能的实施方式中的方法。In a fifth aspect, a chip product is provided to perform the method in the first aspect or any possible implementation manner of the first aspect.

通过实施本发明实施例,能够解决现有技术中存在的计算复杂度较高、动态路由协议配置比较复杂等问题,从而降低了容灾切换的复杂度。By implementing the embodiments of the present invention, the problems existing in the prior art, such as high computational complexity and complex dynamic routing protocol configuration, can be solved, thereby reducing the complexity of disaster tolerance switching.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that are required in the description of the embodiments or the prior art.

图1是现有技术中提供的一种站点切换的示意图。FIG. 1 is a schematic diagram of a site switching provided in the prior art.

图2是本发明实施例提供的一种容灾切换系统的网络框架示意图。FIG. 2 is a schematic diagram of a network framework of a disaster-tolerant switching system provided by an embodiment of the present invention.

图3是本发明实施例提供的一种容灾切换的场景示意图。FIG. 3 is a schematic diagram of a scenario of a disaster-tolerant handover provided by an embodiment of the present invention.

图4是本发明实施例提供的另一种容灾切换系统的网络框架示意图。FIG. 4 is a schematic diagram of a network framework of another disaster-tolerant switching system provided by an embodiment of the present invention.

图5是本发明实施例提供的一种容灾切换方法的流程示意图。FIG. 5 is a schematic flowchart of a disaster-tolerant switching method provided by an embodiment of the present invention.

图6是本发明实施例提供的一种控制装置的结构示意图。FIG. 6 is a schematic structural diagram of a control device provided by an embodiment of the present invention.

图7是本发明实施例提供的计算设备的结构示意图。FIG. 7 is a schematic structural diagram of a computing device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明的附图,对本发明实施例中的技术方案进行详细描述。The technical solutions in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings of the present invention.

为解决现有技术中存在的动态路由协议配置比较复杂、计算复杂度较高等问题,本申请提出一种容灾切换的方法、所述方法适用的网络框架、应用场景以及相关设备。首先,参见图1是本发明实施例提供的一种容灾切换系统的网络框架示意图。如图2所示,该容灾切换系统100包括控制装置12以及该控制装置12管理的至少两个站点14(图示以两个站点,第一站点和第二站点为例示出)。其中,In order to solve the problems of complex configuration of dynamic routing protocols and high computational complexity in the prior art, the present application proposes a method for disaster tolerance handover, a network framework, application scenarios and related equipment to which the method is applicable. First, referring to FIG. 1 , it is a schematic diagram of a network framework of a disaster-tolerant switching system provided by an embodiment of the present invention. As shown in FIG. 2 , the disaster recovery switching system 100 includes a control device 12 and at least two sites 14 managed by the control device 12 (two sites, the first site and the second site are shown as examples in the figure). in,

所述控制装置12跨站点部署,控制装置12可为所述至少两个站点的全局控制装置,也可为由每个站点对应部署的控制组件组成的集群。当每个站点都部署有控制组件时,一个站点出现故障后,另一个站点能够能够正常工作。换句话说,一个站点上部署的控制组件出现故障后,另一个站点上部署的控制组件能够正常运行,不影响控制装置的正常工作。The control device 12 is deployed across sites, and the control device 12 may be a global control device of the at least two sites, or may be a cluster composed of control components deployed correspondingly at each site. When control components are deployed at each site, the failure of one site allows the other site to function normally. In other words, after the control component deployed on one site fails, the control component deployed on the other site can run normally without affecting the normal operation of the control device.

所述至少两个站点14位于同一个数据中心,具体可为由同一厂商提供的数据中心或云平台等。每个站点中都部署有网关140、路由器142、交换机144以及虚拟机146(virtualmachine,VM)。其中,一个网关140下可关联一个或多个路由器142。路由器142将接收到的报文通过关联的网关140向所在站点外的设备发送,网络140将从所在站点外设备接收的报文发送给关联的路由器142。同一网关140下关联的多个路由器142可为同一个站点内部署的路由器,也可为跨站点的分布式路由器,本申请不做限定。一个路由器可与一个或多个交换机通信,相应地一个交换机支持和一个或多个路由器通信。一个交换机下可部署或管理一个或多个虚拟机。除此之外,本实施例中的数据中心还包括未在图2中绘制出的至少一个物理机。每个物理机与数据中心的交换机、路由器相连,并通过与路由器关联的网关进行与物理机所在站点的外部的设备进行外部通信。The at least two sites 14 are located in the same data center, which may specifically be a data center or a cloud platform provided by the same manufacturer. A gateway 140, a router 142, a switch 144, and a virtual machine 146 (virtual machine, VM) are deployed in each site. One or more routers 142 may be associated with one gateway 140 . The router 142 sends the received message to the device outside the site through the associated gateway 140 , and the network 140 sends the message received from the device outside the site to the associated router 142 . The multiple routers 142 associated under the same gateway 140 may be routers deployed in the same site, or may be distributed routers across sites, which are not limited in this application. A router can communicate with one or more switches, and accordingly a switch supports communication with one or more routers. One or more virtual machines can be deployed or managed under a switch. Besides, the data center in this embodiment also includes at least one physical machine not shown in FIG. 2 . Each physical machine is connected to switches and routers in the data center, and communicates externally with devices outside the site where the physical machine is located through a gateway associated with the router.

在实际应用中,同一物理设备(例如物理主机或服务器)上可创建或部署一个或多个虚拟机,这些虚拟机挂载到一个交换机或一个路由器上,具体如图所示。本申请中的路由器具体可为虚拟路由器或者物理路由器,交换机具体可为虚拟交换机或物理交换机,本申请并不做限定。In practical applications, one or more virtual machines can be created or deployed on the same physical device (such as a physical host or server), and these virtual machines are mounted on a switch or a router, as shown in the figure. The router in this application may specifically be a virtual router or a physical router, and the switch may specifically be a virtual switch or a physical switch, which is not limited in this application.

可选地,每个站点中还可部署有二层网络代理设备148(I2-agent)、三层网络代理设备150(I3-agent)以及网关代理设备152。其中,二层网络代理设备148用于管理交换机144,例如通过二层网络代理设备与虚拟交互机通信、为交换机配置相应的二层转发表等。三层网络代理设备150用于管理路由器142,例如通过三层网络代理设备与路由器通信、为路由器配置相应地三层转发表等。网关代理设备152用于管理网关140,例如通过网关代理设备与网关通信、为网关配置相应地转发表等,关于如何配置以及更新各种转发表具体将在下文进行详述。Optionally, a layer-2 network agent device 148 (I2-agent), a layer-3 network agent device 150 (I3-agent), and a gateway agent device 152 may also be deployed in each site. The Layer 2 network proxy device 148 is used to manage the switch 144, for example, communicate with the virtual interactive machine through the Layer 2 network proxy device, configure a corresponding Layer 2 forwarding table for the switch, and the like. The Layer 3 network proxy device 150 is used to manage the router 142, for example, communicate with the router through the Layer 3 network proxy device, configure a corresponding Layer 3 forwarding table for the router, and the like. The gateway proxy device 152 is used for managing the gateway 140, for example, communicating with the gateway through the gateway proxy device, configuring corresponding forwarding tables for the gateway, etc., and how to configure and update various forwarding tables will be described in detail below.

在实际应用中,二层网络代理设备、三层网络代理设备以及网关代理设备具体可为部署在计算节点上的软件模块或硬件单元,本申请不做限定。通常,一个计算节点上可对应部署一个二层网络代理设备、一个三层网络代理设备或者一个网关代理设备等,这里不做详述和限定。In practical applications, the Layer 2 network proxy device, the Layer 3 network proxy device, and the gateway proxy device may specifically be software modules or hardware units deployed on computing nodes, which are not limited in this application. Generally, a layer-2 network proxy device, a layer-3 network proxy device, or a gateway proxy device may be correspondingly deployed on a computing node, which will not be described and limited here.

图2中,每个站点中包括计算节点和网关节点,计算节点可通过隧道与网关节点通信,这里的隧道是指虚拟网络采用的隧道技术,例如虚拟可拓展的局域网(virtualextensible local area network,VXLAN)隧道、路由封装(generic routingencapsulation,GRE)隧道等。计算节点(具体可为物理设备)上部署有虚拟机,运行租户业务。网关节点(具体可为网关)承载南北向流量,即虚拟机访问外网(Internet)或者外网访问虚拟机的流量。在实际通信过程中,虚拟机所在的网络为私有网络,即虚拟机接入内部的私有网络,私有网络上部署有交换机以及路由器。路由器通过网关可访问外部网络(简称外网)。In Figure 2, each site includes a computing node and a gateway node. The computing node can communicate with the gateway node through a tunnel. The tunnel here refers to the tunneling technology adopted by the virtual network, such as virtual extensible local area network (VXLAN). ) tunnel, routing encapsulation (generic routing encapsulation, GRE) tunnel, etc. A virtual machine is deployed on a computing node (specifically, a physical device) to run tenant services. The gateway node (specifically, a gateway) carries north-south traffic, that is, traffic of the virtual machine accessing the external network (Internet) or the external network accessing the virtual machine. In the actual communication process, the network where the virtual machine is located is a private network, that is, the virtual machine is connected to the internal private network, and switches and routers are deployed on the private network. The router can access the external network (referred to as the external network) through the gateway.

本申请中,每个路由器可维护或配置有两个网关,第一网关和第二网关,也可称为主网关和备网关。例如图示中两个站点的网关140可被配置为某个路由器142的主备网关。通常地,路由器通过第一网关(主网关)访问外网,即第一网关承载路由器的流量。第二网关(备网关)无通信的流量。当第一网关出现故障后,可将该路由器切换到第二网关下,以通过第二网关实现网络通信,从而不影响租户业务。In this application, each router may be maintained or configured with two gateways, a first gateway and a second gateway, which may also be referred to as a primary gateway and a backup gateway. For example, the gateways 140 of the two sites in the illustration may be configured as the active and standby gateways of a certain router 142 . Usually, the router accesses the external network through the first gateway (main gateway), that is, the first gateway carries the traffic of the router. The second gateway (standby gateway) has no communication traffic. When the first gateway fails, the router can be switched to the second gateway, so as to realize network communication through the second gateway, so as not to affect the tenant's business.

可选地,所述第一网关具体可为所述路由器当前所在站点的网关。所述第二网关为系统根据实际需求配置的,或者用户根据实际需求或个人喜好自定义设置的等。所述第一网关和所述第二网关位于不同的站点内。Optionally, the first gateway may specifically be the gateway of the site where the router is currently located. The second gateway is configured by the system according to actual needs, or customized by the user according to actual needs or personal preferences. The first gateway and the second gateway are located in different sites.

其中,同一路由器配置的两个网关不相同。不同路由器各自配置的两个网关可以相同,也可不相同。图示中两个站点的路由器各自配置的主网关和备网关不同时,两个站点同时提供相应地业务服务。换句话说,第一站点中某个路由器配置的主网关为第二站点中另一路由器配置的备网关。The two gateways configured on the same router are different. The two gateways configured on different routers can be the same or different. When the routers of the two sites in the figure have different primary gateways and backup gateways, the two sites provide corresponding business services at the same time. In other words, the primary gateway configured by a router in the first site is the standby gateway configured by another router in the second site.

同一网关下关联的路由器可以为同一个站点的路由器,也可为跨站点的分布式路由器,本申请不做限定。此外,本申请中虚拟机(或租户)不感知网关的存在,即不感知主备网关的存在。The associated routers under the same gateway may be routers at the same site, or may be distributed routers across sites, which are not limited in this application. In addition, in this application, the virtual machine (or the tenant) does not perceive the existence of the gateway, that is, does not perceive the existence of the active and standby gateways.

其次,介绍本申请适用的应用场景。具体的,如图3以两个站点为例,具体示出一种容灾切换的场景示意图。如图3中,当第一站点出现故障(或挂断)之后,该站点内网关1的检测模块(monitor)可检测到网络出口不通,出现了故障。此时,可向控制装置发送故障消息,该故障消息用于通知所述第一站点内的网络出现了故障。相应地,控制装置可将该网关1下关联的所有或部分路由器切换到第二站点内的网关2下,便于后续通过网关2实现相应的业务通信。可选地,同时触发更新网关2的转发表以及所述所有或部分路由器各自的转发表,具体在下文进行详细阐述。Next, the application scenarios to which this application is applicable are introduced. Specifically, FIG. 3 takes two sites as an example, and specifically shows a schematic diagram of a scenario of disaster recovery handover. As shown in FIG. 3 , when the first site fails (or hangs up), the detection module (monitor) of the gateway 1 in the site can detect that the network egress is blocked and a failure occurs. At this time, a fault message may be sent to the control device, where the fault message is used to notify that the network in the first site has a fault. Correspondingly, the control device can switch all or part of the routers associated with the gateway 1 to the gateway 2 in the second site, so as to facilitate subsequent implementation of corresponding service communication through the gateway 2 . Optionally, the updating of the forwarding table of the gateway 2 and the respective forwarding tables of all or some routers is triggered at the same time, which will be described in detail below.

其中,所述第一站点出现故障的原因有多种,例如断电以及网关1出现问题等等,本申请不做详述和限定。当第一站点出现故障后,为保证租户业务不受影响,需保证第一站点中控制面层涉及的虚拟机、交换机以及路由器等网络设备正常运行,进而通过网关切换,利用新切换的网关实现相应地业务通信。举例来说,当第一站点断电后,第一站点内的网络设备不能正常运行。为保证租户业务的正常使用,需在其他物理设备部署有相同业务服务的网络设备,这里的网络设备具体可包括但不限于虚拟机、交换机以及路由器等。或者,需在其他物理设备上重新创建或恢复所述第一站点内的网络设备,关于如何创建这些网络设备本申请这里不做详述。在第二站点创建的网络设备均与原第一站点的网络设备相同,相应地,第一站点内的网关1通过检测模块可检测到第一站点发生了故障,将网关1下关联的所有路由器(这里包括新建的路由器)切换到网关2下,即可通过网关2进行网络通信。There are various reasons for the failure of the first site, such as power failure and problems with the gateway 1, etc., which are not described in detail or limited in this application. When the first site fails, in order to ensure that tenant services are not affected, it is necessary to ensure that network devices such as virtual machines, switches, and routers involved in the control plane layer in the first site operate normally, and then switch over the gateway and use the newly switched gateway. Business communications accordingly. For example, when the first site is powered off, the network devices in the first site cannot operate normally. To ensure the normal use of tenant services, network devices with the same service services need to be deployed on other physical devices. The network devices here may specifically include but are not limited to virtual machines, switches, and routers. Alternatively, the network devices in the first site need to be re-created or restored on other physical devices, and this application will not describe in detail how to create these network devices. The network devices created at the second site are the same as the original network devices of the first site. Accordingly, the gateway 1 in the first site can detect the failure of the first site through the detection module, and all routers associated with the gateway 1 (This includes the newly created router) Switch to gateway 2, and network communication can be performed through gateway 2.

因此,需要说明的是:本申请中涉及的网络设备(具体可为虚拟机、交换机以及路由器等)呈分布式部署。如图4所示,以n个站点为例,图示部分示出交换机呈分布式部署的情况。当站点2出现故障时,一种情况为站点2中的网关2出现故障,则可将网关2下关联的路由器切换到另一站点的网关中,例如图示中站点1的网关1下,以便后续通过网关1恢复相应地通信连接。另一种情况为站点2中的网络设备出现故障后,由于网络设备呈分布式部署,当站点2中的网络设备出现故障时,站点1中与网关2关联的网络设备运行正常,同样能保障业务的正常运行。即保证控制面上的网络设备正常工作。相应地,此时同样可将网关2下关联的站点1中的路由器切换到另一站点的网关中,以实现相应地通信连接。Therefore, it should be noted that the network devices (specifically, virtual machines, switches, routers, etc.) involved in this application are deployed in a distributed manner. As shown in FIG. 4 , taking n sites as an example, the illustrated part shows a situation in which switches are deployed in a distributed manner. When site 2 fails, one case is that gateway 2 in site 2 fails, then the router associated with gateway 2 can be switched to the gateway of another site, for example, under gateway 1 of site 1 in the figure, so as to Subsequently, the corresponding communication connection is restored through the gateway 1 . Another situation is that after the network device at site 2 fails, because the network devices are deployed in a distributed manner, when the network device at site 2 fails, the network device associated with gateway 2 at site 1 operates normally, which can also guarantee normal operation of the business. That is, the network devices on the control plane are guaranteed to work normally. Correspondingly, at this time, the router in the site 1 associated with the gateway 2 can also be switched to the gateway of another site, so as to realize the corresponding communication connection.

除此之外,本发明实施例中所述的网络设备,可以是虚拟网络设备,也可以是物理网络设备,本发明实施例对此不做限制。In addition, the network device described in the embodiment of the present invention may be a virtual network device or a physical network device, which is not limited in this embodiment of the present invention.

接着,参见图5是本发明实施例提供的一种容灾切换方法的流程示意图。所述方法应用于包括第一站点、第二站点以及控制装置在内的数据中心,所述第一站点以及所述第二站点受控于所述控制装置,即所述控制装置可管理所述第一站点以及所述第二站点。所述数据中心可以是图2、图3或图4中所示的数据中心,对应地,所述控制装置可以是图2中所示的控制装置12、图3中所示的数据中心中的控制装置或图4中所示的数据中心中的控制装置。所述第一站点部署有第一网关,所述第二站点部署有第二网关。如图5所示的方法可包括如下实施步骤:Next, referring to FIG. 5 , it is a schematic flowchart of a disaster-tolerant switching method provided by an embodiment of the present invention. The method is applied to a data center including a first site, a second site and a control device, and the first site and the second site are controlled by the control device, that is, the control device can manage the the first site and the second site. The data center may be the data center shown in FIG. 2 , FIG. 3 or FIG. 4 , and correspondingly, the control device may be the control device 12 shown in FIG. The control unit or the control unit in the data center shown in Figure 4. The first site is deployed with a first gateway, and the second site is deployed with a second gateway. The method shown in Figure 5 may include the following implementation steps:

步骤S101、第一网关向控制装置发送第一消息,第一消息用于指示第一网关的状态。相应地,所述控制装置接收所述第一消息,以获知所述第一网关的状态。Step S101, the first gateway sends a first message to the control apparatus, where the first message is used to indicate the state of the first gateway. Correspondingly, the control device receives the first message to learn the state of the first gateway.

本申请中,第一网关可通过探测报文实时或周期性地检测自身网络出口的状态,即检测第一网关的状态,以确定第一网关所在的第一站点的网络是否发生了故障。所述第一网关的状态包括故障状态和正常状态,所述故障状态用于指示所述第一网关所在的第一站点的网络发生了故障。所述正常状态用于指示所述第一网关所在的第一站点的网络没发生故障。In the present application, the first gateway can detect the state of its own network exit in real time or periodically through detection packets, that is, the state of the first gateway, to determine whether the network of the first site where the first gateway is located is faulty. The state of the first gateway includes a fault state and a normal state, and the fault state is used to indicate that the network of the first site where the first gateway is located is faulty. The normal state is used to indicate that the network of the first site where the first gateway is located is not faulty.

步骤S102、所述控制装置获取所述第一网关的状态。Step S102, the control apparatus acquires the state of the first gateway.

步骤S103、在所述第一网关的状态指示所述第一网关所属的第一站点的网络发生故障时,所述控制装置将第一站点中的路由器与第二网关关联,所述第一网关和所述第二网关属于不同站点。Step S103: When the state of the first gateway indicates that the network of the first site to which the first gateway belongs is faulty, the control device associates the router in the first site with the second gateway, and the first gateway and the second gateway belong to different sites.

控制装置在确定到第一站点的网络发生故障的情况下,可将第一站点内的路由器切换到第二网关下,以通过所述第二网关进行网络通信。防止第一站点出现故障后,导致第一站点出现业务中断等问题,有效保证业务通信的高可靠性。When it is determined that the network to the first site is faulty, the control device can switch the router in the first site to the second gateway, so as to perform network communication through the second gateway. It prevents problems such as service interruption at the first site after the failure of the first site, and effectively ensures high reliability of service communication.

下面阐述本申请涉及的一些具体实施例和可选实施例。Some specific embodiments and optional embodiments involved in the present application are described below.

步骤S101中,第一网关可周期性或实时地监听第一网关的状态(具体可为网络出口的状态),以确定所述第一网关所在的第一站点的网络是否出现故障。其中,监听网关状态的实现方式有多种,例如第一网关向预设设备发送探测报文,如果在一段时间内未接收到响应报文,则可确定所述第一网关的状态为故障状态,该故障状态用于指示所述第一站点的网络发生了故障。否则,可确定所述第一网关的状态为正常状态,该正常状态用于指示所述第一站点的网络没有发生故障。又如,第一网关可周期性地向预设设备发送探测报文,通过检测接收响应报文的次数来确定所述第一网关的状态等等,本申请这里不做详述和限定。In step S101, the first gateway may monitor the state of the first gateway (specifically, the state of the network exit) periodically or in real time to determine whether the network of the first site where the first gateway is located is faulty. There are various implementations of monitoring the status of the gateway. For example, the first gateway sends a detection message to the preset device, and if no response message is received within a period of time, it can be determined that the state of the first gateway is a fault state , the fault state is used to indicate that the network of the first site is faulty. Otherwise, it may be determined that the state of the first gateway is a normal state, where the normal state is used to indicate that the network of the first site is not faulty. For another example, the first gateway may periodically send detection packets to the preset device, and determine the state of the first gateway by detecting the number of times of receiving response packets, etc., which are not described or limited in this application.

相应地,在第一网关监听到所述第一网关的状态(即第一网关所在的第一站点的网络是否发生了故障)后,可向控制装置发送第一消息,用以通知或指示所述第一网关的状态。Correspondingly, after the first gateway monitors the state of the first gateway (that is, whether the network of the first site where the first gateway is located is faulty), it can send a first message to the control device to notify or instruct the Describe the state of the first gateway.

具体的,在第一网关监听到第一网关的状态为正常状态,即是第一站点的网络没发生故障时,可向控制装置发送第一消息。这里的第一消息具体可为通知消息。该通知消息用于通知第一站点的网络没发生故障,或者通知所述第一网关的状态为故障状态。可理解的,由于网络或第一网关发生故障等原因,控制装置可能在一段预设时长内并未接收到该通知消息。所述预设时长为用户或系统自定义设置的,例如1分钟等。Specifically, when the first gateway monitors that the state of the first gateway is a normal state, that is, the network of the first site is not faulty, the first message may be sent to the control device. The first message here may specifically be a notification message. The notification message is used to notify that the network of the first site is not faulty, or notify that the state of the first gateway is a fault state. It is understandable that, due to reasons such as failure of the network or the first gateway, the control device may not receive the notification message within a preset period of time. The preset duration is set by the user or the system, for example, 1 minute.

可选地,在第一网关监听到所述第一网关的状态为故障状态,即是第一站点的网络发生了故障后,可向控制装置发送第一消息,这里的第一消息具体可为故障消息。该故障消息用于通知第一站点的网络发生了故障。Optionally, after the first gateway monitors that the state of the first gateway is a fault state, that is, after the network of the first site is faulty, it may send a first message to the control device, where the first message may specifically be: failure message. The failure message is used to notify that the network of the first site has failed.

或者,所述第一网关在监听到所述第一网关的状态后,可向控制装置发送第一消息(具体可为通知消息)。这里的通知消息用于通知第一网关的状态,或者用于通知第一站点的网络是否发生故障等,本申请不做限定。Alternatively, after monitoring the state of the first gateway, the first gateway may send a first message (specifically, a notification message) to the control device. The notification message here is used to notify the state of the first gateway, or used to notify whether the network of the first site is faulty, etc., which is not limited in this application.

相应地步骤S102中,控制装置在接收第一消息后,可根据第一消息获知第一网关的状态,进而获知到第一站点的网络是否发生故障。具体的,当第一网关的状态为故障状态时,控制装置可确定第一站点的网络发生了故障。其中,所述故障状态具体可用于指示以下两种情况中的任一种或多种的组合:第一种,控制装置接收到第一网关发送的故障消息,该故障消息用于指示第一站点的网络发生了故障。第二种,控制装置在预设时长内没有接收到第一网关发送的通知消息,该通知消息用于指示或通知第一站点的网络发生了故障。Correspondingly, in step S102, after receiving the first message, the control device can obtain the state of the first gateway according to the first message, and then learn whether the network of the first site is faulty. Specifically, when the state of the first gateway is a fault state, the control device may determine that the network of the first site is faulty. Wherein, the fault status can be specifically used to indicate any one or a combination of the following two situations: first, the control device receives a fault message sent by the first gateway, and the fault message is used to indicate the first site 's network has failed. In the second type, the control device does not receive a notification message sent by the first gateway within a preset time period, where the notification message is used to indicate or notify that the network of the first site is faulty.

相应地,当第一网关的状态为正常状态,控制装置可确定第一站点的网络没发生故障,此时可结束流程。其中,所述正常状态是指除故障状态之外的其余状态。示例性地,正常状态具体可用于指示以下两种情况中的任一种或多种的组合:第一种,控制装置没接收到第一网关发送的故障消息。第二种,控制装置在预设时长内接收到第一网关发送的通知消息。关于故障消息和通知消息可参见前述实施例所述,这里不再赘述。Correspondingly, when the state of the first gateway is a normal state, the control device may determine that the network of the first site is not faulty, and at this time, the process may be ended. Wherein, the normal state refers to the remaining states except the fault state. Exemplarily, the normal state can be specifically used to indicate any one or a combination of the following two situations: First, the control apparatus does not receive the failure message sent by the first gateway. Second, the control device receives the notification message sent by the first gateway within a preset time period. For the fault message and the notification message, reference may be made to the foregoing embodiments, and details are not repeated here.

步骤S103中,本申请控制面涉及的网络设备(具体可为虚拟机、交换机以及路由器)均为分布式部署。由于第一站点内的虚拟机、交换机以及路由器呈分布式部署,当同种网络设备(例如路由器)中的一个出现故障或挂掉后,另一个网络设备(路由器)也能正常运行,并不影响控制层面的正常工作。因此,在第一站点的网络出现故障后,可将第一网关下关联的路由器切换到第二网关,以通过第二网关进行相应地网络通信。这里第一网关下关联的路由器的数量可为一个或者多个,并不做限定。本申请下文以一个路由器为例,进行相关内容的阐述。In step S103, the network devices (specifically, virtual machines, switches, and routers) involved in the control plane of the present application are all distributed deployment. Since the virtual machines, switches, and routers in the first site are deployed in a distributed manner, when one network device (such as a router) of the same type fails or hangs up, the other network device (router) can also run normally. Affect the normal operation of the control plane. Therefore, after the network of the first site fails, the router associated with the first gateway can be switched to the second gateway, so as to perform corresponding network communication through the second gateway. Here, the number of routers associated under the first gateway may be one or more, which is not limited. Hereinafter in this application, a router is used as an example to describe the related content.

在一些实施例中,控制装置将第一网关下关联的路由器切换到第二网关后,可为第二网关生成相应地第一转发表。换句话说,控制装置可生成路由器和第二网关关联的第一转发表。其中,该第一转发表用于建立路由器与第二网关之间的通信连接。具体的,第二网关可根据该第一转发表将第一站点内的数据包转发给该路由器;或者转发来自路由器的数据包等。换句话说,第一转发表用于第二网关将第一站点内的数据包向路由器转发。这里的第一转发表具体可为网关的转发表(也可称为南北向转发表)。In some embodiments, after switching the router associated with the first gateway to the second gateway, the control device can generate a corresponding first forwarding table for the second gateway. In other words, the control device may generate a first forwarding table associated with the router and the second gateway. Wherein, the first forwarding table is used to establish a communication connection between the router and the second gateway. Specifically, the second gateway may forward the data packet in the first site to the router according to the first forwarding table; or forward the data packet from the router, or the like. In other words, the first forwarding table is used by the second gateway to forward the data packets in the first site to the router. The first forwarding table here may specifically be a forwarding table of the gateway (also referred to as a north-south forwarding table).

相应地,控制装置生成该第一转发表后,将第一转发表发送给第二网关,便于第二网关依据该第一转发表更新自身的转发表,后续依据更新后的转发表建立和路由器之间的通信连接。Correspondingly, after generating the first forwarding table, the control device sends the first forwarding table to the second gateway, so that the second gateway can update its own forwarding table according to the first forwarding table, and subsequently establish and router based on the updated forwarding table. communication connection between.

在一些实施例中,控制装置将第一网关下关联的路由器切换到第二网关后,可为该路由器生成相应地第二转发表。换句话说,控制装置可生成路由器和第二网关关联的第二转发表。其中,该第二转发表用于建立路由器与第二网关之间的通信连接。具体的,路由器可根据该第二转发表将第一站点内的数据包转发给第二网关;或者转发来自第二网关的数据包等。换句话说,第二转发表用于路由器将第一站点内的数据包向第二网关转发。这里的第二转发表具体可为路由器的三层转发表,例如流表或路由表,具体在本申请下文进行详述。In some embodiments, after switching the router associated with the first gateway to the second gateway, the control device can generate a corresponding second forwarding table for the router. In other words, the control device may generate a second forwarding table associated with the router and the second gateway. Wherein, the second forwarding table is used to establish a communication connection between the router and the second gateway. Specifically, the router may forward the data packets in the first site to the second gateway according to the second forwarding table; or forward the data packets from the second gateway, and so on. In other words, the second forwarding table is used by the router to forward the data packets in the first site to the second gateway. The second forwarding table here may specifically be a Layer 3 forwarding table of a router, such as a flow table or a routing table, which will be described in detail below in this application.

相应地,控制装置生成该第二转发表后,将第二转发表发送给路由器,便于路由器依据该第一转发表更新自身的转发表,后续依据更新后的转发表建立和路由器之间的通信连接。Correspondingly, after generating the second forwarding table, the control device sends the second forwarding table to the router, so that the router can update its own forwarding table according to the first forwarding table, and subsequently establish communication with the router according to the updated forwarding table. connect.

在可选实施例中,步骤S101之前还涉及有网络设备的配置流程,具体如下实施步骤。这里的网络设备具体可包括但不限于交换机、路由器以及虚拟机等。In an optional embodiment, step S101 also involves a configuration process of a network device, and the specific implementation steps are as follows. The network devices here may specifically include, but are not limited to, switches, routers, virtual machines, and the like.

步骤S201、控制装置根据第一创建请求,创建虚拟机以及为所述虚拟机配置对应的交换机以及路由器。Step S201: The control apparatus creates a virtual machine according to the first creation request, and configures a corresponding switch and router for the virtual machine.

控制装置可接收用户输入的第一创建请求,用于请求创建第一站点内的虚拟机并为所述虚拟机配置相应地交换机和路由器。相应地,控制装置接收第一创建请求后,可创建相应地虚拟机,并为该虚拟机指定或配置相应地路由器以及虚拟机,以创建或形成一条通信链路。The control device may receive a first creation request input by a user, for requesting to create a virtual machine in the first site and configure corresponding switches and routers for the virtual machine. Correspondingly, after receiving the first creation request, the control apparatus may create a corresponding virtual machine, and designate or configure a corresponding router and virtual machine for the virtual machine, so as to create or form a communication link.

步骤S202、所述控制装置向所述交换机发送第一配置消息,用于配置所述交换机的二层转发表。Step S202: The control device sends a first configuration message to the switch, which is used to configure the Layer 2 forwarding table of the switch.

在指定交换机后,控制装置可向交换机(具体可为交换机对应的二层网络代理设备)发送第一配置消息,用于配置所述交换机的二层转发表。相应地,二层网络代理设备接收第一配置消息后,根据第一配置消息的指示配置所述交换机的二层转发表。After specifying the switch, the control device may send a first configuration message to the switch (specifically, the layer 2 network proxy device corresponding to the switch), for configuring the layer 2 forwarding table of the switch. Correspondingly, after receiving the first configuration message, the Layer 2 network proxy device configures the Layer 2 forwarding table of the switch according to the instruction of the first configuration message.

示例性地,如下表1给出一种基于虚拟局域网(virtual local area network,VLAN)的二层转发表。Exemplarily, the following Table 1 presents a Layer 2 forwarding table based on a virtual local area network (virtual local area network, VLAN).

表1Table 1

目的地址Destination address 地址类型address type VLANVLAN 目的端口destination port

如上表1可知,交换机的二层转发表中可包括目的地址、目的端口、地址类型以及虚拟局域网VLAN。其中,目的地址是指数据包发往的目的地址或目的网络。目的端口是指数据包到达的目的端口。地址类型是指目的地址(IP地址)所属的分类。VLAN是指通信所在的虚拟局域网。目的端口是指数据包发送的目的端口,本申请这里不做详述和限定。As can be seen from Table 1 above, the Layer 2 forwarding table of the switch may include the destination address, destination port, address type, and virtual local area network VLAN. The destination address refers to the destination address or destination network to which the data packet is sent. The destination port refers to the destination port to which the data packet arrives. The address type refers to the category to which the destination address (IP address) belongs. VLAN refers to the virtual local area network in which the communication resides. The destination port refers to the destination port for sending the data packet, which is not described in detail or limited in this application.

步骤S203、所述控制装置根据第二创建请求,创建路由器,为所述路由器配置第一网关(主网关)。Step S203, the control device creates a router according to the second creation request, and configures a first gateway (main gateway) for the router.

控制装置接收用户输入的第二创建请求。该第二创建请求用于请求创建相应地路由器,并为该路由器指定或分配相应地主网关(第一网关)。相应地,控制装置接收该第二创建请求后,根据第二创建请求的指示创建相应地路由器,并为该路由器分配相应地第一网关。The control device receives the second creation request input by the user. The second creation request is used to request to create a corresponding router, and to designate or assign a corresponding master gateway (first gateway) to the router. Correspondingly, after receiving the second creation request, the control device creates a corresponding router according to the instruction of the second creation request, and allocates a corresponding first gateway to the router.

步骤S204、所述控制装置向所述路由器发送第二配置消息,用于配置所述路由器的三层转发表。Step S204: The control device sends a second configuration message to the router, which is used to configure the Layer 3 forwarding table of the router.

在为路由器指定第一网关后,控制装置可向路由器(具体可为路由器对应的三层网络代理设备)发送第二配置消息,用于配置该路由器的三层转发表。相应地,三层网络代理设备接收第二配置消息后,可根据第二配置消息的指示配置该路由器的三层转发表。其中,该三层转发表用于建立路由器和第一网关之间的通信连接。换句话说,路由器可依据该三层转发表转发自身接收的数据报文等。其中,路由器的三层转发表具体可为路由器的路由表或者流表(例如openflow流表),本申请不做限定。After specifying the first gateway for the router, the control device may send a second configuration message to the router (specifically, the layer-3 network proxy device corresponding to the router) for configuring the layer-3 forwarding table of the router. Correspondingly, after receiving the second configuration message, the Layer 3 network proxy device can configure the Layer 3 forwarding table of the router according to the instruction of the second configuration message. Wherein, the three-layer forwarding table is used to establish a communication connection between the router and the first gateway. In other words, the router can forward the data packets received by itself according to the Layer 3 forwarding table. The Layer 3 forwarding table of the router may specifically be a routing table or a flow table (for example, an openflow flow table) of the router, which is not limited in this application.

示例性地,如下表2示出一种路由表。Exemplarily, the following Table 2 shows a routing table.

目的地址Destination address 网络掩码netmask 路由开销routing cost 输出端口output port 下一跳IP地址Next-hop IP address

由上表2可知,路由器的路由表包括目的地址、网络掩码、路由开销、输出端口以及下一跳IP地址。其中,输出端口是指数据包往哪个接口转发。目的地址是指数据包发往的目的地址或目的网络。网络掩码是指与目的地址一起标识目的主机或路由器所在的网段的地址。这里本申请不做详述和限定。As can be seen from Table 2 above, the routing table of the router includes the destination address, network mask, routing cost, output port, and next-hop IP address. The output port refers to the interface to which the data packet is forwarded. The destination address refers to the destination address or destination network to which the data packet is sent. The netmask refers to the address which, together with the destination address, identifies the network segment where the destination host or router is located. This application does not make detailed descriptions and limitations here.

如下表3示出一种openflow流表。Table 3 below shows an openflow flow table.

包头域header field 计数器counter 动作action

由上表3可知,openflow流表可包括包头域、计数器以及动作。其中,包头域是流表的标识。计数器用来计算流表的统计数据。动作表明了与该流表匹配的数据包应执行的操作,本申请这里不做详述。As can be seen from Table 3 above, the openflow flow table may include header fields, counters, and actions. Among them, the header field is the identifier of the flow table. Counters are used to calculate flow table statistics. The action indicates the operation to be performed by the data packet matching the flow table, which is not described in detail here in this application.

步骤S205、控制装置向第一网关发送第三配置消息,用于配置所述第一网关的转发表。Step S205: The control apparatus sends a third configuration message to the first gateway, for configuring the forwarding table of the first gateway.

在为路由器指定第一网关后,控制装置可向该第一网关(具体可为第一网关对应的网关代理设备)发送第三配置消息。相应地,网关代理设备接收第三配置消息,根据第三配置消息的指示为第一网关配置相应的转发表(也可称为南北向转发表)。该南北向转发表用于转发来自路由器的数据报文,或者将接收的数据报文发送至该路由器。After specifying the first gateway for the router, the control apparatus may send a third configuration message to the first gateway (specifically, a gateway proxy device corresponding to the first gateway). Correspondingly, the gateway proxy device receives the third configuration message, and configures a corresponding forwarding table (also referred to as a north-south forwarding table) for the first gateway according to the instruction of the third configuration message. The north-south forwarding table is used for forwarding data packets from the router, or sending received data packets to the router.

通过实施本发明实施例,可采用探测报文检测到网关所在站点的网络出现故障后,将该站点内的路由器切换到其他网关上,以保证网络通信正常,不影响租户业务。能够解决现有技术中存在的动态路由协议配置比较复杂以及计算复杂度较高等问题,从而降低了容灾切换的复杂度,提升了容灾切换的便捷性。By implementing the embodiment of the present invention, after detecting the network failure of the site where the gateway is located, the router in the site can be switched to other gateways by using the detection message, so as to ensure normal network communication and not affect tenant services. It can solve the problems existing in the prior art, such as complicated configuration of dynamic routing protocols and high computational complexity, thereby reducing the complexity of disaster recovery switching and improving the convenience of disaster recovery switching.

结合上文图1至图5实施例中的相关阐述,下面介绍本申请适用的相关设备以及系统。请参见图6是本发明实施例提供的一种控制装置的结构示意图。如图6所示的控制装置600包括获取模块602以及关联模块604。其中,With reference to the relevant descriptions in the embodiments of FIG. 1 to FIG. 5 above, relevant devices and systems applicable to the present application are introduced below. Please refer to FIG. 6 , which is a schematic structural diagram of a control device provided by an embodiment of the present invention. The control device 600 shown in FIG. 6 includes an acquisition module 602 and an association module 604 . in,

所述获取模块602,用于获取第一网关的状态;The obtaining module 602 is configured to obtain the state of the first gateway;

所述关联模块604,用于在所述第一网关的状态指示所述第一网关所属的站点的网络发生故障时,将所述第一网关所属的站点中的路由器与第二网关关联,所述第一网关与所述第二网关属于不同站点。The associating module 604 is configured to associate the router in the site to which the first gateway belongs with the second gateway when the state of the first gateway indicates that the network of the site to which the first gateway belongs is faulty. The first gateway and the second gateway belong to different sites.

在一种可能的实施方式中,所述获取模块602具体用于获取第一网关的故障状态,其中,所述故障状态用于指示所述控制装置在预设时长内未接收到所述第一网关发送的通知消息,所述通知消息用于通知所述第一网关所属的站点的网络未发生故障,和/或,所述控制装置接收到所述第一网关发送的故障消息,所述故障消息用于通知所述第一网关所属的站点的网络发生了故障。In a possible implementation manner, the acquiring module 602 is specifically configured to acquire a fault state of the first gateway, wherein the fault state is used to indicate that the control device has not received the first gateway within a preset period of time a notification message sent by the gateway, where the notification message is used to notify that the network of the site to which the first gateway belongs is not faulty, and/or the control device receives the fault message sent by the first gateway, the fault The message is used to notify that the network of the site to which the first gateway belongs is faulty.

在一种可能的实施方式中,所述关联模块604具体用于生成所述路由器与所述第二网关关联的第一转发表,所述第一转发表用于所述第二网关将所述第一网关所属的站点中的数据包向所述路由器转发;向所述第二网关发送所述第一转发表。In a possible implementation manner, the association module 604 is specifically configured to generate a first forwarding table associated with the router and the second gateway, where the first forwarding table is used by the second gateway to associate the The data packets in the site to which the first gateway belongs are forwarded to the router; the first forwarding table is sent to the second gateway.

在一种可能的实施方式中,所述关联模块604具体用于生成所述路由器与所述第二网关关联的第二转发表,所述第二转发表用于所述路由器将所述第一网关所属的站点中的数据包向所示第二网关转发;向所述路由器发送所述第二转发表。In a possible implementation manner, the association module 604 is specifically configured to generate a second forwarding table associated with the router and the second gateway, where the second forwarding table is used by the router to associate the first forwarding table with the first forwarding table. The data packets in the site to which the gateway belongs are forwarded to the second gateway shown; and the second forwarding table is sent to the router.

其中,本发明实施例提供的控制装置具体可为图2所述实施例中的控制装置,其可用于执行如上图5所述方法实施例中的所有或部分实施步骤。关于本发明实施例中未示出或未描述的部分可参见前述图1至图5所述实施例中的相关阐述,这里不再赘述。The control device provided in this embodiment of the present invention may specifically be the control device in the embodiment shown in FIG. 2 , which may be used to execute all or part of the implementation steps in the method embodiment described in FIG. 5 above. For the parts not shown or described in the embodiments of the present invention, reference may be made to the relevant descriptions in the embodiments described in the foregoing FIG. 1 to FIG. 5 , and details are not repeated here.

请参见图7,是本发明实施例提供的一种计算设备的示意图。如图7所示,本申请提供的计算设备1000,包括一个或多个处理器701、通信接口702和存储器703,处理器701、通信接口702和存储器703可通过总线或者其它方式连接,本发明实施例以通过总线704连接为例。其中:Please refer to FIG. 7 , which is a schematic diagram of a computing device provided by an embodiment of the present invention. As shown in FIG. 7 , the computing device 1000 provided by the present application includes one or more processors 701, a communication interface 702, and a memory 703. The processor 701, the communication interface 702, and the memory 703 may be connected by a bus or in other ways. The present invention The embodiment takes the connection through the bus 704 as an example. in:

处理器701可以由一个或者多个通用处理器构成,例如中央处理器(CentralProcessing Unit,CPU)。处理器701可用于运行相关的程序代码中以下任一项或多项功能模块的程序:获取模块以及关联模块等。也就是说,处理器701执行程序代码可以实现获取模块以及关联模块等功能模块中的任一项或多项的功能。其中,关于所述获取模块以及关联模块具体可参见前述实施例中的相关阐述。The processor 701 may be composed of one or more general-purpose processors, such as a central processing unit (Central Processing Unit, CPU). The processor 701 can be used to run a program of any one or more of the following functional modules in the relevant program code: an acquisition module, an association module, and the like. That is, the processor 701 executes the program code to implement any one or more functions of the acquisition module and the associated module and other functional modules. For details about the acquisition module and the association module, reference may be made to the relevant descriptions in the foregoing embodiments.

通信接口702可以为有线接口(例如以太网接口)或无线接口(例如蜂窝网络接口或使用无线局域网接口),用于与其他模块/设备进行通信。例如,本申请实施例中通信接口602具体可用于接收第一网关发送的故障消息或通知消息等。Communication interface 702 may be a wired interface (eg, an Ethernet interface) or a wireless interface (eg, a cellular network interface or using a wireless local area network interface) for communicating with other modules/devices. For example, the communication interface 602 in this embodiment of the present application may be specifically configured to receive a fault message or a notification message sent by the first gateway.

存储器703可以包括易失性存储器(Volatile Memory),例如随机存取存储器(Random Access Memory,RAM);存储器也可以包括非易失性存储器(Non-VolatileMemory),例如只读存储器(Read-Only Memory,ROM)、快闪存储器(Flash Memory)、硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid-State Drive,SSD);存储器703还可以包括上述种类的存储器的组合。存储器703可用于存储一组程序代码,程序代码可以是提供如图6中所示的控制装置的代码,以便于处理器701调用存储器703中存储的程序代码来运行如图6中所示的控制装置;程序代码可以是用于运行如图5所示的方法的代码,以便于处理器701调用存储器703中存储的程序代码以运行如上图5中所示的方法。The memory 703 may include a volatile memory (Volatile Memory), such as a random access memory (Random Access Memory, RAM); the memory may also include a non-volatile memory (Non-Volatile Memory), such as a read-only memory (Read-Only Memory) , ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid-state drive (Solid-State Drive, SSD); the memory 703 may also include a combination of the above-mentioned types of memory. The memory 703 may be used to store a set of program codes, which may be codes that provide control means as shown in FIG. 6 so that the processor 701 invokes the program code stored in the memory 703 to execute the control as shown in FIG. 6 . The means; the program code may be code for executing the method as shown in FIG. 5 , so that the processor 701 calls the program code stored in the memory 703 to execute the method as shown in FIG. 5 above.

需要说明的,图7仅仅是本申请实施例的一种可能的实现方式,实际应用中,计算设备还可以包括更多或更少的部件,这里不作限制。关于本申请实施例中未示出或未描述的内容,可参见前述图5所述实施例中的相关阐述,这里不再赘述。It should be noted that FIG. 7 is only a possible implementation manner of the embodiment of the present application. In practical applications, the computing device may further include more or less components, which is not limited here. For content not shown or described in the embodiments of the present application, reference may be made to the relevant descriptions in the embodiment shown in FIG. 5 , which will not be repeated here.

本发明实施例还提供一种计算机非瞬态存储介质,所述计算机非瞬态存储介质中存储有程序代码。所述程序代码包括用于执行如上图5所述方法的指令,当其在处理器上运行时,图5所示的方法流程得以实现。Embodiments of the present invention further provide a computer non-transitory storage medium, where program codes are stored in the computer non-transitory storage medium. The program code includes instructions for executing the method described above in FIG. 5 , which, when executed on a processor, enables the method flow shown in FIG. 5 .

本发明实施例还提供一种计算机程序产品,当所述计算机程序产品在处理器上运行时,图5所示的方法流程得以实现。The embodiment of the present invention further provides a computer program product, when the computer program product runs on a processor, the method flow shown in FIG. 5 is implemented.

结合本发明实施例公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于计算设备中。当然,处理器和存储介质也可以作为分立组件存在于计算设备中。The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present invention may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions. Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory (Random Access Memory, RAM), flash memory, read only memory (Read Only Memory, ROM), erasable programmable read only memory ( Erasable Programmable ROM, EPROM), Electrically Erasable Programmable Read-Only Memory (Electrically EPROM, EEPROM), registers, hard disks, removable hard disks, compact disks (CD-ROMs), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium may reside in an ASIC. Additionally, the ASIC may reside in a computing device. Of course, the processor and storage medium may also exist in the computing device as discrete components.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and the program is During execution, it may include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes various media that can store program codes, such as ROM, RAM, magnetic disk, or optical disk.

Claims (14)

1. A disaster recovery switching method, comprising:
acquiring the state of a first gateway;
when the state of the first gateway indicates that the network of the site to which the first gateway belongs has a fault, the control device associates a router in the site to which the first gateway belongs with a second gateway, and the first gateway and the second gateway belong to different sites.
2. The method of claim 1, wherein obtaining the status of the first gateway comprises:
the method comprises the steps of obtaining a fault state of a first gateway, wherein the fault state is used for indicating that a control device does not receive a notification message sent by the first gateway within a preset time length, the notification message is used for notifying that a network of a site to which the first gateway belongs does not have a fault, and/or the fault state is used for indicating that the control device receives a fault message sent by the first gateway, and the fault message is used for notifying that the network of the site to which the first gateway belongs has a fault.
3. The method according to claim 1 or 2, wherein associating the router in the site to which the first gateway belongs with the second gateway specifically comprises:
generating a first forwarding table associated with the router and the second gateway, wherein the first forwarding table is used for the second gateway to forward data packets in a station to which the first gateway belongs to the router;
sending the first forwarding table to the second gateway.
4. The method according to any one of claims 1 to 3, wherein associating the router in the site to which the first gateway belongs with the second gateway specifically comprises:
generating a second forwarding table associated with the router and the second gateway, wherein the second forwarding table is used for forwarding a data packet in a site to which the first gateway belongs to the router to the second gateway;
and sending the second forwarding table to the router.
5. The method according to any one of claims 2-4, further comprising:
the first gateway monitors whether a network of a site to which the first gateway belongs has a fault or not through a detection message;
the first gateway sends the failure message and/or the notification message to the control device.
6. A control device, characterized in that the control device comprises an acquisition module and an association module, wherein,
the acquisition module is used for acquiring the state of the first gateway;
the association module is configured to associate a router in a site to which the first gateway belongs with a second gateway when the state of the first gateway indicates that a network of the site to which the first gateway belongs has a fault, where the first gateway and the second gateway belong to different sites.
7. The control device according to claim 6,
the obtaining module is specifically configured to obtain a fault state of a first gateway, where the fault state is used to indicate that the control device does not receive a notification message sent by the first gateway within a preset time period, where the notification message is used to notify that a network of a site to which the first gateway belongs does not fail, and/or the fault state is used to indicate that the control device receives a fault message sent by the first gateway, and the fault message is used to notify that the network of the site to which the first gateway belongs fails.
8. The control device according to claim 6 or 7,
associating the router in the site to which the first gateway belongs with the second gateway specifically includes: generating a first forwarding table associated with the router and the second gateway, wherein the first forwarding table is used for the second gateway to forward data packets in a station to which the first gateway belongs to the router;
the association module is further configured to send the first forwarding table to the second gateway.
9. The control device according to any one of claims 6 to 8,
associating the router in the site to which the first gateway belongs with the second gateway specifically includes: generating a second forwarding table associated with the router and the second gateway, wherein the second forwarding table is used for forwarding a data packet in a site to which the first gateway belongs to the router to the second gateway;
the association module is further configured to send the second forwarding table to the router.
10. A computing device comprising a processor and a memory, wherein,
the memory for storing program code;
the processor executing code in the memory for:
acquiring the state of a first gateway;
and when the state of the first gateway indicates that the network of the site to which the first gateway belongs has a fault, associating a router in the site to which the first gateway belongs with a second gateway, wherein the first gateway and the second gateway belong to different sites.
11. The computing device of claim 10,
the acquiring the state of the first gateway specifically includes: the method and the device for controlling the network failure of the first gateway are used for acquiring a failure state of the first gateway, wherein the failure state is used for indicating that the control device does not receive a notification message sent by the first gateway within a preset time length, the notification message is used for notifying that the network of a site to which the first gateway belongs does not fail, and/or the control device receives a failure message sent by the first gateway, and the failure message is used for notifying that the network of the site to which the first gateway belongs fails.
12. The computing device of claim 10 or 11,
associating the router in the site to which the first gateway belongs with the second gateway specifically includes:
generating a first forwarding table associated with the router and the second gateway, wherein the first forwarding table is used for the second gateway to forward data packets in a station to which the first gateway belongs to the router;
sending the first forwarding table to the second gateway.
13. The computing device of claims 10-12,
associating the router in the site to which the first gateway belongs with the second gateway specifically includes:
generating a second forwarding table associated with the router and the second gateway, where the second forwarding table is used for the router to forward a data packet in a site to which the first gateway belongs to the second gateway;
and sending the second forwarding table to the router.
14. A computer non-transitory storage medium storing a computer program, wherein the computer program when executed by a computing device implements the method of any of claims 1 to 5.
CN201810899856.5A 2018-08-08 2018-08-08 Disaster recovery switching method, related equipment and computer storage medium Pending CN109309617A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810899856.5A CN109309617A (en) 2018-08-08 2018-08-08 Disaster recovery switching method, related equipment and computer storage medium
PCT/CN2019/099599 WO2020030000A1 (en) 2018-08-08 2019-08-07 Disaster recovery switching method, related device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810899856.5A CN109309617A (en) 2018-08-08 2018-08-08 Disaster recovery switching method, related equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN109309617A true CN109309617A (en) 2019-02-05

Family

ID=65225940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810899856.5A Pending CN109309617A (en) 2018-08-08 2018-08-08 Disaster recovery switching method, related equipment and computer storage medium

Country Status (2)

Country Link
CN (1) CN109309617A (en)
WO (1) WO2020030000A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213161A (en) * 2019-05-10 2019-09-06 腾讯科技(深圳)有限公司 A kind of routing scheduling method and relevant device
WO2020030000A1 (en) * 2018-08-08 2020-02-13 华为技术有限公司 Disaster recovery switching method, related device and computer storage medium
CN111049741A (en) * 2019-12-16 2020-04-21 珠海格力电器股份有限公司 Method for improving communication reliability, communication system and terminal equipment
WO2020211364A1 (en) * 2019-04-16 2020-10-22 平安科技(深圳)有限公司 Method and apparatus for achieving multi-site high availability of gateway, computer device, and storage medium
CN114221856A (en) * 2022-01-04 2022-03-22 中国建设银行股份有限公司 Control method, device, storage medium and equipment for network disaster recovery switching
CN115734255A (en) * 2021-08-27 2023-03-03 中国移动通信集团湖北有限公司 Disaster tolerance emergency switching method, device, equipment and storage medium
CN116248769A (en) * 2022-12-27 2023-06-09 中移动信息技术有限公司 Service control method, device, equipment and computer storage medium
WO2024001359A1 (en) * 2022-06-30 2024-01-04 中兴通讯股份有限公司 Communication state switching method, port configuration method, and communication system and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130155845A1 (en) * 2011-12-16 2013-06-20 Keyur Patel Method for providing border gateway protocol fast convergence on autonomous system border routers
CN104580472A (en) * 2015-01-09 2015-04-29 杭州华三通信技术有限公司 Flow table item processing method and device
CN104798342A (en) * 2014-11-17 2015-07-22 华为技术有限公司 Service migration method of data center, device and system thereof
CN105915400A (en) * 2016-06-28 2016-08-31 北京神州绿盟信息安全科技股份有限公司 Data stream switching method and system
CN108270669A (en) * 2016-12-30 2018-07-10 中兴通讯股份有限公司 Business recovery device, master controller, the system and method for SDN network
CN108306777A (en) * 2018-04-20 2018-07-20 平安科技(深圳)有限公司 SDN controller-based virtual gateway active/standby switching method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626309B (en) * 2008-07-09 2011-07-06 中国移动通信集团公司 A WAP service cutover method and its equipment and system
CN105490937B (en) * 2014-09-17 2019-02-01 华为技术有限公司 Ether virtual network gateway switching method and service provider's edge node devices
CN107959626B (en) * 2017-12-13 2021-06-04 迈普通信技术股份有限公司 Communication method, device and system of data center
CN109309617A (en) * 2018-08-08 2019-02-05 华为技术有限公司 Disaster recovery switching method, related equipment and computer storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130155845A1 (en) * 2011-12-16 2013-06-20 Keyur Patel Method for providing border gateway protocol fast convergence on autonomous system border routers
CN104798342A (en) * 2014-11-17 2015-07-22 华为技术有限公司 Service migration method of data center, device and system thereof
CN107846315A (en) * 2014-11-17 2018-03-27 华为技术有限公司 The business migration method, apparatus and system of data center
CN104580472A (en) * 2015-01-09 2015-04-29 杭州华三通信技术有限公司 Flow table item processing method and device
CN105915400A (en) * 2016-06-28 2016-08-31 北京神州绿盟信息安全科技股份有限公司 Data stream switching method and system
CN108270669A (en) * 2016-12-30 2018-07-10 中兴通讯股份有限公司 Business recovery device, master controller, the system and method for SDN network
CN108306777A (en) * 2018-04-20 2018-07-20 平安科技(深圳)有限公司 SDN controller-based virtual gateway active/standby switching method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020030000A1 (en) * 2018-08-08 2020-02-13 华为技术有限公司 Disaster recovery switching method, related device and computer storage medium
WO2020211364A1 (en) * 2019-04-16 2020-10-22 平安科技(深圳)有限公司 Method and apparatus for achieving multi-site high availability of gateway, computer device, and storage medium
CN110213161A (en) * 2019-05-10 2019-09-06 腾讯科技(深圳)有限公司 A kind of routing scheduling method and relevant device
CN111049741A (en) * 2019-12-16 2020-04-21 珠海格力电器股份有限公司 Method for improving communication reliability, communication system and terminal equipment
CN115734255A (en) * 2021-08-27 2023-03-03 中国移动通信集团湖北有限公司 Disaster tolerance emergency switching method, device, equipment and storage medium
CN114221856A (en) * 2022-01-04 2022-03-22 中国建设银行股份有限公司 Control method, device, storage medium and equipment for network disaster recovery switching
WO2024001359A1 (en) * 2022-06-30 2024-01-04 中兴通讯股份有限公司 Communication state switching method, port configuration method, and communication system and medium
CN116248769A (en) * 2022-12-27 2023-06-09 中移动信息技术有限公司 Service control method, device, equipment and computer storage medium

Also Published As

Publication number Publication date
WO2020030000A1 (en) 2020-02-13

Similar Documents

Publication Publication Date Title
CN109309617A (en) Disaster recovery switching method, related equipment and computer storage medium
US11050586B2 (en) Inter-cloud communication method and related device, and inter-cloud communication configuration method and related device
US10798760B2 (en) Method for controlling network slice, forwarding device, control device, and communications system
US12199808B2 (en) Method and system for sharing state between network elements
CN110166356B (en) Method and network equipment for sending message
CN107809367B (en) Device online method of SDN (software defined network), SDN controller and network device
JP6079426B2 (en) Information processing system, method, apparatus, and program
CN106375231A (en) A traffic switching method, device and system
US10419341B2 (en) Forwarding entry establishment method and apparatus
US10581669B2 (en) Restoring control-plane connectivity with a network management entity
CN107306215B (en) A data processing method, system and node
JP6604336B2 (en) Information processing apparatus, information processing method, and program
US20220337506A1 (en) Method for multi-cloud interconnection and device
US8570877B1 (en) Preparing for planned events in computer networks
US11178032B2 (en) Connectivity monitoring for data tunneling between network device and application server
CN113938405A (en) Data processing method and device
US10447581B2 (en) Failure handling at logical routers according to a non-preemptive mode
US20160205033A1 (en) Pool element status information synchronization method, pool register, and pool element
CN105610594B (en) Fault diagnosis method and device for service chain
Muthumanikandan et al. Switch failure detection in software-defined networks
CN108271149A (en) A kind of method, apparatus and system of user data moving anchor point
CN110830598A (en) Method and network device for establishing BGP session, sending interface address and alias
CN112887185B (en) Communication method and device of overlay network
CN104753699A (en) Link failure handling method and device
CN107104837B (en) Method and control device for path detection

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
TA01 Transfer of patent application right

Effective date of registration: 20220207

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Applicant after: Huawei Cloud Computing Technologies Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant before: HUAWEI TECHNOLOGIES Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20190205

RJ01 Rejection of invention patent application after publication