[go: up one dir, main page]

CN106803803A - Virtual local area network restoration method, system and device - Google Patents

Virtual local area network restoration method, system and device Download PDF

Info

Publication number
CN106803803A
CN106803803A CN201510893403.8A CN201510893403A CN106803803A CN 106803803 A CN106803803 A CN 106803803A CN 201510893403 A CN201510893403 A CN 201510893403A CN 106803803 A CN106803803 A CN 106803803A
Authority
CN
China
Prior art keywords
local area
virtual local
switch
area network
network
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.)
Granted
Application number
CN201510893403.8A
Other languages
Chinese (zh)
Other versions
CN106803803B (en
Inventor
方湘婷
李育纬
阙志克
林志宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial Technology Research Institute ITRI
Original Assignee
Industrial Technology Research Institute ITRI
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 Industrial Technology Research Institute ITRI filed Critical Industrial Technology Research Institute ITRI
Priority to US14/981,937 priority Critical patent/US9813286B2/en
Publication of CN106803803A publication Critical patent/CN106803803A/en
Application granted granted Critical
Publication of CN106803803B publication Critical patent/CN106803803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种虚拟局域网络复原方法、系统及其装置,运用在混合式软件定义网络(Hybrid SDN)架构的一种虚拟局域网络复原机制。在此虚拟局域网络复原机制中,利用SDN集中管理的特性,将链路(Link)或交换机(Switch)的事件集中处理,在集中管理的控制器计算每个虚拟局域网络(VLAN)路径(Path)的时候,预先为所有链路(Link)及交换机(Switch)的故障事件计算备份路径(Backup Path)并存至控制器。当有链路(Link)或交换机(Switch)的故障事件发生的时候,控制器能够藉由收到故障事件,布建相应的备份路径,免去修复虚拟局域网络(VLAN)路径所需的收敛时间,提高数据传送的可靠度。

A virtual local area network recovery method, system and device are used as a virtual local area network recovery mechanism in a hybrid software-defined network (Hybrid SDN) architecture. In this virtual local area network recovery mechanism, the centralized management feature of SDN is used to centrally process the events of the link (Link) or switch (Switch), and the centralized management controller calculates each virtual local area network (VLAN) path (Path). ), backup paths (Backup Paths) are calculated in advance for all link and switch failure events and stored in the controller. When a link or switch failure event occurs, the controller can receive the failure event and build a corresponding backup path, eliminating the need to repair the convergence of the virtual local area network (VLAN) path. time to improve the reliability of data transmission.

Description

虚拟局域网络复原方法、系统及其装置Restoration method, system and device for virtual local area network

技术领域technical field

本发明涉及一种混合式软件定义网络的虚拟局域网络复原方法、系统及其装置。The invention relates to a virtual local area network recovery method, system and device of a hybrid software-defined network.

背景技术Background technique

传统网络在虚拟局域网络(VLAN)路径(Path)的设定仰赖分散式通信协议计算,例如利用生成树协议(Spanning Tree Protocol,STP)或是VLAN主干通信协议(VLAN Trunking Protocol,VTP),因此当链路(Link)及交换机(Switch)的故障事件发生的时候,交换机之间需要彼此交换信息重新计算路径,使得当有链路故障(Link Failure)发生的时候,都需要花费数秒钟的时间等待收敛,这对于讲求高可靠度的数据中心而言是一大问题。The setting of the path (Path) in the virtual local area network (VLAN) of the traditional network relies on the calculation of distributed communication protocols, such as the use of Spanning Tree Protocol (Spanning Tree Protocol, STP) or VLAN trunk communication protocol (VLAN Trunking Protocol, VTP), so When a link (Link) or switch (Switch) failure event occurs, the switches need to exchange information with each other to recalculate the path, so that when a link failure (Link Failure) occurs, it takes several seconds Waiting for convergence, which is a big problem for data centers that emphasize high reliability.

发明内容Contents of the invention

本公开内容多个实施范例中,提供一种虚拟局域网络复原方法,适用于一种混合式软件定义网络(Hybrid SDN)架构中的一网络。此网络至少包括一控制器与多个交换机。在此方法中,基于网络预先计算一备份路径表以及根据虚拟局域网络的连接故障而产生一事件通知讯息,对应于该事件通知讯息而基于该备份路径表启动一链路故障处理流程,并同时进行一检查流程。若检查流程得到的检查结果指出为一交换机故障事件,则回复经由链路故障处理流程变更的设定,并进行一交换机故障处理流程,以便根据备份路径表中对应虚拟局域网络的连接故障的一路径重新建立虚拟局域网络。若检查流程得到的检查结果指出并非上述交换机故障事件,则由链路故障处理流程根据此备份路径表中对应此虚拟局域网络的连接故障的一路径重新建立虚拟局域网络。In multiple implementation examples of the present disclosure, a virtual local area network recovery method is provided, which is applicable to a network in a hybrid software-defined network (Hybrid SDN) architecture. The network includes at least one controller and multiple switches. In this method, a backup path table is pre-calculated based on the network and an event notification message is generated according to the connection failure of the virtual local area network, and a link failure processing process is started based on the backup path table corresponding to the event notification message, and at the same time Carry out an inspection process. If the inspection result obtained by the inspection process indicates that it is a switch failure event, then restore the setting changed through the link failure handling process, and perform a switch failure handling process, so that according to a connection failure corresponding to the virtual local area network in the backup path table path to re-establish the virtual local area network. If the inspection result obtained by the inspection process indicates that it is not the above-mentioned switch failure event, then the link failure processing flow will re-establish the virtual local area network according to a path corresponding to the connection failure of the virtual local area network in the backup path table.

本公开内容多个实施范例中,提供一种控制器,用以在一种混合式软件定义网络(Hybrid SDN)架构的网络中,进行虚拟局域网络复原功能。此控制器包括一处理器以及一存储器。所述该存储器用以存储备份路径表,而处理器经配置用以接收一事件通知讯息。此处理器经配置用以基于备份路径表启动一链路故障处理流程,并根据所述备份路径表中对应虚拟局域网络的连接故障的一路径重新建立虚拟局域网络。处理器经配置用以进行一检查流程,其中若检查流程得到的检查结果判断为一交换机故障事件,则回复经由所述链路故障处理流程变更的设定,并进行一交换机故障处理流程,并根据所述备份路径表中对应该虚拟局域网络的连接故障的一路径重新建立虚拟局域网络。若检查流程得到的检查结果指出并非交换机故障事件,则停止执行该简查流程。In a plurality of implementation examples of the present disclosure, a controller is provided for performing virtual local area network restoration function in a hybrid software-defined network (Hybrid SDN) architecture network. The controller includes a processor and a memory. The memory is used to store the backup path table, and the processor is configured to receive an event notification message. The processor is configured to start a link failure processing process based on the backup path table, and re-establish the virtual local area network according to a path in the backup path table corresponding to the connection failure of the virtual local area network. The processor is configured to perform a check process, wherein if the check result obtained by the check process is judged to be a switch fault event, then restore the setting changed through the link fault processing process, and perform a switch fault processing process, and The virtual local area network is re-established according to a path corresponding to the connection failure of the virtual local area network in the backup path table. If the inspection result obtained by the inspection process indicates that it is not a switch failure event, the execution of the brief inspection process is stopped.

本公开内容多个实施范例中,提供一种虚拟局域网络复原功能的系统,适用一混合式软件定义网络(Hybrid SDN)架构的一网络。此系统包括至少包括一控制器与多个交换机。所述交换机用以根据虚拟局域网络的连接故障而产生一事件通知讯息。所述控制器用以当接收到一事件通知讯息时,同时执行一链路故障处理流程与一检查流程,其中,此控制器执行链路故障处理流程包括基于一备份路径表对应所述虚拟局域网络的连接故障的一路径在对应此路径的交换机上重新建立所述虚拟局域网络。此控制器执行检查流程时若得到的检查结果指出为一交换机故障事件,则回复经由所述链路故障处理流程变更的设定,并进行一交换机故障处理流程,并根据所述备份路径表中对应虚拟局域网络的连接故障的一路径在对应路径的交换机上重新建立所述虚拟局域网络,若该检查流程得到的检查结果指出并非交换机故障事件,则停止执行检查流程。In multiple implementation examples of the present disclosure, a virtual local area network recovery function system is provided, which is applicable to a network of a hybrid software-defined network (Hybrid SDN) architecture. The system includes at least one controller and multiple switches. The switch is used for generating an event notification message according to a connection failure of the virtual local area network. The controller is configured to simultaneously execute a link fault processing procedure and a checking procedure when receiving an event notification message, wherein the controller executing the link fault processing procedure includes corresponding to the virtual local area network based on a backup path table For a path of connection failure, the virtual local area network is re-established on the switch corresponding to this path. When the controller executes the inspection process, if the obtained inspection result indicates a switch failure event, it will restore the setting changed through the link failure processing flow, and perform a switch failure processing flow, and according to the backup path table A path corresponding to the connection failure of the virtual local area network re-establishes the virtual local area network on the switch of the corresponding path, and if the inspection result obtained by the inspection process indicates that it is not a switch failure event, the execution of the inspection process is stopped.

为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合附图作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail with reference to the accompanying drawings.

附图说明Description of drawings

图1A是说明本发明多个实施范例之一的混合式软件定义网络(HybridSDN)架构示意图。FIG. 1A is a schematic diagram illustrating a hybrid software-defined network (HybridSDN) architecture of one of multiple implementation examples of the present invention.

图1B用以说明本公开内容实施范例的复原机制中,链路(Link)故障事件的通知方式。FIG. 1B is used to illustrate the notification method of a link failure event in the recovery mechanism of the exemplary embodiment of the present disclosure.

图1C用以说明本公开内容实施范例的复原机制中,交换机(Switch)故障事件的通知方式。FIG. 1C is used to illustrate the notification method of a switch (Switch) failure event in the recovery mechanism of the implementation example of the present disclosure.

图1D是根据本公开的多个范例实施例其中之一所绘示的在混合式软件定义网络(Hybrid SDN)架构中虚拟局域网络复原方法的流程示意图。FIG. 1D is a schematic flowchart of a virtual local area network recovery method in a hybrid software-defined network (Hybrid SDN) architecture according to one of the exemplary embodiments of the present disclosure.

图2A是根据本公开的另一范例实施例所绘示的在混合式软件定义网络(Hybrid SDN)架构中虚拟局域网络复原方法的流程示意图。FIG. 2A is a schematic flowchart of a virtual local area network recovery method in a hybrid software-defined network (Hybrid SDN) architecture according to another exemplary embodiment of the present disclosure.

图2B是根据本公开的又一范例实施例所绘示的在混合式软件定义网络(Hybrid SDN)架构中虚拟局域网络复原方法的流程示意图。FIG. 2B is a schematic flowchart of a virtual local area network recovery method in a hybrid software-defined network (Hybrid SDN) architecture according to yet another exemplary embodiment of the present disclosure.

图3A用以说明本公开内容多个实施范例其中之一的网络架构下的多个交换机之间已经布建的虚拟局域网络(VLAN)路由以及预先计算的备份路径表范例示意图。FIG. 3A is a schematic diagram illustrating an example of deployed virtual local area network (VLAN) routes and a pre-calculated backup path table between multiple switches in one of the network architectures of the present disclosure.

图3B用以说明本公开内容多个实施范例其中之一,在多个交换机之间已经布建的虚拟局域网络(VLAN)路由发生错误事件时,切换路由到预先计算的备份路径的范例示意图。FIG. 3B is used to illustrate one of the multiple implementation examples of the present disclosure, an example schematic diagram of switching the route to a pre-calculated backup path when an error event occurs in a virtual local area network (VLAN) route deployed between multiple switches.

图4A是以图3A~3B实施范例的网络下的多个交换机之间已经布建的虚拟局域网络(VLAN)路由架构的范例示意图。FIG. 4A is a schematic diagram of an example of a virtual local area network (VLAN) routing architecture that has been deployed among multiple switches in the network shown in FIGS. 3A-3B .

图4B与4C分别说明控制器预先为所有链路(Link)及交换机(Switch)的故障事件计算备份路径(Backup Path)。4B and 4C respectively illustrate that the controller pre-calculates backup paths (Backup Path) for all link (Link) and switch (Switch) failure events.

图5A用以说明本公开内容多个实施范例其中之一,采用链路故障事件备份路径表进行重新布建,必须完成例如布建时的链路故障事件备份路径表示意图。FIG. 5A is used to illustrate one of the multiple implementation examples of the present disclosure. A link failure event backup path table is used for re-deployment, for example, a schematic diagram of the link failure event backup path table during deployment must be completed.

图5B用以说明本公开内容多个实施范例其中之一,采用交换机故障备份路径表进行重新布建时,必须完成例如布建时的交换机故障备份路径表示意图。FIG. 5B is used to illustrate one of the multiple implementation examples of the present disclosure. When a switch failure backup path table is used for re-deployment, for example, a schematic diagram of a switch failure backup path table during deployment must be completed.

图6用以说明本公开内容实施范例中用以做为简单网络管理协议(SNMP)的分组格式示意图。FIG. 6 is a schematic diagram illustrating a packet format used as a Simple Network Management Protocol (SNMP) in an embodiment of the present disclosure.

图7是根据本公开的一范例实施例所绘示的控制器的示意图。FIG. 7 is a schematic diagram of a controller according to an exemplary embodiment of the disclosure.

【符号说明】【Symbol Description】

100:网络100: network

CTR:控制器CTR: Controller

H1、H2:服务器(Server)H1, H2: Server

ES1~ES7、110:交换机ES1~ES7, 110: switches

SDNS1~SDNS2:软件定义的交换机SDNS1~SDNS2: software-defined switches

210:控制器210: controller

220:交换机220: switch

221:链路中断通知讯息(Link Down Notification)221: Link Down Notification

S110~S122:虚拟局域网络复原方法的步骤S110-S122: Steps of the virtual local area network restoration method

S230~S246:虚拟局域网络复原方法的步骤S230~S246: Steps of the virtual local area network restoration method

300:网络300: network

310、312、314、316、318、320:交换机310, 312, 314, 316, 318, 320: switches

340:控制器340: Controller

342:备份路径表342: backup path table

331、333、335:路径331, 333, 335: paths

410:链路故障事件备份路径表410: Link failure event backup path table

420:交换机故障备份路径表420: Switch failure backup path table

510:链路故障事件备份路径表510: Link failure event backup path table

520:交换机故障事件备份路径表520: Switch failure event backup path table

610:版本信息(Version)610: version information (Version)

612:群组名称(Community Name)612: Community Name

614:协议数据单元(Protocol Data Unit,PDU)614: Protocol Data Unit (Protocol Data Unit, PDU)

621:PDU类别(PDU Type)621: PDU category (PDU Type)

622:请求ID(Request ID)622: Request ID (Request ID)

623:错误状态(Error Status)623: Error Status

624:错误指标(Error Index)624: Error Index

625:多个物件识别码(Object Identifiers,OIDs)625: multiple object identifiers (Object Identifiers, OIDs)

631~635:物件识别码(OID)631~635: object identification code (OID)

700:控制器700: Controller

702:处理器702: Processor

704:存储器704: memory

具体实施方式detailed description

本公开内容所提出的多个实施范例中,至少一范例提出使用软件定义网络(Software-defined Network,SDN)的技术,运用在混合式软件定义网络(Hybrid SDN)架构的一种虚拟局域网络复原机制。在至少一个实施范例中的虚拟局域网络复原机制,利用SDN集中管理的特性,将链路(Link)或交换机(Switch)的事件集中处理,在集中管理的控制器(Controller)计算每个虚拟局域网络(VLAN)路径(Path)的时候,预先为所有链路(Link)及交换机(Switch)的故障事件计算备份路径(Backup Path)并存至控制器。当有链路(Link)或交换机(Switch)的故障事件发生的时候,控制器能够藉由收到故障事件,布建相应的备份路径,免去修复虚拟局域网络(VLAN)路径所需的收敛时间,提高数据传送的可靠度,达到混合式软件定义网络架构中快速复原机制。Among the multiple implementation examples proposed in this disclosure, at least one example proposes to use the technology of software-defined network (Software-defined Network, SDN) to restore a kind of virtual local area network applied in hybrid software-defined network (Hybrid SDN) architecture. mechanism. The virtual local area network recovery mechanism in at least one implementation example utilizes the characteristics of SDN centralized management to centrally process the events of the link (Link) or switch (Switch), and calculate the value of each virtual local area network in the centralized management controller (Controller). When the network (VLAN) path (Path) is used, the backup path (Backup Path) is calculated in advance for all link (Link) and switch (Switch) failure events and stored in the controller. When a link (Link) or switch (Switch) failure event occurs, the controller can deploy the corresponding backup path by receiving the failure event, eliminating the need to repair the convergence required for the virtual local area network (VLAN) path time, improve the reliability of data transmission, and achieve a rapid recovery mechanism in a hybrid software-defined network architecture.

在本公开内容中,"软件定义网络(SDN)"指的是一种网络,此架构修改了传统网络架构的控制模式,将网络分为控制层(Control Plane)与数据层(Data Plane),将网络的管理权限交由控制层的控制器(Controller)软件负责,采用集中控管的方式。耦合至软件定义网络的控制器(可以是服务器或其他任何具有此功能的装置)向软件定义网络中对应的交换机提供传输信息的定义。此定义能够包括优先顺序值、指定信息流的规则、以及用于数据流传输的一个动作(例如,转发或"丢弃")。此规则能够指定例如输入端口、虚拟局域网络(VLAN)标签(Tag)、介质访问控制(MAC)地址和目的地地址、以太网类型、互联网协议(IP)来源地址和目的地地址、互联网协议(IP)、传输控制协议(TCP)来源端口(port)和目的端口等等信息。而传输信息中的其他分组标头的字段(栏位)也能够包括在所述规则之中,取决于其特性。经过匹配至至少其中一种规则后,软件定义网络中的交换机就采取对应信息流定义中所包括的动作。软件定义网络的一种示例包括但不限于,如开放网络基金会(Open NetworkingFoundation,ONF)所规范的"OpenFlow交换机规格(OpenFlow SwitchSpecification)"中所描述的OpenFlow协议。In this disclosure, "software-defined network (SDN)" refers to a network. This architecture modifies the control mode of the traditional network architecture and divides the network into a control plane (Control Plane) and a data plane (Data Plane). The management authority of the network is handed over to the controller (Controller) software of the control layer, and a centralized control method is adopted. A controller (which may be a server or any other device with this function) coupled to the software-defined network provides definition of transmission information to a corresponding switch in the software-defined network. This definition can include priority values, rules specifying traffic flow, and an action (eg, forward or "drop") for data flow transmission. This rule can specify, for example, input ports, virtual local area network (VLAN) tags (Tags), media access control (MAC) addresses and destination addresses, Ethertype, Internet Protocol (IP) source and destination addresses, Internet Protocol (IP) IP), Transmission Control Protocol (TCP) source port (port) and destination port and other information. However, fields (fields) of other packet headers in the transmission information can also be included in the rules, depending on their characteristics. After matching at least one of the rules, the switch in the software-defined network takes an action included in the corresponding information flow definition. One example of software-defined networking includes, but is not limited to, the OpenFlow protocol as described in the "OpenFlow Switch Specification" specified by the Open Networking Foundation (ONF).

在本公开内容中,软件定义网络中能够处理软件定义的信息流的交换机称为"软件可定义的"(Software-definable)交换机。这样的软件可定义的交换机能够包括能够处理软件定义的信息流和传统分组转发(例如以太网络交换,或IP路由)的端口(Port)。信息流定义通常包括一个或多个软件可定义的输入端口。In this disclosure, a switch capable of processing software-defined information flows in a software-defined network is called a "software-definable" switch. Such a software-definable switch can include ports (Ports) capable of processing software-defined information flow and traditional packet forwarding (such as Ethernet switching or IP routing). A flow definition usually includes one or more software-definable input ports.

在一些实施例中,混合式软件定义网络(Hybrid SDN)所建构的软件定义网络可以包含多台物理交换机以及至少一软件定义的交换机来实现。此物理交换机能够是以太网络交换机(Ethernet Switch)。在以太网络交换机中,以任意拓扑耦合的任何数量的交换机可以逻辑地操作为单一交换机。而软件定义的交换机例如软件定义网络(SDN)交换机。In some embodiments, a software-defined network constructed by a hybrid software-defined network (Hybrid SDN) may be implemented by including multiple physical switches and at least one software-defined switch. The physical switch can be an Ethernet switch (Ethernet Switch). In an Ethernet switch, any number of switches coupled in any topology can logically operate as a single switch. And a software-defined switch such as a software-defined networking (SDN) switch.

在本公开内容所提出至少一范例中,所提出包括虚拟局域网络复原机制的混合式软件定义网络(Hybrid SDN)架构中,控制器(可以是服务器或其他任何具有此功能的装置)可以通过简单网络管理协议(Simple NetworkManagement Protocol,SNMP)或是命令列接口(Command-Line Interface,CLI)的指令来控制物理交换机(例如以太交换机),而利用OpenFlow模块来控制软件定义的交换机。混合式软件定义网络(Hybrid SDN)架构下的控制器,具有同时处理链路(Link)或交换机(Switch)故障事件的路径修复。In at least one example proposed in this disclosure, in the proposed hybrid software-defined network (Hybrid SDN) architecture including virtual local area network recovery mechanism, the controller (which can be a server or any other device with this function) can be implemented through a simple A network management protocol (Simple Network Management Protocol, SNMP) or a command-line interface (Command-Line Interface, CLI) command is used to control a physical switch (such as an Ethernet switch), and an OpenFlow module is used to control a software-defined switch. The controller under the hybrid software-defined network (Hybrid SDN) architecture has path restoration that simultaneously handles link (Link) or switch (Switch) failure events.

本公开内容所提出简单网络管理协议(SNMP)指的是一种使用于网络管理系统的协议。在此网络管理系统中包括一群网络管理站(NetworkManagement System)及网络元件(Network Element)。网络管理站可以是一部具有信息处理能力的服务器或计算机,在其上执行网络管理软件(SNMPManager)以监控所管理的网络元件。而网络元件是一些像主机、桥接器、路由器、终端机、服务器等硬件设备,在其上有中介软件(SNMP Agent)负责执行网络管理站所下达的命令,而SNMP则是管理软件和中介软件间用来交换网管讯息的通信协议。中介软件(SNMP Agent)在某种特殊情况下会自动发出事件通知(EventReport),例如采用SNMP Trap方式,告知网络管理软件某些状况已发生。而本公开内容所提出的命令列接口(Command-line Interface,CLI)为一般在通信装置之间利用文字直接下命令的接口。The Simple Network Management Protocol (SNMP) proposed in this disclosure refers to a protocol used in network management systems. The network management system includes a group of network management stations (Network Management System) and network elements (Network Element). The network management station can be a server or computer with information processing capability, on which the network management software (SNMPManager) is executed to monitor the managed network elements. The network elements are hardware devices such as hosts, bridges, routers, terminals, servers, etc., on which there is an intermediary software (SNMP Agent) responsible for executing the commands issued by the network management station, while SNMP is management software and intermediary software. A communication protocol used to exchange network management messages. The intermediary software (SNMP Agent) will automatically issue an event notification (EventReport) under certain special circumstances, such as using SNMP Trap to inform the network management software that certain conditions have occurred. The command-line interface (CLI) proposed in the present disclosure is an interface that generally uses text to directly issue commands between communication devices.

底下将举例说明本公开内容中的一个在混合式软件定义网络(HybridSDN)架构中虚拟局域网络复原机制,但并非以此为限制。A virtual local area network recovery mechanism in a hybrid software-defined network (HybridSDN) architecture of the present disclosure will be illustrated below with an example, but not limited thereto.

请参照图1A~1D,其中,图1A是说明本发明多个实施范例之一的混合式软件定义网络(Hybrid SDN)架构示意图;图1B用以说明本公开内容实施范例的复原机制中,链路(Link)故障事件的通知方式;图1C用以说明本公开内容实施范例的复原机制中,交换机(Switch)故障事件的通知方式;以及图1D是根据本公开的多个范例实施例之一所绘示在混合式软件定义网络(HybridSDN)架构中虚拟局域网络复原方法的流程示意图。Please refer to FIGS. 1A to 1D, wherein FIG. 1A is a schematic diagram of a hybrid software-defined network (Hybrid SDN) architecture illustrating one of the multiple implementation examples of the present invention; FIG. 1B is used to illustrate the restoration mechanism of the implementation example of the present disclosure. The notification method of the Road (Link) failure event; FIG. 1C is used to illustrate the notification method of the switch (Switch) failure event in the restoration mechanism of the implementation example of the present disclosure; and FIG. 1D is one of a plurality of exemplary embodiments according to the disclosure A schematic flow chart of a virtual local area network recovery method in a hybrid software-defined network (HybridSDN) architecture is shown.

在混合式软件定义网络(Hybrid SDN)架构下的网络100包括控制器CTR、第一服务器(Server)H1与第二服务器H2、多个物理交换机与多个软件定义的交换机,例如图示的以太网络交换机(Ethernet Switch)的第一交换机ES1、第二交换机ES2、第三交换机ES3、第四交换机ES4、第五交换机ES5、第六交换机ES6及第七交换机ES7,以及第一软件定义的交换机SDNS1与第二软件定义的交换机SDNS2。为方便说明,在本范例实施例中,是以配置一台控制器、二台服务器以及七台物理交换机与二个软件定义的交换机来说明混合式软件定义网络(Hybrid SDN)。然而,本公开并不限于此。在另一范例实施例中,网络100中可以配置有更多的服务器以及交换机。The network 100 under the hybrid software-defined network (Hybrid SDN) architecture includes a controller CTR, a first server (Server) H1 and a second server H2, a plurality of physical switches and a plurality of software-defined switches, such as the illustrated Ethernet The first switch ES1, the second switch ES2, the third switch ES3, the fourth switch ES4, the fifth switch ES5, the sixth switch ES6 and the seventh switch ES7 of the network switch (Ethernet Switch), and the first software-defined switch SDNS1 With a second software-defined switch SDNS2. For the convenience of description, in this exemplary embodiment, a controller, two servers, seven physical switches and two software-defined switches are configured to illustrate a hybrid software-defined network (Hybrid SDN). However, the present disclosure is not limited thereto. In another exemplary embodiment, more servers and switches may be configured in the network 100 .

此实施范例中,由控制器CTR、第一到第二服务器(Server)H1与H2、第一到第七交换机ES1~ES7以及第一到第二软件定义的交换机SDNS1~SDNS2彼此连接以形成网络100。举例来说,网络100是一个第二层网络(layer twonetwork)。在此,控制器CTR、第一到第二服务器H1与H2、第一到第七交换机ES1~ES7以及第一到第二软件定义的交换机SDNS1~SDNS2也可被视为网络100中的节点(nodes)。In this implementation example, the controller CTR, the first to the second servers (Server) H1 and H2, the first to the seventh switches ES1-ES7, and the first to the second software-defined switches SDNS1-SDNS2 are connected to each other to form a network 100. For example, the network 100 is a layer two network. Here, the controller CTR, the first to the second servers H1 and H2, the first to the seventh switches ES1-ES7, and the first to the second software-defined switches SDNS1-SDNS2 can also be regarded as nodes in the network 100 ( nodes).

控制器CTR用以管理网络100中连接的所有物理机器(PhysicalMachine)、虚拟机器(Virtual Machine)以及交换机。举例来说,控制器CTR是一台服务器,并存储相关的管理信息(Management Information),其中管理信息包括运作于物理机器中的虚拟机器的相关信息以及与物理机器连接的交换机的信息。在本公开内容所提出至少一范例中,控制器CTR可以通过简单网络管理协议(SNMP)或是命令列接口(CLI)的指令来控制物理交换机,控制器CTR可以控制属于以太网络交换机(Ethernet Switch)的第一到第七交换机ES1~ES7。而控制器CTR可利用OpenFlow模块来控制软件定义的交换机,例如第一到第二软件定义的交换机SDNS1~SDNS2。The controller CTR is used to manage all physical machines (Physical Machines), virtual machines (Virtual Machines) and switches connected in the network 100 . For example, the controller CTR is a server, and stores related management information (Management Information), wherein the management information includes information about virtual machines running on the physical machines and information about switches connected to the physical machines. In at least one example proposed in this disclosure, the controller CTR can control the physical switch through the instructions of the Simple Network Management Protocol (SNMP) or the Command Line Interface (CLI), and the controller CTR can control the Ethernet Switch (Ethernet Switch) ) of the first to seventh switches ES1-ES7. The controller CTR can use the OpenFlow module to control software-defined switches, such as the first to second software-defined switches SDNS1 - SDNS2 .

网络100中的第一到第二服务器H1与H2或未显示但建构在网络100底下的其他服务器都属于物理主机(Physical Host)。第一到第二服务器H1与H2或其他服务器可以分别运作一个或多个虚拟机器,以提供不同的服务。举例来说,第一到第二服务器H1与H2可配备有虚拟桥接器(virtual bridge),并且此虚拟桥接器能够开启(enable)/关闭(disable)生成树协议(STP)的功能、设定(configure)生成树协议的相关选项(option)、设定防火墙规则(firewall rules)以及植入(populate)转送表(forwarding table)。The first to second servers H1 and H2 in the network 100 or other servers not shown but built under the network 100 are all physical hosts. The first to the second servers H1 and H2 or other servers can respectively run one or more virtual machines to provide different services. For example, the first to the second servers H1 and H2 may be equipped with a virtual bridge, and the virtual bridge can enable/disable STP function, setting (configure) related options of spanning tree protocol (option), set firewall rules (firewall rules), and implant (populate) forwarding table (forwarding table).

第一到第七交换机ES1~ES7以及第一到第二软件定义的交换机SDNS1~SDNS2,或未显示但建构在网络100底下的其他交换机被部署于控制器CTR、第一到第二服务器H1与H2以及未显示但建构在网络100底下的其他服务器之间,并且用以转送(forwarding)数据分组(data packet)。举例来说,第一到第七交换机ES1~ES7以及第一到第二软件定义的交换机SDNS1~SDNS2,为第二层交换机(layer two switch),并且能够开启/关闭生成树协议(STP)的功能、设定生成树协议的相关选项、允许/阻断广播(broadcast)、多重广播(multicast)以及未知的单播(unicast)数据分组、植入转送表以及可经由命令列接口(CLI)或简易网络管理协议接口(SNMP interface)作远端(remote)设定。The first to seventh switches ES1-ES7 and the first to second software-defined switches SDNS1-SDNS2, or other switches not shown but built under the network 100 are deployed on the controller CTR, the first to the second servers H1 and H2 and other servers not shown but built under the network 100 are used for forwarding data packets. For example, the first to seventh switches ES1-ES7 and the first to second software-defined switches SDNS1-SDNS2 are layer two switches (layer two switches), and can enable/disable Spanning Tree Protocol (STP) Functions, setting related options of spanning tree protocol, allowing/blocking broadcast (broadcast), multicast (multicast) and unknown unicast (unicast) data packets, implanting transfer table and can be accessed via command line interface (CLI) or Simple network management protocol interface (SNMP interface) for remote (remote) setting.

在本范例实施例中,控制器CTR或是另一个路由元件会被配置以计算网络100的路由路径(routing paths)(在此,亦称为“预定路由路径(predeterminedrouting path)”)。举例来说,预定路由路径会根据路由算法来计算以更有效率利用网络100的所有带宽。而所计算的路由路径由控制器CTR传送给各交换机,例如物理交换机(例如以太网络交换机)则可通过例如SNMP通信协议对交换机进行设定。而若是软件定义的交换机,则可通过例如OpenFlow通信协议对交换机进行设定。控制器CTR可以采用例如戴克斯特拉算法(Dijkstra'sAlgorithm),以某一节点为出发点,计算从此节点出发到所有其他节点的最短或最佳路径。但并非以此为限制。In this exemplary embodiment, the controller CTR or another routing element is configured to calculate routing paths (also referred to as “predetermined routing paths” herein) of the network 100 . For example, the predetermined routing path is calculated according to a routing algorithm to more efficiently utilize all the bandwidth of the network 100 . The calculated routing path is transmitted by the controller CTR to each switch, such as a physical switch (such as an Ethernet switch), and the switch can be set through a communication protocol such as SNMP. And if it is a software-defined switch, the switch can be configured through, for example, the OpenFlow communication protocol. The controller CTR may use, for example, Dijkstra's Algorithm to calculate the shortest or best paths from this node to all other nodes starting from a certain node. But not as a limitation.

在多个范例实施例中的复原机制,控制器CTR在计算路由路径(routingpaths)之外,控制器CTR还可以另外预先为所有链路(Link)及交换机(Switch)的故障事件计算备份路径(Backup Path)并存至控制器CTR。当有链路(Link)或交换机(Switch)的故障事件发生的时候,控制器CTR能够藉由收到故障事件,布建相应的备份路径,免去修复虚拟局域网络(VLAN)路径所需的收敛时间,提高数据传送的可靠度。In the recovery mechanism in multiple exemplary embodiments, the controller CTR can calculate the backup path ( Backup Path) and save to the controller CTR. When a link (Link) or switch (Switch) failure event occurs, the controller CTR can deploy the corresponding backup path by receiving the failure event, eliminating the need to repair the virtual local area network (VLAN) path. Convergence time, improve the reliability of data transmission.

请参照图1B,用以说明本公开内容实施范例的复原机制中,链路(Link)故障事件的通知方式。在此实施例中,例如属于以太网络交换机(EthernetSwitch)的第四交换机ES4与第六交换机ES6之间发生了链路(Link)故障事件时,第四交换机ES4与第六交换机ES6会发出链路中断(又称之为“断讯”)通知讯息通报控制器CTR,例如在一个实施例中可采用例如SNMP Trap的通知方式通报控制器CTR。而控制器CTR可迅速的采用预先计算的备份路径,以快速复原网络100的传输。Please refer to FIG. 1B , which is used to illustrate the notification method of a link failure event in the restoration mechanism of the embodiment example of the present disclosure. In this embodiment, for example, when a link (Link) failure event occurs between the fourth switch ES4 and the sixth switch ES6 belonging to the Ethernet switch (EthernetSwitch), the fourth switch ES4 and the sixth switch ES6 will send a link The interruption (also referred to as "interruption") notification message notifies the controller CTR, for example, in one embodiment, the notification method such as SNMP Trap may be used to notify the controller CTR. The controller CTR can quickly adopt the pre-calculated backup path to quickly restore the transmission of the network 100 .

请参照图1C,用以说明本公开内容实施范例的复原机制中,交换机(Switch)故障事件的通知方式。在此实施例中,由于第六交换机ES6故障事件,可能因为第六交换机毁损或是第六交换机负载过重,而导致第六交换机ES6无法传递分组,而造成第四交换机ES4与第七交换机ES7,两者与第六交换机ES6之间所建立的链路(Link)无法通连。因此,第四交换机ES4与第七交换机ES7会发出链路中断通知讯息通报控制器CTR,在一个实施例中可采用例如SNMP异常状况通知信号SNMP Trap的通知方式通报控制器CTR。而控制器CTR根据第四交换机ES4与第七交换机ES7的SNMP Trap通知判断可能是交换机(Switch)故障事件,可迅速的采用预先计算的备份路径,以快速复原网络100的传输。Please refer to FIG. 1C , which is used to illustrate the notification method of a switch (Switch) failure event in the recovery mechanism of the implementation example of the present disclosure. In this embodiment, due to the sixth switch ES6 failure event, it may be because the sixth switch is damaged or the sixth switch is overloaded, which causes the sixth switch ES6 to fail to transfer packets, resulting in the fourth switch ES4 and the seventh switch ES7 , the link (Link) established between the two and the sixth switch ES6 cannot communicate. Therefore, the fourth switch ES4 and the seventh switch ES7 will send a link interruption notification message to notify the controller CTR. In one embodiment, the notification method such as an SNMP abnormal status notification signal SNMP Trap can be used to notify the controller CTR. According to the SNMP Trap notifications from the fourth switch ES4 and the seventh switch ES7, the controller CTR judges that it may be a switch failure event, and can quickly adopt the pre-calculated backup path to quickly restore the transmission of the network 100 .

控制器CTR如何判断为第六交换机ES6的交换机(Switch)故障事件,在一个实施范例中可利用控制器CTR与第六交换机ES6之间以构成通连的协议(Protocols)来判断第六交换机ES6是否中断,例如互联网控制管理协议(Internet Control Management Protocol,ICMP)、OpenFlow协议、Telnet通信协议、SSH(Secure Shell)远端登录协议应用、简易网络管理协议(SNMP)或是地址解析协议(Address Resolution Protocol,ARP)等等。在此实施例是采用互联网控制管理协议(ICMP)。How does the controller CTR determine that it is a switch (Switch) failure event of the sixth switch ES6? In one implementation example, the protocol (Protocols) that forms a connection between the controller CTR and the sixth switch ES6 can be used to determine the sixth switch ES6 Whether it is interrupted, such as Internet Control Management Protocol (Internet Control Management Protocol, ICMP), OpenFlow protocol, Telnet communication protocol, SSH (Secure Shell) remote login protocol application, Simple Network Management Protocol (SNMP) or Address Resolution Protocol (Address Resolution) Protocol, ARP) and so on. In this embodiment, the Internet Control Management Protocol (ICMP) is used.

本公开的范例实施例所提出在混合式软件定义网络(Hybrid SDN)架构中虚拟局域网络复原方法,针对错误事件的处理,可以分为物理交换机方面或是软件定义的交换机方面。在物理交换机(例如以太网络交换机)方面,只要事先在物理交换机设定例如SNMP异常状况通知信号SNMP Trap,当有链路(Link)故障事件发生时,物理交换机就会利用SNMP Trap通知控制器。而若是物理交换机(Switch)故障事件发生时,则因为物理交换机本身无法发出任何通知给控制器,因此须仰赖此物理交换机附近的邻居告诉控制器发生链路(Link)故障了,而由控制器来判断物理交换机是否存活,例如直接用ICMP来判断是否有响应。The virtual local area network restoration method proposed in the exemplary embodiments of the present disclosure in a hybrid software-defined network (Hybrid SDN) architecture can be divided into a physical switch or a software-defined switch for handling error events. In terms of physical switches (such as Ethernet switches), as long as the SNMP abnormal status notification signal SNMP Trap is set in the physical switch in advance, when a link (Link) failure event occurs, the physical switch will use SNMP Trap to notify the controller. And if a physical switch (Switch) failure event occurs, because the physical switch itself cannot send any notification to the controller, it must rely on the neighbors near the physical switch to tell the controller that a link (Link) failure has occurred, and the controller To determine whether the physical switch is alive, for example, directly use ICMP to determine whether there is a response.

而上述的链路(Link)故障事件或是交换机(Switch)故障事件,若是发生在软件定义的交换机,例如图示中的第一到第二软件定义的交换机SDNS1~SDNS2时,则软件定义的交换机可以例如利用OpenFlow模块发出链路中断通知讯息通报控制器。当有链路(Link)故障事件发生时,软件定义的交换机会直接利用例如链路故障通知讯息(Link Failure Notification)通知控制器。而对于软件定义的交换机故障事件,控制器与软件定义的交换机定期交换信息以确认软件定义的交换机是否还正常运作,也就是保持运作(Keep alive)的信息。如果发现软件定义的交换机故障事件时,也就是无法取得保持运作(Keep alive)的确认信息时,控制器就会自动认定是软件定义的交换机(Switch)故障。底下将以实际范例说明本公开的范例实施的虚拟局域网络复原方法。And above-mentioned link (Link) failure event or switch (Switch) failure event, if occur in software-defined switch, when for example the first to second software-defined switch SDNS1~SDNS2 in the figure, then software-defined The switch can, for example, use the OpenFlow module to send a link interruption notification message to notify the controller. When a link failure event occurs, the software-defined switch will directly notify the controller by using, for example, a link failure notification message (Link Failure Notification). As for the failure event of the software-defined switch, the controller and the software-defined switch periodically exchange information to confirm whether the software-defined switch is still operating normally, that is, keep alive information. If a software-defined switch failure event is detected, that is, when the confirmation information for keeping alive cannot be obtained, the controller will automatically identify the failure of the software-defined switch (Switch). The virtual local area network restoration method implemented by the example of the present disclosure will be described below with a practical example.

图1D是根据本公开的多个范例实施例之一所绘示在混合式软件定义网络(Hybrid SDN)架构中虚拟局域网络复原方法的流程示意图。FIG. 1D is a schematic flowchart of a virtual local area network restoration method in a hybrid software-defined network (Hybrid SDN) architecture according to one of the exemplary embodiments of the present disclosure.

本实施例的虚拟局域网络复原方法适用于例如图1A混合式软件定义网络(Hybrid SDN)架构的网络100。此网络100包括控制器CTR与交换机110,此交换机110可为例如图1A的物理交换机ES1~ES7其中之一,或是软件定义的交换机SDNS1~SDNS2其中之一或其他在网络100内的任何交换机。本实施的虚拟局域网络复原方法,首先,在步骤S110中,控制器CTR基于网络预先计算一备份路径表。交换机110根据虚拟局域网络的连接故障而产生一事件通知讯息111传送到控制器CTR。控制器CTR对应于此事件通知讯息111而基于预先计算完成的备份路径表启动一链路故障处理流程,如步骤S114,并同时进行一检查流程,如步骤S116,以检查是否为交换机故障事件。The virtual local area network recovery method of this embodiment is applicable to the network 100 of the hybrid software-defined network (Hybrid SDN) architecture in FIG. 1A , for example. The network 100 includes a controller CTR and a switch 110. The switch 110 can be, for example, one of the physical switches ES1-ES7 in FIG. 1A , or one of the software-defined switches SDNS1-SDNS2 or any switch in the network 100 . In the virtual local area network recovery method implemented in this embodiment, firstly, in step S110, the controller CTR pre-calculates a backup path table based on the network. The switch 110 generates an event notification message 111 and sends it to the controller CTR according to the connection failure of the virtual local area network. Corresponding to the event notification message 111, the controller CTR starts a link fault processing process based on the pre-calculated backup path table, such as step S114, and simultaneously performs a checking process, such as step S116, to check whether it is a switch fault event.

若步骤S116的检查流程得到的检查结果指出为交换机故障事件,则如步骤S118,回复经由链路故障处理流程变更的设定,并如步骤S120进行一交换机故障处理流程,以便根据备份路径表中对应虚拟局域网络的连接故障的一路径重新建立虚拟局域网络。在一个实施例中,若是步骤S114的链路故障处理流程尚未进行,而步骤S116的检查流程得到的检查结果指出为交换机故障事件,则也可停止链路故障处理流程,不需要进行步骤S118的回复经由链路故障处理流程变更的设定。若是步骤S116的检查流程得到的检查结果指出并非上述交换机故障事件,则停止此检查流程,如步骤S124。If the inspection result obtained by the inspection process of step S116 indicates that it is a switch failure event, then as in step S118, the setting changed through the link failure processing flow is returned, and a switch failure processing process is carried out as in step S120, so that according to the backup path table A path corresponding to the connection failure of the virtual local area network is re-established in the virtual local area network. In one embodiment, if the link fault handling process in step S114 has not been carried out, and the inspection result obtained in the checking process in step S116 indicates that it is a switch failure event, then the link fault handling process can also be stopped, and there is no need to perform step S118 Reverts the settings changed via the link failure handling process. If the inspection result obtained in the inspection process of step S116 indicates that it is not the above-mentioned switch failure event, the inspection process is stopped, as in step S124.

图2A是根据本公开的一范例实施例所绘示的在混合式软件定义网络(Hybrid SDN)架构中虚拟局域网络复原方法的流程示意图。当混合式软件定义网络(Hybrid SDN)最初被建立时,控制器210计算网络中的节点之间的路由(route)路径,并将所计算的路由路径通过例如SNMP通信协议和/或OpenFlow通信协议分别对物理交换机(例如以太网络交换机)进行设定或对软件定义的交换机进行设定。而本实施例所公开的虚拟局域网络复原方法中,控制器210会预先计算备份路径表,并加以存储(如步骤S230)。此备份路径表例如可以包括链路故障备份路径表以及交换机故障备份路径表。控制器210会持续在网络中监听是否有链路故障事件发生。交换机220若是遇到链路故障事件发生,则将发出一事件通知讯息通知控制器210。例如,交换机220若是遇到链路故障事件发生时,则会发出链路中断通知讯息(Link DownNotification)221的讯息通知控制器210。。此链路中断通知讯息(Link DownNotification)221若是由物理交换机(例如以太网络交换机)发出时,则可通过例如SNMP Trap发出此通知。若是发生在软件定义的交换机,则可通过例如OpenFlow模块发出链路中断通知讯息。FIG. 2A is a schematic flowchart of a virtual local area network recovery method in a hybrid software-defined network (Hybrid SDN) architecture according to an exemplary embodiment of the present disclosure. When the hybrid software-defined network (Hybrid SDN) is initially established, the controller 210 calculates the routing (route) path between the nodes in the network, and passes the calculated routing path through, for example, the SNMP communication protocol and/or the OpenFlow communication protocol The settings are made separately for a physical switch (such as an Ethernet switch) or for a software-defined switch. In the virtual local area network restoration method disclosed in this embodiment, the controller 210 pre-calculates the backup path table and stores it (such as step S230). The backup path table may include, for example, a link failure backup path table and a switch failure backup path table. The controller 210 will continuously monitor whether there is a link failure event in the network. If the switch 220 encounters a link failure event, it will send an event notification message to notify the controller 210 . For example, if the switch 220 encounters a link failure event, it will send a link down notification message (Link DownNotification) 221 to notify the controller 210 . . If the link down notification message (Link DownNotification) 221 is sent by a physical switch (such as an Ethernet switch), the notification can be sent through, for example, an SNMP Trap. If it occurs in a software-defined switch, a link interruption notification message can be sent through, for example, an OpenFlow module.

在网络中持续监听的控制器210能够得知是否有链路故障事件发生。在收到链路中断通知讯息221后(如步骤S232),将利用过滤器(Filter)对链路中断通知讯息221进行过滤(如步骤S234)。此过滤器(Filter)可以是控制器210内的一软件模块,而对于链路中断通知讯息221进行过滤的原因是因为若是对于同一链路故障事件或可能是交换机故障事件,若是交换机故障事件则此链路两端的交换机都会发出链路中断通知讯息,此可避免重复处理同一链路故障事件或是误判。The controller 210, which is constantly listening in the network, can know whether there is a link failure event. After receiving the link interruption notification message 221 (such as step S232), the link interruption notification message 221 will be filtered by a filter (such as step S234). This filter (Filter) can be a software module in the controller 210, and the reason for filtering the link interruption notification message 221 is because if it is the same link failure event or it may be a switch failure event, if it is a switch failure event then The switches at both ends of the link will send a link interruption notification message, which can avoid repeated processing of the same link failure event or misjudgment.

接着,进行链路中断处理流程(如步骤S236),例如对于交换机内的虚拟局域网络(VLAN)重新布建传输的端口,也就是对于在路径上的交换机所使用的VLAN传输的端口进行重新布建。为了节省链路故障事件处理的时间,当收到链路故障事件的通知之后,马上把相应的备份路径布建至网络上。Then, carry out the link interruption processing flow (such as step S236), for example, reconfigure the port of transmission for the virtual local area network (VLAN) in the switch, that is, redistribute the port for the VLAN transmission used by the switch on the path establish. In order to save the processing time of the link failure event, after receiving the notification of the link failure event, immediately deploy the corresponding backup path to the network.

但是此链路故障事件亦有可能是由交换机故障事件产生,因此,本方法除了原来处理链路故障事件的执行绪(Thread)之外,还会另外开一个执行绪(Thread),在布建的同时,确认交换机是否存活。However, this link failure event may also be generated by a switch failure event. Therefore, in addition to the original execution thread (Thread) that handles link failure events, this method will also open another execution thread (Thread). At the same time, confirm whether the switch is alive.

在确认交换机是否存活的步骤(如步骤S238)中,控制器210会确认交换机是否存活。针对物理交换机(例如以太网络交换机)而言,因为物理交换机本身无法发出任何通知给控制器210,因此须仰赖此物理交换机附近的交换机告诉控制器210发生链路(Link)故障了,而由控制器210来判断物理交换机是否存活,例如控制器210发出互联网控制管理协议(ICMP)分组,以确认链路故障的两端的交换机是否响应ICMP分组。上述的ICMP分组也可采用其他类型协议的分组来检测,例如OpenFlow协议、Telnet通信协议、SSH(SecureShell)远端登录协议应用、简易网络管理协议(SNMP)或是地址解析协议(ARP)等等协议的分组。针对软件定义的交换机而言,控制器210会定期与软件定义的交换机交换信息已确认是否还正常运作,也就是保持运作(Keep alive)的信息。如果发现软件定义的交换机故障事件时,也就是无法取得保持运作(Keep alive)的确认信息时,控制器210就会自动认定是软件定义的交换机(Switch)故障。In the step of confirming whether the switch is alive (such as step S238), the controller 210 will confirm whether the switch is alive. For a physical switch (such as an Ethernet switch), because the physical switch itself cannot send any notification to the controller 210, it must rely on the switches near the physical switch to tell the controller 210 that a link (Link) failure has occurred, and the control The controller 210 is used to determine whether the physical switch is alive. For example, the controller 210 sends an Internet Control Management Protocol (ICMP) packet to confirm whether the switches at both ends of the link failure respond to the ICMP packet. The above-mentioned ICMP packets can also be detected by packets of other types of protocols, such as OpenFlow protocol, Telnet communication protocol, SSH (SecureShell) remote login protocol application, Simple Network Management Protocol (SNMP) or Address Resolution Protocol (ARP), etc. Grouping of protocols. For the software-defined switch, the controller 210 periodically exchanges information with the software-defined switch to confirm whether it is still in normal operation, that is, keep alive information. If a software-defined switch failure event is detected, that is, when the confirmation information of keep alive cannot be obtained, the controller 210 will automatically identify the software-defined switch (Switch) failure.

接着,控制器210会进行确认交换机是否中断(如步骤S240),确认交换机是否存活。如果控制器210发现是交换机故障,则系统会回复(Roll Back)链路中断所进行设定的变更(如步骤S242),也就是针对链路中断所进行的处理流程中所进行设定的变还将给予回复。因为若是针对交换机故障,则先前针对链路中断所进行的备份路径的布建将会产生错误,因此需要进行复原。而后进行交换机中断处理的流程(如步骤S244),针对交换机故障的情况,从预先计算的交换机故障备份路径表中找到适当的路由路径而布建此备份路径至网络中。例如对于交换机内的虚拟局域网络(VLAN)重新布建传输的端口,以便排除故障的交换机,也就是对于在路径上的其他交换机所使用的VLAN传输端口进行重新布建。而后再进行重新计算新的备份路径(如步骤S246)。Next, the controller 210 will confirm whether the switch is disconnected (such as step S240), and confirm whether the switch is alive. If the controller 210 finds that it is a switch failure, the system will reply (Roll Back) the change of the link interruption (such as step S242), that is, the change of the setting in the processing flow for the link interruption. A reply will also be given. Because if it is for the failure of the switch, the deployment of the backup path previously performed for the link interruption will generate an error, so recovery needs to be performed. Then perform the process of switch interruption processing (such as step S244), in the case of switch failure, find an appropriate routing path from the pre-calculated switch failure backup path table and deploy the backup path to the network. For example, the virtual local area network (VLAN) in the switch reconfigures the transmission ports so as to troubleshoot the switch, that is, reconfigures the VLAN transmission ports used by other switches on the path. Then recalculate a new backup path (such as step S246).

如果控制器210发现确定是链路故障,则系统会接着进行重新计算新的备份路径(如步骤S246),包括链路故障以及交换机故障的备份路径,并分别重新更新到链路故障备份路径表以及交换机故障备份路径表。If the controller 210 finds that it is determined to be a link failure, then the system will then recalculate a new backup path (such as step S246), including the backup paths of link failure and switch failure, and re-update the link failure backup path table respectively And switch failure backup path table.

图2B是根据本公开的又一范例实施例所绘示的在混合式软件定义网络(Hybrid SDN)架构中虚拟局域网络复原方法的流程示意图。基本上进行的步骤与图2A相同标号进行相同或类似的步骤,在此不再冗述,但进行的顺序不同。主要差异在于确认交换机是否存活的步骤(如步骤S238)后,如果控制器210发现是交换机故障,则系统会回复(Roll Back)链路中断所进行设定的变更(如步骤S242)。而后进行交换机中断处理的流程(如步骤S244),针对交换机故障的情况,从预先计算的交换机故障备份路径表中找到适当的路由路径而布建此备份路径至网络中。而后再进行重新计算新的备份路径(如步骤S246),并且重新回到步骤S232,检测是否收到链路中断通知讯息221后。在图2B的实施例中,若是链路中断处理流程(步骤S236)尚未进行,而确认交换机是否存活的步骤(如步骤S238)得到的检查结果指出为交换机故障,则也可停止链路中断处理流程(步骤S236),不需要进行回复(Roll Back)链路中断所进行设定的变更(步骤S242)。若是确认交换机是否存活的步骤(如步骤S238)得到的检查结果指出为并非上述交换机故障事件,则停止此检查流程。FIG. 2B is a schematic flowchart of a virtual local area network recovery method in a hybrid software-defined network (Hybrid SDN) architecture according to yet another exemplary embodiment of the present disclosure. Basically, the same or similar steps are performed with the same reference numerals as in FIG. 2A , and will not be repeated here, but the order of execution is different. The main difference is that after the step of confirming whether the switch is alive (such as step S238), if the controller 210 finds that the switch is faulty, the system will roll back (Roll Back) the change of the settings made when the link is interrupted (such as step S242). Then perform the process of switch interruption processing (such as step S244), in the case of switch failure, find an appropriate routing path from the pre-calculated switch failure backup path table and deploy the backup path to the network. Then recalculate a new backup path (such as step S246), and return to step S232 to detect whether the link interruption notification message 221 is received. In the embodiment of FIG. 2B, if the link interruption processing flow (step S236) has not been carried out, and the check result obtained in the step of confirming whether the switch is alive (such as step S238) indicates that the switch is faulty, then the link interruption processing can also be stopped In the process (step S236), there is no need to change the setting of the Roll Back (Roll Back) link interruption (step S242). If the checking result obtained in the step of confirming whether the switch is alive (such as step S238) indicates that it is not the above-mentioned switch failure event, then stop the checking process.

底下将以图3A~3C配合实际范例说明本公开内容的混合式软件定义网络(Hybrid SDN)架构中,控制器与多个交换机之间进行虚拟局域网络复原方法的实施范例,但并非以此为限制。3A-3C will be used in conjunction with actual examples to illustrate the implementation example of the virtual local area network recovery method between the controller and multiple switches in the hybrid software-defined network (Hybrid SDN) architecture of the present disclosure, but it is not intended to be used as an example. limit.

请参照图3A~3C,在此实施例中,建构在混合式软件定义网络(HybridSDN)架构下的网络300至少包括第一交换机310、第二交换机312、第三交换机314、第四交换机316、第五交换机318、第六交换机320、以及控制器340。控制器340可以通过简单网络管理协议(SNMP)或是命令列接口(CLI)的指令来控制物理交换机,而利用OpenFlow模块来控制物理机器中的软件可定义的交换机。例如在此实施例中,控制器340可以控制第一交换机310、第二交换机312、第三交换机314、第四交换机316、第五交换机318、以及第六交换机320,但并非以此为限制。Please refer to FIGS. 3A to 3C. In this embodiment, a network 300 constructed under a hybrid software-defined network (HybridSDN) architecture includes at least a first switch 310, a second switch 312, a third switch 314, a fourth switch 316, The fifth switch 318 , the sixth switch 320 , and the controller 340 . The controller 340 can control the physical switch through commands of Simple Network Management Protocol (SNMP) or Command Line Interface (CLI), and use the OpenFlow module to control the software-definable switch in the physical machine. For example, in this embodiment, the controller 340 can control the first switch 310 , the second switch 312 , the third switch 314 , the fourth switch 316 , the fifth switch 318 , and the sixth switch 320 , but it is not limited thereto.

请参考图3A,用以说明本公开内容多个实施范例其中之一的网络300架构下的多个交换机之间已经布建的虚拟局域网络(VLAN)路由,以及预先计算的备份路径表范例示意图。第一交换机310、第二交换机312、第三交换机314、第四交换机316、第五交换机318以及第六交换机320之间所建构了虚拟局域网络(VLAN)路由的主要路径331。此VLAN的主要路径331至少经由第一交换机310、第三交换机314、第五交换机318到第六交换机320,以及经由第一交换机310、第三交换机314到第四交换机316。而在本公开内容中的实施范例中,控制器340预先为所有链路(Link)及交换机(Switch)的故障事件计算备份路径(Backup Path),完成预先计算备份路径表342并存至控制器340的存储装置或元件内。Please refer to FIG. 3A , which is used to illustrate a schematic diagram of an example of a virtual local area network (VLAN) route that has been deployed among multiple switches under the network 300 architecture of one of the multiple implementation examples of the present disclosure, and a pre-calculated backup path table. . A virtual local area network (VLAN) routing main path 331 is constructed among the first switch 310 , the second switch 312 , the third switch 314 , the fourth switch 316 , the fifth switch 318 and the sixth switch 320 . The primary path 331 of this VLAN is at least to the sixth switch 320 via the first switch 310 , the third switch 314 , the fifth switch 318 , and to the fourth switch 316 via the first switch 310 , the third switch 314 . In the implementation example in this disclosure, the controller 340 pre-calculates the backup path (Backup Path) for all link (Link) and switch (Switch) failure events, completes the pre-calculated backup path table 342 and saves it to the controller 340 storage device or component.

例如,如图3A所示,预先计算备份路径表342包括所有链路故障以及所有交换机故障的备份路径信息,这些信息可以存储为链路故障备份路径表及交换机故障备份路径表。如图所示的多个实施范例之一,备份路径表342包括链路(Link)332故障或是毁损时对应的备份路径333以及第五交换机318故障或是毁损时对应的备份路径335,此仅为实施范例,并非以此为限制。备份路径表342包括了混合式软件定义网络(Hybrid SDN)架构下的网络300中所有链路故障以及所有交换机故障的备份路径信息,并且在故障事件发生后,在重新建立网络300中的拓扑后,控制器340也会同时重新计算所有链路(Link)及交换机(Switch)的故障事件计算备份路径(Backup Path),并且更新备份路径表342。For example, as shown in FIG. 3A , the pre-calculated backup path table 342 includes backup path information of all link failures and all switch failures, and these information can be stored as a link failure backup path table and a switch failure backup path table. In one of the multiple implementation examples shown in the figure, the backup path table 342 includes the backup path 333 corresponding to the failure or damage of the link (Link) 332 and the backup path 335 corresponding to the failure or damage of the fifth switch 318. This is an implementation example only, not a limitation. The backup path table 342 includes the backup path information of all link failures and all switch failures in the network 300 under the hybrid software-defined network (Hybrid SDN) architecture, and after the failure event occurs, after re-establishing the topology in the network 300 , the controller 340 will also recalculate the backup path (Backup Path) for failure events of all links (Link) and switches (Switch) at the same time, and update the backup path table 342 .

当例如图示的第一交换机310与第三交换机314之间的链路(Link)332故障或是毁损时,经过第一交换机310和/或第三交换机314通知控制器340,而控制器340确认后直接布建路径333,也就是经由第一交换机310、第二交换机312、第四交换机316、第三交换机314、第五交换机318到第六交换机320。在布建的程序中,将对于交换机内的虚拟局域网络(VLAN)重新布建传输的端口,也就是对于在原主要路径331上的交换机所使用的VLAN传输端口重新布建,而改采用路径333中所规划各交换机内所使用的VLAN传输端口。因此,取得备份路径信息之后,会产生一个布建时的链路故障或是交换机故障的备份路径表,而根据此备份路径表进行例如移除在交换机内的VLAN传输端口或是新增交换机内的VLAN传输端口,已完成路径333的布建。When, for example, the link (Link) 332 between the illustrated first switch 310 and the third switch 314 fails or is damaged, the controller 340 is notified through the first switch 310 and/or the third switch 314, and the controller 340 After confirmation, the path 333 is directly deployed, that is, to the sixth switch 320 via the first switch 310 , the second switch 312 , the fourth switch 316 , the third switch 314 , and the fifth switch 318 . In the deployment procedure, the port for the virtual local area network (VLAN) in the switch will be re-deployed, that is, the VLAN transmission port used by the switch on the original main path 331 will be re-deployed, and the path 333 will be used instead. The VLAN transmission ports used in each switch planned in . Therefore, after obtaining the backup path information, a backup path table for link failure or switch failure during deployment will be generated, and based on this backup path table, for example, remove the VLAN transmission port in the switch or add a new switch. Route 333 has been deployed on the VLAN transmission port.

请参照图3B,用以说明本公开内容多个实施范例其中之一,在多个交换机之间已经布建的虚拟局域网络(VLAN)路由发生错误事件时,切换路由到预先计算的备份路径的范例示意图。若是第五交换机318故障或是损坏时,则原来虚拟局域网络(VLAN)路由的路径331将出现问题。因此可能经由第三交换机314、第六交换机320和/或其他交换机通知控制器340之后,控制器340确认是交换机318故障或是毁损,根据预先计算备份路径表342直接布建路径335,也就是经由第一交换机310、第三交换机314、第四交换机316到第六交换机320。在布建的程序中,将对在原路径331上的交换机所使用的VLAN传输端口重新布建,改采用路径335使用的VLAN传输端口。Please refer to FIG. 3B , which is used to illustrate one of the multiple implementation examples of the present disclosure. When an error event occurs in a virtual local area network (VLAN) route that has been deployed between multiple switches, the route is switched to a pre-calculated backup path. Example schematic. If the fifth switch 318 fails or is damaged, the path 331 of the original virtual local area network (VLAN) route will have problems. Therefore, after the controller 340 may be notified via the third switch 314, the sixth switch 320 and/or other switches, the controller 340 confirms that the switch 318 is faulty or damaged, and directly deploys the path 335 according to the pre-calculated backup path table 342, that is, via the first switch 310 , the third switch 314 , the fourth switch 316 to the sixth switch 320 . In the deployment procedure, the VLAN transmission port used by the switch on the original path 331 will be re-deployed, and the VLAN transmission port used by the path 335 will be used instead.

请参照图4A~4C,用以说明本公开内容多个实施范例其中之一,在多个交换机之间已经布建的虚拟局域网络(VLAN)路由发生错误事件并切换路由到预先计算的备份路径时,路径上的交换机切换到对应的VLAN传输端口的范例示意图,其中图4A是以图3A~3B实施范例的网络300下的多个交换机之间已经布建的虚拟局域网络(VLAN)路由架构进行说明,而图4B与4C分别说明控制器预先为所有链路(Link)及交换机(Switch)的故障事件计算备份路径(Backup Path)。图4A与图3A~3B中相同元件采用相同标号说明,在此不再冗述。在此网络300中,虚拟局域网络(VLAN)Vlan10已经布建路由主要路径331,包括经由第一交换机310的端口1、第三交换机314的端口1与端口3、第五交换机318的端口1与端口2、以及第六交换机320的端口2。Please refer to FIGS. 4A-4C , which are used to illustrate one of the multiple implementation examples of the present disclosure. An error event occurs in a virtual local area network (VLAN) route that has been deployed between multiple switches and the route is switched to a pre-calculated backup path. , the switches on the path are switched to the corresponding VLAN transmission ports, wherein FIG. 4A is a virtual local area network (VLAN) routing architecture that has been deployed between multiple switches under the network 300 in the implementation example of FIGS. 3A-3B For illustration, FIG. 4B and FIG. 4C illustrate that the controller pre-calculates backup paths (Backup Path) for all link (Link) and switch (Switch) failure events. The same components in FIG. 4A and FIGS. 3A-3B are described with the same reference numerals, and will not be repeated here. In this network 300, a virtual local area network (VLAN) Vlan10 has been deployed with a routing primary path 331, including port 1 and port 3 of the third switch 314, port 1 and port 3 of the fifth switch 318 via the first switch 310. port 2, and port 2 of the sixth switch 320 .

请先参照图4A与图4B,当第一交换机310与第三交换机314之间的链路(Link)332故障或是毁损时,也就是例如虚拟局域网络(VLAN)Vlan10无法使用。经过第一交换机310和/或第三交换机314通知控制器340(请参照图3B),接着,控制器340确认例如虚拟局域网络Vlan10改布建到路径333,也就是经由第一交换机310、第二交换机312、第四交换机316、第三交换机314、第五交换机318到第六交换机320。在布建的程序中,交换机对于Vlan10重新布建传输端口,也就是对于在原路径331上的交换机所使用的Vlan10传输端口重新布建,而改采用路径333中所规划各交换机内所使用的VLAN传输端口。Please refer to FIG. 4A and FIG. 4B first, when the link (Link) 332 between the first switch 310 and the third switch 314 fails or is damaged, that is, for example, the virtual local area network (VLAN) Vlan10 cannot be used. Notify the controller 340 (please refer to FIG. 3B ) through the first switch 310 and/or the third switch 314, and then, the controller 340 confirms that, for example, the virtual local area network Vlan10 is reconfigured to the path 333, that is, via the first switch 310, the second switch The second switch 312 , the fourth switch 316 , the third switch 314 , the fifth switch 318 to the sixth switch 320 . In the deployment procedure, the switch reconfigures the transmission port for Vlan10, that is, the Vlan10 transmission port used by the switch on the original path 331 is reconfigured, and the VLAN used in each switch planned in the path 333 is used instead. transport port.

在一实施例中,请参照图4B,根据预先演算的链路(Link)故障事件备份路径表410,对应于Vlan10的链路(Link)332的备份路径333中的内容包括(1)从第一交换机310的端口2切换到第二交换机312的端口2;(2)从第二交换机312的端口1切换到第四交换机316的端口1;(3)从第四交换机316的端口2切换到第三交换机314的端口2;(4)从第三交换机314的端口3切换到第五交换机318的端口1;以及(5)从第五交换机318的端口2切换到第六交换机320的端口2。In one embodiment, please refer to FIG. 4B, according to the pre-calculated link (Link) failure event backup path table 410, the content corresponding to the backup path 333 of the link (Link) 332 of Vlan10 includes (1) from the first Port 2 of a switch 310 is switched to port 2 of the second switch 312; (2) switched from port 1 of the second switch 312 to port 1 of the fourth switch 316; (3) switched from port 2 of the fourth switch 316 to Port 2 of the third switch 314; (4) switch from port 3 of the third switch 314 to port 1 of the fifth switch 318; and (5) switch from port 2 of the fifth switch 318 to port 2 of the sixth switch 320 .

请接着参照图4A与图4C,若是第五交换机318故障或是损坏时,则原来虚拟局域网络Vlan10路由的主要路径331将出现问题。因此可能经由第三交换机314、第六交换机320和/或其他交换机通知控制器340之后,控制器340确认是第五交换机318故障或是毁损,根据预先计算备份路径表342直接布建路径335,也就是经由第一交换机310、第三交换机314、第四交换机316到第六交换机320。在布建的程序中,将对在原路径331上的交换机所使用的VLAN传输端口重新布建,改采用路径335使用的Vlan10传输端口。Please refer to FIG. 4A and FIG. 4C , if the fifth switch 318 fails or is damaged, the original primary path 331 of the virtual local area network Vlan10 route will have problems. Therefore, after the controller 340 may be notified via the third switch 314, the sixth switch 320 and/or other switches, the controller 340 confirms that the fifth switch 318 is faulty or damaged, and directly deploys the path 335 according to the pre-calculated backup path table 342, That is, to the sixth switch 320 via the first switch 310 , the third switch 314 , and the fourth switch 316 . In the deployment procedure, the VLAN transmission port used by the switch on the original path 331 will be re-deployed, and the Vlan10 transmission port used by the path 335 will be used instead.

在一实施例中,请参照图4C,根据预先演算的交换机故障备份路径表420,对应于Vlan10的第五交换机318故障事件的备份路径335中的内容包括(1)从第一交换机310的端口1切换到第三交换机314的端口1;(2)从第三交换机314的端口2切换到第四交换机316的端口2;以及(3)从第四交换机316的端口3切换到第六交换机320的端口1。In one embodiment, please refer to FIG. 4C, according to the pre-calculated switch failure backup path table 420, the content in the backup path 335 corresponding to the failure event of the fifth switch 318 of Vlan10 includes (1) from the port of the first switch 310 1 is switched to port 1 of the third switch 314; (2) switched from port 2 of the third switch 314 to port 2 of the fourth switch 316; and (3) switched from port 3 of the fourth switch 316 to the sixth switch 320 port 1.

根据本公开内容所提出在混合式软件定义网络(Hybrid SDN)架构中,控制器与多个交换机之间进行虚拟局域网络复原方法的实施范例,利用SDN集中管理的特性,预先计算每个虚拟局域网络(VLAN)所有链路(Link)及交换机(Switch)的故障事件计算备份路径(Backup Path)。当有链路(Link)或交换机(Switch)的故障事件发生的时候,控制器能够藉由收到故障事件,布建相应的备份路径,例如采用图4B与图4C的链路故障事件备份路径表410或是交换机故障备份路径表420进行重新布建,以免去修复虚拟局域网络(VLAN)路径所需的收敛时间,达到混合式软件定义网络架构中快速复原机制,提高数据传送的可靠度。According to the implementation example of the virtual local area network recovery method between the controller and multiple switches in the hybrid software-defined network (Hybrid SDN) architecture proposed in this disclosure, the characteristics of SDN centralized management are used to pre-calculate each virtual local area network Calculate the backup path (Backup Path) based on the failure events of all links (Link) and switches (Switch) of the network (VLAN). When a link (Link) or switch (Switch) failure event occurs, the controller can deploy a corresponding backup path by receiving the failure event, for example, using the link failure event backup path shown in Figure 4B and Figure 4C The table 410 or the switch failure backup path table 420 is re-deployed to avoid the convergence time required to repair the virtual local area network (VLAN) path, achieve a fast recovery mechanism in the hybrid software-defined network architecture, and improve the reliability of data transmission.

而在本公开内容所提出的虚拟局域网络复原方法中,根据链路故障事件备份路径表410或是交换机故障备份路径表420,在链路故障或是交换机故障的重新布建路由路径时,必须注意移除或是新增VLAN传输端口的顺序,以避免产生例如网络的回路(loop)风险。因此,采用图4B的链路故障事件备份路径表410进行重新布建,必须完成例如布建时的链路故障事件备份路径表510(如图5A所示)。而采用图4C的交换机故障备份路径表420进行重新布建时,必须完成例如布建时的交换机故障备份路径表(如图5B所示)。In the virtual local area network recovery method proposed in this disclosure, according to the link failure event backup path table 410 or the switch failure backup path table 420, when the link failure or the switch failure re-deploys the routing path, it must Pay attention to the order of removing or adding VLAN transmission ports, so as to avoid the risk of network loops (loop). Therefore, for re-deployment using the link failure event backup path table 410 in FIG. 4B , for example, the link failure event backup path table 510 (as shown in FIG. 5A ) must be completed during deployment. When using the switch failure backup path table 420 in FIG. 4C for re-deployment, for example, the switch failure backup path table (as shown in FIG. 5B ) must be completed during deployment.

请参照图5A,此布建时的链路故障事件备份路径表510,采用图4B的链路故障事件备份路径表410进行重新布建时,包括(1)从第一交换机310的端口1移除Vlan10;(2)从第三交换机314的端口1移除Vlan10;(3)从第一交换机310的端口2加入Vlan10;(4)从第二交换机312的端口2加入Vlan10;(5)从第二交换机312的端口1加入Vlan10;以及(6)从第四交换机316的端口1加入Vlan10。Please refer to FIG. 5A, the link fault event backup path table 510 during deployment, when using the link fault event backup path table 410 in FIG. Except Vlan10; (2) remove Vlan10 from port 1 of the third switch 314; (3) add Vlan10 from port 2 of first switch 310; (4) add Vlan10 from port 2 of second switch 312; (5) add Vlan10 from port 2 of first switch 310; Port 1 of the second switch 312 is added to Vlan10; and (6) Port 1 of the fourth switch 316 is added to Vlan10.

请参照图5B,此布建时的交换机故障事件备份路径表520,此实施例为第五交换机318故障或是损坏,采用图4C的交换机故障事件备份路径表420进行重新布建时,包括(1)从第三交换机314的端口3移除Vlan10;(2)从第六交换机320的端口2移除Vlan10;(3)从第四交换机316的端口3加入Vlan10;以及(4)从第六交换机320的端口1加入Vlan10。Please refer to FIG. 5B, the switch fault event backup path table 520 during deployment. In this embodiment, the fifth switch 318 is faulty or damaged. When using the switch fault event backup path table 420 in FIG. 4C for re-deployment, it includes ( 1) remove Vlan10 from port 3 of the third switch 314; (2) remove Vlan10 from port 2 of the sixth switch 320; (3) add Vlan10 from port 3 of the fourth switch 316; Port 1 of switch 320 joins Vlan10.

本公开内容所提出实施范例的虚拟局域网络复原方法,适用于混合式软件定义网络(Hybrid SDN)的架构。而建构在混合式软件定义网络(Hybrid SDN)架构下的网络可采用简单网络管理协议(SNMP)或是命令列接口(CLI)的指令来控制物理交换机,而利用OpenFlow模块来控制物理机器中的软件可定义的交换机。而简单网络管理协议(SNMP)的分组格式请参照图6所示,在SNMP的分组中,包括例如版本信息(Version)610、群组名称(CommunityName)612以及协议数据单元(Protocol Data Unit,PDU)614。协议数据单元(PDU)614包括PDU类别(PDU Type)621、请求ID(Request ID)622、错误状态(Error Status)623、错误指标(Error Index)624以及多个物件识别码(ObjectIdentifiers,OIDs)625。多个物件识别码(OIDs)625可包括例如个别的物件识别码(OID)631~635等等。简单网络管理协议(SNMP)的管理者会根据个别的物件识别码,例如图示的物件识别码(OID)631~635,告知对应的交换机如何设定,不同的交换机有不同的设定方式,而可以达到本公开内容所提出虚拟局域网络复原的布建流程。The virtual local area network recovery method of the implementation example proposed in this disclosure is applicable to the architecture of a hybrid software-defined network (Hybrid SDN). The network built under the hybrid software-defined network (Hybrid SDN) architecture can use Simple Network Management Protocol (SNMP) or Command Line Interface (CLI) commands to control physical switches, and use OpenFlow modules to control physical switches. Software-definable switches. For the grouping format of Simple Network Management Protocol (SNMP), please refer to FIG. )614. The protocol data unit (PDU) 614 includes a PDU type (PDU Type) 621, a request ID (Request ID) 622, an error status (Error Status) 623, an error index (Error Index) 624, and a plurality of object identification codes (ObjectIdentifiers, OIDs) 625. The plurality of OIDs 625 may include, for example, individual OIDs 631-635 and the like. The administrator of Simple Network Management Protocol (SNMP) will inform the corresponding switch how to set according to individual object identification codes, such as the object identification codes (OID) 631~635 shown in the figure. Different switches have different setting methods. Instead, the deployment process for restoration of the virtual local area network proposed in the present disclosure can be achieved.

图7是根据本公开的一范例实施例所绘示的控制器的示意图。请参照图7,控制器700包括处理器702与存储器704。根据本公开内容所提出在混合式软件定义网络(Hybrid SDN)架构中,控制器700与多个交换机之间进行虚拟局域网络复原方法。控制器700利用SDN集中管理的特性,预先计算每个虚拟局域网络(VLAN)所有链路(Link)及交换机(Switch)的故障事件计算备份路径表724,并存储在存储器704。当有链路(Link)或交换机(Switch)的故障事件发生的时候,控制器700能够藉由收到故障事件,布建相应的备份路径,例如采用图4B与4C的链路故障事件备份路径表410或是交换机故障备份路径表420进行重新布建,以免去修复虚拟局域网络(VLAN)路径所需的收敛时间,提高数据传送的可靠度。FIG. 7 is a schematic diagram of a controller according to an exemplary embodiment of the disclosure. Please refer to FIG. 7 , the controller 700 includes a processor 702 and a memory 704 . According to the present disclosure, in a hybrid software-defined network (Hybrid SDN) architecture, a virtual local area network recovery method is performed between the controller 700 and multiple switches. The controller 700 utilizes the feature of SDN centralized management to pre-calculate the backup path table 724 for all links (Links) and switches (Switches) of each virtual local area network (VLAN) to calculate the backup path table 724 and store it in the memory 704 . When a failure event of a link (Link) or a switch (Switch) occurs, the controller 700 can deploy a corresponding backup path by receiving the failure event, for example, the link failure event backup path shown in FIG. 4B and 4C is used. The table 410 or the switch failure backup path table 420 is re-deployed to avoid the convergence time required for repairing the virtual local area network (VLAN) path and improve the reliability of data transmission.

处理器702用以控制此控制器700的全部运作。举例来说,处理器702是中央处理单元(central processing unit,CPU),然本公开不限于此。The processor 702 is used to control all operations of the controller 700 . For example, the processor 702 is a central processing unit (central processing unit, CPU), but the disclosure is not limited thereto.

存储器704用以存储数据。举例来说,存储器704是静态随机存取存储器(static random-access memory,SRAM)、动态随机存取存储器(dynamicrandom access memory)、快闪存储器(flash memory)或是其他存储器或是其组合,但本公开不限于此。特别是,存储器704存储多个指令(instruction),并且处理器702会执行此些指令以完成本公开内容所提出虚拟局域网络复原的方法。The memory 704 is used for storing data. For example, the memory 704 is a static random-access memory (static random-access memory, SRAM), a dynamic random-access memory (dynamic random access memory), a flash memory (flash memory) or other memories or combinations thereof, but The present disclosure is not limited thereto. In particular, the memory 704 stores a plurality of instructions, and the processor 702 executes these instructions to complete the virtual local area network restoration method proposed in this disclosure.

具体来说,上述指令在一个实施范例中可以包括路由路径计算模块712、防火墙开启模块714、生成树协议关闭模块716、转送表更新模块718、防火墙清除模块720以及节点并入/移除模块722。在此,处理器702会执行路由路径计算模块712以形成网络拓扑并根据网络中的节点计算路由路径;执行防火墙开启模块714以致能每个节点的防火墙来阻断节点之间的路由;执行生成树协议关闭模块716来关闭每个节点的生成树协议功能;执行转送表更新模块718以植入每个节点的转送表;执行防火墙清除模块720以清除每个节点的防火墙以及执行节点并入/移除模块722以检测节点的加入或移除。Specifically, the above instructions may include a routing path calculation module 712, a firewall enabling module 714, a spanning tree protocol closing module 716, a forwarding table updating module 718, a firewall clearing module 720, and a node merging/removing module 722 in an implementation example . Here, the processor 702 will execute the routing path calculation module 712 to form a network topology and calculate the routing path according to the nodes in the network; execute the firewall enabling module 714 to enable the firewall of each node to block the routes between nodes; execute generating Tree protocol shutdown module 716 is to close the spanning tree protocol function of each node; Execute transfer table update module 718 to implant the transfer table of each node; Remove module 722 to detect the addition or removal of nodes.

此外,上述指令可以存储于计算机可读取的记录介质(computer-readablerecording medium)中。例如,计算机可读取的记录介质为光盘(CD-ROM)、磁带(magnetic tape)、软盘片(floppy disc)或是光学数据存储装置(optical datastorage device)。In addition, the above-mentioned instructions may be stored in a computer-readable recording medium. For example, the computer-readable recording medium is a compact disc (CD-ROM), magnetic tape (magnetic tape), floppy disc (floppy disc) or optical data storage device (optical data storage device).

虽然本发明已以实施例公开如上,然其并非用以限定本发明,本领域技术人员在不脱离本发明的精神和范围内,当可作些许的更动与润饰,故本发明的保护范围当视所附权利要求书界定范围为准。Although the present invention has been disclosed as above with the embodiments, it is not intended to limit the present invention. Those skilled in the art can make some changes and modifications without departing from the spirit and scope of the present invention, so the protection scope of the present invention The scope defined by the appended claims shall prevail.

Claims (32)

1. a kind of Virtual Local Area Network restored method, it is characterised in that fixed suitable for a kind of hybrid software Network in the adopted network architecture, the network at least includes controller and multiple switch, wherein, the method Including:
Backup path table is precalculated based on the network;And
Event notification message is produced according to the connecting fault of the Virtual Local Area Network, it is logical corresponding to the event Know message and be based on the backup path table and start a link failure handling process, and carry out check process simultaneously, Wherein
If the inspection result that the check process is obtained points out to be exchange fault event, reply via the chain The setting of road troubleshooting process change, and exchange fault handling process is carried out, so as to according to the backup In routing table to should the path of connecting fault of Virtual Local Area Network re-establish the VLAN Network,
If the inspection result that the check process is obtained points out the not exchange fault event, by the chain Road troubleshooting process according in the backup path table to should Virtual Local Area Network connecting fault path Re-establish the Virtual Local Area Network.
2. Virtual Local Area Network restored method as claimed in claim 1, if wherein the check process is obtained Inspection result point out to be the exchange fault event, stop the link failure handling process, be not required to reply Via the setting that the link failure handling process is changed.
3. Virtual Local Area Network restored method as claimed in claim 1, wherein the backup for precalculating Routing table includes link failure backup path table and exchange fault backup path table.
4. Virtual Local Area Network restored method as claimed in claim 1, also including based on the network again Set up another backup path table.
5. Virtual Local Area Network restored method as claimed in claim 1, wherein leading to the event is received Knowing before start the link failure handling process after message, further including to filter the event notification message, It is confirmed whether that being directed to the event notification message is processed.
6. Virtual Local Area Network restored method as claimed in claim 1, wherein fixed in the hybrid software These interchangers of adopted network include multiple physical switches, and the wherein event notification message is included by the thing The unusual condition notification signal that reason interchanger sends.
7. Virtual Local Area Network restored method as claimed in claim 6, wherein physical switches send The unusual condition notification signal for simple network management protocol unusual condition notification signal.
8. Virtual Local Area Network restored method as claimed in claim 1, wherein fixed in the hybrid software These interchangers of adopted network include the interchanger of multiple software definables, wherein the event notification message bag Include the linkdown notification message that is sent by the interchanger of the software definable or the controller is soft with these The holding operation information that the interchanger of part definable is exchanged periodically.
9. Virtual Local Area Network restored method as claimed in claim 1, the wherein check process include hair Go out detection signal one by one in the network to should these interchangers of event notification message detect, and According to should detection signal responsive status, whether the inspection result for confirmation is the exchange fault Event.
10. Virtual Local Area Network restored method as claimed in claim 9, the wherein detection signal are to meet The packet of internet control management protocol.
11. Virtual Local Area Network restored methods as claimed in claim 9, the wherein detection signal are to meet OpenFlow agreements, Telnet communication protocols, the application of SSH distal ends login protocols, simple network management association The packet of one of view or address resolution protocol.
12. a kind of controllers, it is characterised in that in a kind of net of the hybrid software definition network architecture In network, Virtual Local Area Network return function is carried out, wherein the controller includes processor and memory, Wherein the memory is used to store backup path table, and the processor is configured to reception event and notifies news Breath, wherein,
The processor is based on the backup path table and starts link failure handling process, and according to the backup path In table to should the path of connecting fault of Virtual Local Area Network re-establish the Virtual Local Area Network;
The processor carries out check process, if wherein the inspection result that the check process is obtained is judged as exchanging Machine event of failure, then reply the setting changed via the link failure handling process, and carry out interchanger event Barrier handling process, and according in the backup path table to should Virtual Local Area Network connecting fault path The Virtual Local Area Network is re-established, if the inspection result that the check process is obtained points out the not exchange Machine event of failure, then stop performing the check process.
13. controllers as claimed in claim 12, if wherein the inspection result that the check process is obtained refers to Go out to be judged as the exchange fault event, stop the link failure handling process, be not required to reply via the chain The setting of road troubleshooting process change.
The backup path table that 14. controllers as claimed in claim 12, the wherein memory are stored It is that the processor is configured to be precalculated under the network according to the hybrid software definition network architecture Produce, and store in the memory.
15. controllers as claimed in claim 13, wherein the backup path table are backed up including link failure Routing table and exchange fault backup path table, reason device is configured to the chain for performing in this place respectively Used in road troubleshooting process and the check process.
16. controllers as claimed in claim 12, wherein and the processor is configured to perform the chain After road troubleshooting process and the check process, be further configured to based on re-establish this is virtual Another backup path table is set up in region, and updates to the memory, is used to replace the backup path table.
17. controllers as claimed in claim 12, the wherein memory be static RAM, Other memories of dynamic random access memory, flash memory or its combination.
18. controllers as claimed in claim 12, the wherein processor are configured to perform the link During troubleshooting process, before the link failure handling process is started, further include to filter the event Notification message, is confirmed whether that being directed to the event notification message is processed.
19. controllers as claimed in claim 12, the wherein event notification message are managed for simple network The unusual condition notification signal of agreement.
20. controllers as claimed in claim 12, the wherein event notification message are the processor through matching somebody with somebody Put the holding operation information periodically to be swapped to the network.
21. controllers as claimed in claim 12, the wherein processor are configured to perform the inspection In flow the check process include sending detection signal one by one in the network to should event notification message These interchangers are detected, and according to should detection signal responsive status, the inspection for confirmation Whether result is the exchange fault event.
22. controllers as claimed in claim 12, the wherein detection signal are to meet internet-based control pipe Manage the packet of agreement, OpenFlow agreements, Telnet communication protocols, the application of SSH distal ends login protocols, The packet of one of simple network management protocol or address resolution protocol.
23. a kind of systems of Virtual Local Area Network return function, it is characterised in that be applicable a hybrid software The network of the network architecture is defined, the wherein system includes at least including controller and multiple switch,
Wherein, the interchanger is used to be produced event to notify news according to the connecting fault of the Virtual Local Area Network Breath,
The controller is used to when event notification message is received, at the same perform link failure handling process with Check process, wherein,
The controller performs the link failure handling process to be included based on backup path table to should virtual local area The path of the connecting fault of network on these interchangers in path to that should re-establish the VLAN Network;And
When the controller performs the check process, if the inspection result for obtaining points out to be an exchange fault thing Part, then reply the setting changed via the link failure handling process, and carry out exchange fault processing stream Journey, and according in the backup path table to should Virtual Local Area Network connecting fault path to should The Virtual Local Area Network is re-established on these interchangers in path, if the inspection that the check process is obtained Result points out the not exchange fault event, then stop performing the check process.
The system of 24. Virtual Local Area Network return functions as claimed in claim 23, if wherein obtaining Inspection result points out to be judged as the exchange fault event, stops the link failure handling process, is not required to back The multiple setting changed via the link failure handling process.
The system of 25. Virtual Local Area Network return functions as claimed in claim 23, wherein the backup road Footpath table is to precalculate generation under the network of the controller according to the hybrid software definition network architecture, And stored.
The system of 26. Virtual Local Area Network return functions as claimed in claim 25, wherein the backup road Footpath table includes link failure backup path table and exchange fault backup path table, respectively in the controller Used in the link failure handling process for performing and the check process.
The system of 27. Virtual Local Area Network return functions as claimed in claim 23, wherein and the control After device performs the link failure handling process and the check process, this for being based further on re-establishing is virtual Another backup path table is set up in region, is used to replace the backup path table.
The system of 28. Virtual Local Area Network return functions as claimed in claim 23, the wherein controller When performing the link failure handling process, before the link failure handling process is started, further include The event notification message is filtered, is confirmed whether that being directed to the event notification message is processed.
The system of 29. Virtual Local Area Network return functions as claimed in claim 23, the wherein event are led to Know the unusual condition notification signal that message is a simple network management protocol.
The system of 30. Virtual Local Area Network return functions as claimed in claim 23, the wherein event are led to Know that message is the holding operation information that the controller is periodically swapped to these interchangers of the network.
The system of 31. Virtual Local Area Network return functions as claimed in claim 23, the wherein controller Perform the check process in the check process include sending detection signal one by one in the network to should event These interchangers of notification message are detected, and according to should detection signal responsive status, so as to Confirm whether the inspection result is the exchange fault event.
The system of 32. Virtual Local Area Network return functions as claimed in claim 23, the wherein detection are believed Number it is to meet packet, OpenFlow agreements, Telnet communication protocols, the SSH of internet control management protocol The packet of one of the application of distal end login protocol, simple network management protocol or address resolution protocol.
CN201510893403.8A 2015-11-26 2015-12-07 Virtual local area network restoration method, system and device Active CN106803803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/981,937 US9813286B2 (en) 2015-11-26 2015-12-29 Method for virtual local area network fail-over management, system therefor and apparatus therewith

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW104139384 2015-11-26
TW104139384A TWI587661B (en) 2015-11-26 2015-11-26 Method for virtual local area network fail-over management, system therefor and apparatus therewith

Publications (2)

Publication Number Publication Date
CN106803803A true CN106803803A (en) 2017-06-06
CN106803803B CN106803803B (en) 2019-11-15

Family

ID=58977343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510893403.8A Active CN106803803B (en) 2015-11-26 2015-12-07 Virtual local area network restoration method, system and device

Country Status (2)

Country Link
CN (1) CN106803803B (en)
TW (1) TWI587661B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112005525A (en) * 2017-08-01 2020-11-27 爱思唯尔有限公司 System and method for extracting structure from large, dense and noisy networks
CN112236981A (en) * 2018-06-07 2021-01-15 瑞典爱立信有限公司 Configuring Network Paths in SDN

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI691182B (en) * 2018-11-08 2020-04-11 中華電信股份有限公司 System and method for provisioning flexible restoration path in network
TWI792072B (en) * 2020-10-12 2023-02-11 中華電信股份有限公司 Intelligent measurement system for software-defined network quality of experience and method thereof

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050015685A1 (en) * 2003-07-02 2005-01-20 Masayuki Yamamoto Failure information management method and management server in a network equipped with a storage device
US20050276217A1 (en) * 2004-05-25 2005-12-15 Shrirang Gadgil Method, computer product and system for correlating events in a network
CN1897567A (en) * 2005-07-15 2007-01-17 华为技术有限公司 Method for improving transmission reliability in virtual exchange system
CN101159696A (en) * 2007-11-21 2008-04-09 杭州华三通信技术有限公司 PBT network flow control method and apparatus
CN101821990A (en) * 2007-10-09 2010-09-01 Lm爱立信电话有限公司 Arrangement and method for handling failures in network
CN101827025A (en) * 2010-04-02 2010-09-08 华为技术有限公司 Communication network multicast protection method, system and device
CN103346904A (en) * 2013-06-21 2013-10-09 西安交通大学 Fault-tolerant OpenFlow multi-controller system and control method thereof
US20150326426A1 (en) * 2014-05-12 2015-11-12 Futurewei Technologies, Inc. Partial software defined network switch replacement in ip networks

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015152436A1 (en) * 2014-03-31 2015-10-08 쿨클라우드㈜ Sdn-based service chaining system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050015685A1 (en) * 2003-07-02 2005-01-20 Masayuki Yamamoto Failure information management method and management server in a network equipped with a storage device
US20050276217A1 (en) * 2004-05-25 2005-12-15 Shrirang Gadgil Method, computer product and system for correlating events in a network
CN1897567A (en) * 2005-07-15 2007-01-17 华为技术有限公司 Method for improving transmission reliability in virtual exchange system
CN101821990A (en) * 2007-10-09 2010-09-01 Lm爱立信电话有限公司 Arrangement and method for handling failures in network
CN101159696A (en) * 2007-11-21 2008-04-09 杭州华三通信技术有限公司 PBT network flow control method and apparatus
CN101827025A (en) * 2010-04-02 2010-09-08 华为技术有限公司 Communication network multicast protection method, system and device
CN103346904A (en) * 2013-06-21 2013-10-09 西安交通大学 Fault-tolerant OpenFlow multi-controller system and control method thereof
US20150326426A1 (en) * 2014-05-12 2015-11-12 Futurewei Technologies, Inc. Partial software defined network switch replacement in ip networks

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112005525A (en) * 2017-08-01 2020-11-27 爱思唯尔有限公司 System and method for extracting structure from large, dense and noisy networks
CN112005525B (en) * 2017-08-01 2024-03-15 爱思唯尔有限公司 Systems and methods for extracting structure from large, dense and noisy networks
CN112236981A (en) * 2018-06-07 2021-01-15 瑞典爱立信有限公司 Configuring Network Paths in SDN
US11502944B2 (en) 2018-06-07 2022-11-15 Telefonaktiebolaget Lm Ericsson (Publ) Configuring a network path in an SDN

Also Published As

Publication number Publication date
CN106803803B (en) 2019-11-15
TW201720105A (en) 2017-06-01
TWI587661B (en) 2017-06-11

Similar Documents

Publication Publication Date Title
US9813286B2 (en) Method for virtual local area network fail-over management, system therefor and apparatus therewith
US10686749B2 (en) Packet sending method and network device
JP6518697B2 (en) System and method for controlling a network switch using a switch modeling interface on a controller
CN104539443B (en) Communication network path and status information in more place networks
US8416696B2 (en) CFM for conflicting MAC address notification
CN102396193B (en) Method for client data transmission over packet switching provider network
US10257019B2 (en) Link aggregation split-brain detection and recovery
CN104081731B (en) Network system and method for managing topology
Song et al. Control path management framework for enhancing software-defined network (SDN) reliability
JPWO2005048540A1 (en) Communication system and communication method
US7200120B1 (en) Packet-switched network topology tracking method and system
EP2985960A1 (en) Network topology discovery method and system
Sidki et al. Fault tolerant mechanisms for SDN controllers
US9276769B2 (en) Circuit bundle for resiliency/protection of circuits
EP2608459A2 (en) Router, virtual cluster router system and establishion method thereof
US9350628B2 (en) Dynamic management of maintenance association membership in a computer network
JP2006229967A (en) Fast multicast path switching
US8570877B1 (en) Preparing for planned events in computer networks
CN106803803B (en) Virtual local area network restoration method, system and device
Chen et al. Link failure recovery in sdn: High efficiency, strong scalability and wide applicability
US8670299B1 (en) Enhanced service status detection and fault isolation within layer two networks
CN101102231B (en) A method and device for automatic discovery of PPP link routing equipment
CN100512220C (en) Method for realizing service protection on elastic group ring
Vaghani et al. A comparison of data forwarding schemes for network resiliency in software defined networking
Heise et al. Self-configuring deterministic network with in-band configuration channel

Legal Events

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