WO2016165463A1 - Software defined network-based link failure reporting method and forwarding device - Google Patents

Software defined network-based link failure reporting method and forwarding device Download PDF

Info

Publication number
WO2016165463A1
WO2016165463A1 PCT/CN2016/073801 CN2016073801W WO2016165463A1 WO 2016165463 A1 WO2016165463 A1 WO 2016165463A1 CN 2016073801 W CN2016073801 W CN 2016073801W WO 2016165463 A1 WO2016165463 A1 WO 2016165463A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
detection
forwarding device
message
packet
Prior art date
Application number
PCT/CN2016/073801
Other languages
French (fr)
Chinese (zh)
Inventor
郭文君
王大勇
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016165463A1 publication Critical patent/WO2016165463A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Definitions

  • the present invention relates to the field of communications, and in particular, to a link fault reporting method and a forwarding device based on a software-defined network.
  • SDN Software Defined Network
  • the SDN is a new type of data communication network technology.
  • the SDN is characterized by separation of control and bearer, separating the control part of the router and the switch in the original network, implemented by software, and the remaining forwarding part is implemented by the network device.
  • the former is called the control plane/control layer, that is, the control end, and the latter is called the forwarding plane or the forwarding layer, that is, the forwarding device.
  • the forwarding device is a forwarding device that focuses on high-speed forwarding of data packets.
  • the forwarding decision is uniformly distributed by the control plane of the control plane through the southbound interface protocol.
  • the control end sends a service forwarding instruction to the forwarding device through the OpenFlow protocol, and sends a network configuration command through the OF-Config protocol.
  • the control end sends the link detection packet to enable the forwarding device to perform link detection. After the detection, each forwarding device performs reporting.
  • the data packet sending timer is usually set in the second level, when the link occurs. In the event of a fault, the time for reporting the fault information is slow, and the fault convergence time of the live network is not met.
  • the main technical problem to be solved by the embodiment of the present invention is to provide a link fault reporting method and a forwarding device based on a software-defined network, which solves the problem that the time for reporting the fault information is relatively slow when the existing link fails. .
  • an embodiment of the present invention provides a link fault reporting method based on a software-defined network, including:
  • the fault information is reported to the control end.
  • the establishing a detection link with the peer forwarding device includes:
  • the acquiring network topology information includes: receiving network topology information sent by the control end.
  • the method before receiving the network topology information sent by the control terminal, the method further includes:
  • the peer forwarding device And receiving, by the peer forwarding device, a link discovery message sent by the packet sending notification message sent by the control terminal, where the packet notification message includes the identifier information of the peer forwarding device and the port identifier information of the sending link discovery message;
  • the receiving, by the peer forwarding device, the detection packet sent by using the detection link includes: receiving, by using the detection link, the peer forwarding device to send according to a preset period. Determining whether the detection link is faulty according to the detection packet includes: determining whether the detection packet is received within a preset period, and if not, determining that the detection chain is The road has failed.
  • the embodiment of the present invention further provides a forwarding device, including a chain building module, a receiving module, a determining module, and a reporting module:
  • the chain building module is configured to establish a detection link with the peer forwarding device
  • the receiving module is configured to receive the detection packet sent by the peer forwarding device by using the detection link;
  • the determining module is configured to determine, according to the detection message, whether the detection link is faulty;
  • the reporting module is configured to report the fault information to the control end when determining that the detection link is faulty.
  • the chain building module includes an acquiring submodule and a chain building submodule
  • the obtaining submodule is configured to acquire network topology information
  • the chain building submodule is configured to establish a detection link according to the network topology information.
  • the acquiring submodule is further configured to: receive network topology information sent by the control end.
  • the link building module further includes a link submodule: the link submodule is configured to: before receiving the network topology information sent by the control end, receiving the peer forwarding device according to the control end
  • the sent message sends a link discovery message sent by the notification message, where the message notification message includes the identification information of the peer forwarding device and the port identification information of the link discovery message; the port identification information of the local forwarding device and the receiving The port identification information of the link discovery message is added to the link discovery message; the link discovery message is sent to the control end to enable the control end to generate network topology information according to the discovery link message.
  • the receiving module is further configured to receive a detection packet that is sent by the peer forwarding device by using the detection link according to a preset period; the determining module is further configured to: It is determined whether the detection packet is received within the preset period, and if not received, it is determined that the detection link is faulty.
  • the link fault reporting method and the forwarding device based on the software-defined network provided by the embodiment of the present invention include: establishing a detection link with the peer forwarding device; and receiving the detection packet sent by the peer forwarding device through the detection link. According to the detection packet, it is judged whether the link is faulty; when it is judged that the detection link is faulty, it is reported to the control terminal.
  • the local forwarding device establishes a detection link between the forwarding device and the peer forwarding device, and detects the link between the local forwarding device and the remote forwarding device by detecting the packet.
  • Link detection is performed on the link detection packet of the control end, which avoids the link detection packet being released by the control end of the entire network, and improves the real-time performance of the link detection, thereby shortening the link detection without affecting the performance of the controller. And the time when the fault information is reported.
  • FIG. 1 is a flowchart of a link fault reporting method based on a software-defined network according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a link fault reporting method based on a software-defined network according to Embodiment 2 of the present invention
  • FIG. 3 is a flowchart of a link fault reporting method based on a software-defined network according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic structural diagram 1 of a forwarding device according to Embodiment 4 of the present invention.
  • FIG. 5 is a schematic structural diagram 2 of a forwarding device according to Embodiment 4 of the present invention.
  • FIG. 6 is a schematic structural diagram 3 of a forwarding device according to Embodiment 4 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the link fault reporting method of the software-defined network in this embodiment is as shown in FIG. 1 , and the method includes:
  • Step S101 Establish a detection link with the peer forwarding device.
  • the local forwarding device establishes a detection link with the peer forwarding device.
  • the detection link here may be a link that is established separately, or may be a service link between the local forwarding device and the remote forwarding device.
  • the forwarding device here refers to a forwarding plane or a forwarding layer of the software-defined network, and may specifically be a switch or a physical node.
  • the local forwarding device generally refers to a forwarding device that is directly connected to the control device.
  • the remote forwarding device refers to a neighboring forwarding device that is connected to the local forwarding device.
  • Step S102 Receive a detection packet sent by the peer forwarding device through the detection link.
  • the peer forwarding device sends the detection packet to the local forwarding device through the detection packet sent by the detection link.
  • the local forwarding device can also send the detection packet to the peer forwarding device.
  • the detection message here may be a specific message or a service message with identification information, and it should be understood that any message that can be identified and judged can be used.
  • Step S103 Determine, according to the detection message, whether the link is faulty.
  • the specific detection may be to determine whether the detection packet is received. If the detection packet is received, the detection link is not faulty. If the detection packet is not received, the detection link is faulty. . It is worth noting that the failure of the detection link here indicates that the link between the two forwarding devices is faulty.
  • Step S104 When it is determined that the detection link is faulty, the fault information is reported to the control end.
  • the local forwarding device when the local forwarding device knows that there is a fault, the local terminal forwards the fault information to the control terminal for the control terminal to perform corresponding processing.
  • the fault information here includes specific link information and corresponding identification information of the forwarding device.
  • establishing a detection link with the peer forwarding device may specifically: acquire network topology information; and establish a detection link according to the network topology information.
  • the obtaining network topology information here may be obtained by itself, or may receive manual input, preferably, obtained from the control end, because in the software-defined network, the network topology information of the entire network generally managed by the control end. That is, obtaining network topology information includes: receiving network topology information sent by the control end.
  • the method further includes: receiving a link discovery message sent by the peer forwarding device according to the sending message sending notification message of the control end, where the message notification message includes the identifier information of the peer forwarding device and The port identification information of the link discovery message is sent; the port identification information of the local forwarding device and the port identification information of the receiving link discovery message are added to the link discovery message; the link discovery message is sent to the control end, so that the control end is based on the discovery chain.
  • the road message generates network topology information. That is, before the network topology information is obtained from the control end, the control terminal is assisted to establish network topology information.
  • the detection packet is sent to the peer forwarding device through the detection link, and the detection packet is sent to the peer forwarding device through the detection link according to the preset period.
  • Determining whether the detection link is faulty according to the detection packet includes: determining whether the detection packet is received within a preset period, and if not, determining that the detection link is faulty.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the link fault reporting method based on the software-defined network in this embodiment.
  • the forwarding device is used as a switch.
  • the terminal is described as an example of a controller. As shown in FIG. 2, the method includes:
  • Step S201 The controller obtains network topology information by performing LLDP data packet transmission and reception on the direct connection switch in the network.
  • Step S202 The controller instructs each switch to establish a detection link according to the topology link information.
  • Step S203 After the detection link between the switches is established, the detection packet is sent periodically periodically.
  • Step S204 If the detection packet of the peer switch is not received within the detection period, the link is considered to be faulty, and the controller is notified.
  • link discovery and topology management are the basis of network management. Compared with traditional network, link discovery is controlled by each network element.
  • the link discovery in the SDN network is managed by the controller.
  • the SDN controller mainly uses LLDP (Link Layer Discovery Protocol) as the link discovery protocol.
  • the link discovery process in the SDN network is as follows:
  • the controller organizes the information such as the device identifier, the port identifier, and the management address of the directly connected switch into different TLVs (Type/Length/Value, Type/Length/Value) encapsulated in the Link Layer Discovery Protocol Date Unit (LLDPDU). Layer discovery protocol data unit). LLDP packets encapsulated with LLDPDUs must also contain specific multicast, destination MAC addresses, and specific Ethernet types.
  • the controller sends an instruction to the directly connected switch through the packet-out message of the OpenFlow protocol, and requests the LLDP packet to be sent from the designated port.
  • the direct connection switch After receiving the message, the direct connection switch sends the LLDP data packet to the peer switch through the designated port;
  • the peer switch After receiving the data packet, the peer switch sends the data packet to the controller through the packet-in message of the OpenFlow protocol;
  • the controller After receiving the data packet, the controller saves the link information of the direct switch and its neighbor switch in the link discovery table.
  • the controller can draw the topology view of the network by performing the above-mentioned LLDP data packet transmission and reception operations on other switches and ports.
  • the method of the present example adds the topology link state detection setting to the original controller through the LLDP protocol to obtain the link topology, and quickly obtains the link fault information by establishing the detection link, and shortens the fault convergence speed to the millisecond level. That is, the preset period is set to the millisecond level, and the fault reporting is also in the millisecond level.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the forwarding device is a switch
  • the control terminal is a controller.
  • the OF switch in the SDN network accepts management of the controller, and the controller controls the LLDP data. After the packet is sent and received to generate a network topology link, the switch is notified to establish a detection link. As shown in FIG. 3, the method includes:
  • Step S301 The controller encapsulates the device identifier and the port identifier in the LLDP packet, and sends a command to the OF switch through the packet-out message of the OpenFlow protocol, and the command switch sends the LLDP packet through the designated port.
  • the controller encapsulates the switch identifier A, and the port identifier i is encapsulated in the LLDPDU packet, and is sent to the OF switch A through the packet-out message of the OpenFlow protocol, and the OF switch A is instructed to send the LLDP data packet through the i port.
  • the controller encapsulates the switch identifier B and the port identifier j in the LLDPDU packet, and sends the packet to the OF switch B through the packet-out message of the OpenFlow protocol, and commands the OF switch B to send the LLDP packet through the j port.
  • Step S302 After receiving the message, the OF switch sends an LLDP packet through the designated port of the packet.
  • the OF exchange A sends an LLDP data packet through the i port; after receiving the message, the OF exchange B sends an LLDP data packet through the j port.
  • Step S303 After receiving the LLDP packet, the neighboring switch encapsulates the local identifier and the port identifier into the LLDP packet, and sends the packet to the controller through the packet-in message of the OpenFlow protocol.
  • the OF switch B receives the LLDP data packet of the OF switch A, adds its own device identifier B based on the content of the original data packet, and receives the port identifier j, which is sent through the packet-in message of the OpenFlow protocol.
  • the controller switch A receives the LLDP data packet of the OF switch B, adds its own device identifier A to the original data packet, and receives the port identifier i, and sends the packet-in message to the controller through the OpenFlow protocol.
  • Step S304 The controller saves the information of the direct switch and its neighboring switch in the link discovery table according to the received LLDP packet, and the controller generates a topology view according to the link discovery table.
  • Step S305 The controller sends the link topology information to the switch, and the command switch establishes a detection link.
  • the controller sends the link information local end identification A, the local end interface i, the remote identification B, and the remote interface j to the OF switch A through the protocol, and the OF switch A is instructed to establish a detection link;
  • the controller sends the local end of the link information B, the local interface j, the remote ID A, and the remote interface i to the OF switch B through the protocol, and the OF switch B is instructed to establish a detection link.
  • Step S306 After receiving the message of establishing the detection link, the OF switch establishes a bidirectional detection link (a custom protocol may be used, or an existing BFD protocol may be used), and a link detection time timer is set at the same time, and the neighboring switch is set to the neighboring switch. Send and receive detection messages;
  • Step S307 When detecting a link failure, the local switch reports the fault information to the controller, and the controller updates the detected link state, and the controller updates the topology view.
  • the link fault is detected, and the OF switch A does not receive the detection packet sent by the neighboring switch during the link timing detection time, and the OF switch B does not receive the neighbor within the link timing detection time. If the test packet sent by the switch is faulty, the link is faulty and the link status is modified. The switch reports the controller to detect the link fault.
  • the topology view here is an example of network topology information.
  • the LLDP data packet and the LLDP packet in this example are an example of a link discovery message format
  • the packet-in message is an instance of a link discovery message
  • the packet-out message is a packet sending notification message.
  • other formats or message content can be implemented as long as message notification or link discovery can be performed.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • the embodiment of the present invention provides a forwarding device 400, as shown in FIG. 4, including a chain building module 401, a receiving module 402, a determining module 403, and a reporting module 404: wherein the chain building module 401 is configured to establish a detection chain with the peer forwarding device.
  • the receiving module 402 is configured to receive the detection packet sent by the peer forwarding device by using the detection link;
  • the determining module 403 is configured to determine whether the link is faulty according to the detection packet;
  • the reporting module 404 is configured to determine that the detection link appears. When the fault occurs, the fault information is reported to the control terminal.
  • the embodiment further provides a forwarding device 400.
  • the chain building module 404 includes an obtaining submodule 4011 and a chain building submodule 4012.
  • the obtaining submodule 4011 is configured to acquire network topology information; and the building submodule 4012 is configured. Establish a detection link based on network topology information.
  • the obtaining submodule 4011 is further configured to: receive network topology information sent by the control end.
  • the embodiment further provides a forwarding device 400.
  • the link building module 401 further includes a link submodule 4013.
  • the link submodule 4013 is configured to receive the network topology information before receiving the control terminal.
  • the terminal forwarding device sends a link discovery message sent by the notification message according to the packet sent by the control terminal.
  • the packet notification message includes the identifier information of the peer forwarding device and the port identification information of the link discovery message.
  • the identifier information and the port identification information of the receiving link discovery message are added to the link discovery message.
  • the link discovery message is sent to the control end to enable the control end to generate network topology information according to the discovery link message.
  • a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
  • the embodiment of the present invention provides the foregoing technical solution, which may be applied to a link fault detection process, by establishing a detection link with the peer forwarding device, and receiving a detection packet sent by the peer forwarding device through the detection link;
  • the detection packet is used to determine whether the link is faulty.
  • the local forwarding device establishes a detection link between the forwarding device and the peer forwarding device, and detects the link between the local forwarding device and the remote forwarding device by detecting the packet.
  • Link detection is performed on the link detection packet of the control end, which avoids the link detection packet being released by the control end of the entire network, and improves the real-time performance of the link detection, thereby shortening the link detection without affecting the performance of the controller. And the time when the fault information is reported.

Landscapes

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

Abstract

The present invention relates to the field of communications. Provided are a software defined network (SDN)-based link failure reporting method and forwarding device. The method comprises: establishing a detection link with a peer forwarding device; receiving a detection packet transmitted by the peer forwarding device via the detection link; determining, according to the detection packet, whether the detection link has failed; and if so, then reporting the failure to a control terminal. Compared to the prior art, a detection link is established between a local forwarding device and the peer forwarding device, and a detection with respect to a link between the local forwarding device and the peer forwarding device is performed via a detection packet without the need to detect the link by regularly receiving a link detection packet from the control terminal, thus preventing the control terminal from issuing the link detection packets to the entire network, improving timeliness of link detection, and thereby reducing the time of link detection and failure information reporting without affecting controller performance.

Description

一种基于软件定义网络的链路故障上报方法和转发设备Link fault reporting method and forwarding device based on software defined network 技术领域Technical field
本发明涉及通信领域,具体涉及一种基于软件定义网络的链路故障上报方法和转发设备。The present invention relates to the field of communications, and in particular, to a link fault reporting method and a forwarding device based on a software-defined network.
背景技术Background technique
软件定义的网络(Software Defined Network,SDN),是一种新型的数据通信网络技术。SDN的特点是控制和承载分离,将原先网络中的路由器和交换机的控制部分分离出来,由软件实现,剩余的转发部分由网络设备实现。前者称为控制面/控制层,即控制端,后者称为转发面或者转发层,即转发设备。Software Defined Network (SDN) is a new type of data communication network technology. The SDN is characterized by separation of control and bearer, separating the control part of the router and the switch in the original network, implemented by software, and the remaining forwarding part is implemented by the network device. The former is called the control plane/control layer, that is, the control end, and the latter is called the forwarding plane or the forwarding layer, that is, the forwarding device.
转发面的设备即转发设备专注于高速转发数据分组,转发的决策由控制面的控制端通过南向接口协议统一分发。控制端通常通过OpenFlow协议给转发设备下发业务转发指令,通过OF-Config协议下发网络配置指令。The forwarding device is a forwarding device that focuses on high-speed forwarding of data packets. The forwarding decision is uniformly distributed by the control plane of the control plane through the southbound interface protocol. The control end sends a service forwarding instruction to the forwarding device through the OpenFlow protocol, and sends a network configuration command through the OF-Config protocol.
控制端通过定时发送链路检测包让各转发设备进行链路检测,检测后各转发设备进行上报,考虑系统性能和SDN网络规模,数据包的发送定时器通常设置在秒级,当链路发生故障时,上报故障信息的时间比较慢,无法满足现网运行时故障收敛时间在毫秒级的要求。The control end sends the link detection packet to enable the forwarding device to perform link detection. After the detection, each forwarding device performs reporting. Considering the system performance and the SDN network size, the data packet sending timer is usually set in the second level, when the link occurs. In the event of a fault, the time for reporting the fault information is slow, and the fault convergence time of the live network is not met.
发明内容Summary of the invention
本发明实施例要解决的主要技术问题是,提供一种基于软件定义网络的链路故障上报方法和转发设备,解决现有中当链路发生故障入时,上报故障信息的时间比较慢的问题。The main technical problem to be solved by the embodiment of the present invention is to provide a link fault reporting method and a forwarding device based on a software-defined network, which solves the problem that the time for reporting the fault information is relatively slow when the existing link fails. .
为解决上述问题,本发明实施例提供一种基于软件定义网络的链路故障上报方法,包括:To solve the above problem, an embodiment of the present invention provides a link fault reporting method based on a software-defined network, including:
与对端转发设备建立检测链路;Establishing a detection link with the peer forwarding device;
接收所述对端转发设备通过所述检测链路发送的检测报文;Receiving a detection packet sent by the peer forwarding device through the detection link;
根据所述检测报文判断所述检测链路是否出现故障;Determining, according to the detection message, whether the detection link is faulty;
当判断所述检测链路出现故障时,上报故障信息给控制端。When it is determined that the detection link is faulty, the fault information is reported to the control end.
在本发明的一种实施例中,所述与对端转发设备建立检测链路包括:In an embodiment of the present invention, the establishing a detection link with the peer forwarding device includes:
获取网络拓扑信息; Obtain network topology information;
根据所述网络拓扑信息建立检测链路。Establishing a detection link according to the network topology information.
在本发明的一种实施例中,所述获取网络拓扑信息包括:接收控制端发送的网络拓扑信息。In an embodiment of the present invention, the acquiring network topology information includes: receiving network topology information sent by the control end.
在本发明的一种实施例中,在接收控制端发送的网络拓扑信息之前,还包括:In an embodiment of the present invention, before receiving the network topology information sent by the control terminal, the method further includes:
接收对端转发设备根据控制端发送的报文发送通知消息发送的链路发现消息,所述报文通知消息包括对端转发设备的标识信息和发送链路发现消息的端口标识信息;And receiving, by the peer forwarding device, a link discovery message sent by the packet sending notification message sent by the control terminal, where the packet notification message includes the identifier information of the peer forwarding device and the port identifier information of the sending link discovery message;
将本端转发设备的端口标识信息和接收所述链路发现消息的端口标识信息加入所述链路发现消息中;Adding the port identification information of the local forwarding device and the port identification information of the link discovery message to the link discovery message;
发送所述链路发现消息给所述控制端使所述控制端根据所述发现链路消息生成网络拓扑信息。Sending the link discovery message to the control end, so that the control end generates network topology information according to the discovery link message.
在本发明的一种实施例中,所述接收所述对端转发设备通过所述检测链路发送的检测报文包括:通过所述检测链路接收所述对端转发设备根据预设周期发送的检测报文;所述根据所述检测报文判断所述检测链路是否出现故障包括:在预设周期内判断是否收到所述检测报文,如果没收到,则判断为所述检测链路出现故障。In an embodiment of the present invention, the receiving, by the peer forwarding device, the detection packet sent by using the detection link includes: receiving, by using the detection link, the peer forwarding device to send according to a preset period. Determining whether the detection link is faulty according to the detection packet includes: determining whether the detection packet is received within a preset period, and if not, determining that the detection chain is The road has failed.
为解决上述问题,本发明实施例还提供一种转发设备,包括建链模块、接收模块、判断模块和上报模块:To solve the above problem, the embodiment of the present invention further provides a forwarding device, including a chain building module, a receiving module, a determining module, and a reporting module:
所述建链模块设置为与对端转发设备建立检测链路;The chain building module is configured to establish a detection link with the peer forwarding device;
所述接收模块设置为通过所述检测链路接收所述对端转发设备发送的检测报文;The receiving module is configured to receive the detection packet sent by the peer forwarding device by using the detection link;
所述判断模块设置为根据所述检测报文判断所述检测链路是否出现故障;The determining module is configured to determine, according to the detection message, whether the detection link is faulty;
所述上报模块设置为当判断所述检测链路出现故障时,上报故障信息给控制端。The reporting module is configured to report the fault information to the control end when determining that the detection link is faulty.
在本发明的一种实施例中,所述建链模块包括获取子模块和建链子模块;In an embodiment of the present invention, the chain building module includes an acquiring submodule and a chain building submodule;
所述获取子模块设置为获取网络拓扑信息;The obtaining submodule is configured to acquire network topology information;
所述建链子模块设置为根据所述网络拓扑信息建立检测链路。The chain building submodule is configured to establish a detection link according to the network topology information.
在本发明的一种实施例中,所述获取子模块还设置为:接收控制端发送的网络拓扑信息。In an embodiment of the present invention, the acquiring submodule is further configured to: receive network topology information sent by the control end.
在本发明的一种实施例中,所述建链模块还包括链路子模块:所述链路子模块设置为:在接收控制端发送的网络拓扑信息之前,接收对端转发设备根据控制端发送的报文发送通知消息发送的链路发现消息,所述报文通知消息包括对端转发设备的标识信息和发送链路发现消息的端口标识信息;将本端转发设备的端口标识信息和接收所述链路发现消息的端口标识信息加入所述链路发现消息中;发送所述链路发现消息给所述控制端使所述控制端根据所述发现链路消息生成网络拓扑信息。 In an embodiment of the present invention, the link building module further includes a link submodule: the link submodule is configured to: before receiving the network topology information sent by the control end, receiving the peer forwarding device according to the control end The sent message sends a link discovery message sent by the notification message, where the message notification message includes the identification information of the peer forwarding device and the port identification information of the link discovery message; the port identification information of the local forwarding device and the receiving The port identification information of the link discovery message is added to the link discovery message; the link discovery message is sent to the control end to enable the control end to generate network topology information according to the discovery link message.
在本发明的一种实施例中,所述接收模块还设置为接收所述对端转发设备根据预设周期通过所述检测链路发送的检测报文;所述判断模块还设置为:在所述预设周期内判断是否收到所述检测报文,如果没收到,则判断为所述检测链路出现故障。In an embodiment of the present invention, the receiving module is further configured to receive a detection packet that is sent by the peer forwarding device by using the detection link according to a preset period; the determining module is further configured to: It is determined whether the detection packet is received within the preset period, and if not received, it is determined that the detection link is faulty.
本发明实施例的有益效果是:The beneficial effects of the embodiments of the present invention are:
本发明实施例提供的基于软件定义网络的链路故障上报方法和转发设备,包括:与对端转发设备建立检测链路;接收所述对端转发设备通过所述检测链路发送的检测报文;根据检测报文判断检测链路是否出现故障;当判断检测链路出现故障时,上报给控制端。与现有技术相比,本端转发设备与对端转发设备之间建立了检测链路,通过检测报文来对本端转发设备与对端转发设备之间的链路进行检测,不需要定时收到控制端的链路检测包才进行链路检测,避免了控制端全网发布链路检测包,同时提高了链路检测的实时性,故而在不影响控制器性能的前提下可缩短链路检测以及故障信息上报的时间。The link fault reporting method and the forwarding device based on the software-defined network provided by the embodiment of the present invention include: establishing a detection link with the peer forwarding device; and receiving the detection packet sent by the peer forwarding device through the detection link. According to the detection packet, it is judged whether the link is faulty; when it is judged that the detection link is faulty, it is reported to the control terminal. Compared with the prior art, the local forwarding device establishes a detection link between the forwarding device and the peer forwarding device, and detects the link between the local forwarding device and the remote forwarding device by detecting the packet. Link detection is performed on the link detection packet of the control end, which avoids the link detection packet being released by the control end of the entire network, and improves the real-time performance of the link detection, thereby shortening the link detection without affecting the performance of the controller. And the time when the fault information is reported.
附图说明DRAWINGS
图1为本发明实施例一提供的基于软件定义网络的链路故障上报方法流程图;1 is a flowchart of a link fault reporting method based on a software-defined network according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的基于软件定义网络的链路故障上报方法流程图;2 is a flowchart of a link fault reporting method based on a software-defined network according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的基于软件定义网络的链路故障上报方法流程图;3 is a flowchart of a link fault reporting method based on a software-defined network according to Embodiment 3 of the present invention;
图4为本发明实施例四提供的转发设备结构示意图一;4 is a schematic structural diagram 1 of a forwarding device according to Embodiment 4 of the present invention;
图5为本发明实施例四提供的转发设备结构示意图二;FIG. 5 is a schematic structural diagram 2 of a forwarding device according to Embodiment 4 of the present invention;
图6为本发明实施例四提供的转发设备结构示意图三。FIG. 6 is a schematic structural diagram 3 of a forwarding device according to Embodiment 4 of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings. It is obvious that the described embodiments are a part of the embodiments of the present invention. Rather than all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一:Embodiment 1:
本实施例的基于软件定义网络的链路故障上报方法,如图1所示,该方法包括:The link fault reporting method of the software-defined network in this embodiment is as shown in FIG. 1 , and the method includes:
步骤S101:与对端转发设备建立检测链路; Step S101: Establish a detection link with the peer forwarding device.
在该步骤中,本端转发设备与对端转发设备建立检测链路,这里的检测链路可以是单独进行建立的链路,也可以是原来本端转发设备与对端转发设备的业务链路。这里的转发设备是指在软件定义网络的转发面或者转发层,具体的可以是交换机,也可以是物理节点。其中,本端转发设备一般指与控制端直接进行连接的转发设备,对端转发设备是指与本端转发设备相连的相邻转发设备。In this step, the local forwarding device establishes a detection link with the peer forwarding device. The detection link here may be a link that is established separately, or may be a service link between the local forwarding device and the remote forwarding device. . The forwarding device here refers to a forwarding plane or a forwarding layer of the software-defined network, and may specifically be a switch or a physical node. The local forwarding device generally refers to a forwarding device that is directly connected to the control device. The remote forwarding device refers to a neighboring forwarding device that is connected to the local forwarding device.
步骤S102:接收对端转发设备通过检测链路发送的检测报文;Step S102: Receive a detection packet sent by the peer forwarding device through the detection link.
在该步骤中,应该理解为对端转发设备会通过检测链路发送的检测报文给本端转发设备,当然本端转发设备也可以发送检测报文给对端转发设备。这里的检测报文可以特定的报文,也可以利用具有标识信息的业务报文,应该理解为只要能进行识别判断的报文都可以。In this step, it should be understood that the peer forwarding device sends the detection packet to the local forwarding device through the detection packet sent by the detection link. The local forwarding device can also send the detection packet to the peer forwarding device. The detection message here may be a specific message or a service message with identification information, and it should be understood that any message that can be identified and judged can be used.
步骤S103:根据检测报文判断检测链路是否出现故障;Step S103: Determine, according to the detection message, whether the link is faulty.
在该步骤中,具体的可以是判断是否收到该检测报文,如果收到该检测报文,则认为检测链路没有出现故障,如果没有收到该检测报文则认为检测链路出现故障。值得注意的是,这里的检测链路出现故障即可表示两个转发设备之间的链路出现故障。In this step, the specific detection may be to determine whether the detection packet is received. If the detection packet is received, the detection link is not faulty. If the detection packet is not received, the detection link is faulty. . It is worth noting that the failure of the detection link here indicates that the link between the two forwarding devices is faulty.
步骤S104:当判断检测链路出现故障时,上报故障信息给控制端。Step S104: When it is determined that the detection link is faulty, the fault information is reported to the control end.
在该步骤中,本端转发设备在得知存在故障时,将故障信息上报给控制端以便控制端进行相应的处理。这里的故障信息包括具体的链路信息和对应的转发设备的标识信息等。In this step, when the local forwarding device knows that there is a fault, the local terminal forwards the fault information to the control terminal for the control terminal to perform corresponding processing. The fault information here includes specific link information and corresponding identification information of the forwarding device.
在上述步骤S101中,与对端转发设备建立检测链路具体可以:获取网络拓扑信息;根据网络拓扑信息建立检测链路。这里的获取网络拓扑信息可以是自身去获取,也可以接收人工输入,优选的,从控制端去获取,因为在软件定义网络中,控制端一般管理的整个网络的网络拓扑信息。即获取网络拓扑信息包括:接收控制端发送的网络拓扑信息。In the foregoing step S101, establishing a detection link with the peer forwarding device may specifically: acquire network topology information; and establish a detection link according to the network topology information. The obtaining network topology information here may be obtained by itself, or may receive manual input, preferably, obtained from the control end, because in the software-defined network, the network topology information of the entire network generally managed by the control end. That is, obtaining network topology information includes: receiving network topology information sent by the control end.
进一步,在接收控制端发送的网络拓扑信息之前,还包括:接收对端转发设备根据控制端的发送报文发送通知消息发送的链路发现消息,报文通知消息包括对端转发设备的标识信息和发送链路发现消息的端口标识信息;将本端转发设备的端口标识信息和接收链路发现消息的端口标识信息加入链路发现消息中;发送链路发现消息给控制端使控制端根据发现链路消息生成网络拓扑信息。即在从控制端获取网络拓扑信息之前,协助控制端进行网络拓扑信息的建立。Further, before receiving the network topology information sent by the control terminal, the method further includes: receiving a link discovery message sent by the peer forwarding device according to the sending message sending notification message of the control end, where the message notification message includes the identifier information of the peer forwarding device and The port identification information of the link discovery message is sent; the port identification information of the local forwarding device and the port identification information of the receiving link discovery message are added to the link discovery message; the link discovery message is sent to the control end, so that the control end is based on the discovery chain. The road message generates network topology information. That is, before the network topology information is obtained from the control end, the control terminal is assisted to establish network topology information.
进一步,为了减低系统中的交互信息,提高系统的处理能力,具体通过检测链路向对端转发设备发送检测报文包括:根据预设周期通过检测链路向对端转发设备发送检测报文;根据检测报文判断检测链路是否出现故障包括:在预设周期内判断是否收到检测报文,如果没收到,则判断为检测链路出现故障。Further, in order to reduce the interaction information in the system and improve the processing capability of the system, the detection packet is sent to the peer forwarding device through the detection link, and the detection packet is sent to the peer forwarding device through the detection link according to the preset period. Determining whether the detection link is faulty according to the detection packet includes: determining whether the detection packet is received within a preset period, and if not, determining that the detection link is faulty.
实施例二:Embodiment 2:
本实施例的基于软件定义网络的链路故障上报方法,本实例中以转发设备为交换机,控 制端为控制器为例进行说明,如图2所示,该方法包括:The link fault reporting method based on the software-defined network in this embodiment. In this example, the forwarding device is used as a switch. The terminal is described as an example of a controller. As shown in FIG. 2, the method includes:
步骤S201:控制器通过对网络中直连交换机进行LLDP数据包的收发来获取网络拓扑信息;Step S201: The controller obtains network topology information by performing LLDP data packet transmission and reception on the direct connection switch in the network.
步骤S202:控制器命令各交换机根据拓扑链路信息建立检测链路;Step S202: The controller instructs each switch to establish a detection link according to the topology link information.
步骤S203:交换机间的检测链路建立后,周期性地快速发送检测报文;Step S203: After the detection link between the switches is established, the detection packet is sent periodically periodically.
步骤S204:如果在检测周期内没有收到对端交换机的检测报文则认为链路发生故障,通知控制器。Step S204: If the detection packet of the peer switch is not received within the detection period, the link is considered to be faulty, and the controller is notified.
其中,链路发现及拓扑管理是网络管理的基础,与传统网络中链路发现由各网元自主控制不同,SDN网络中的链路发现由控制器统一管理。SDN控制器主要使用LLDP(Link Layer Discovery Protocol,链路层发现协议)作为链路发现协议。SDN网络中的链路发现过程如下:Among them, link discovery and topology management are the basis of network management. Compared with traditional network, link discovery is controlled by each network element. The link discovery in the SDN network is managed by the controller. The SDN controller mainly uses LLDP (Link Layer Discovery Protocol) as the link discovery protocol. The link discovery process in the SDN network is as follows:
1)控制器将直连交换机的设备标识、端口标识、管理地址等信息组织成不同的TLV(Type/Length/Value,类型/长度/值)封装在LLDPDU(Link Layer Discovery Protocol Date Unit,链路层发现协议数据单元)中。封装LLDPDU的LLDP报文中还需包含特定的组播、目的MAC地址,以及特定的以太网类型。控制器通过OpenFlow协议的packet-out消息向直连交换机下发指令,要求其从指定端口发出LLDP数据包;1) The controller organizes the information such as the device identifier, the port identifier, and the management address of the directly connected switch into different TLVs (Type/Length/Value, Type/Length/Value) encapsulated in the Link Layer Discovery Protocol Date Unit (LLDPDU). Layer discovery protocol data unit). LLDP packets encapsulated with LLDPDUs must also contain specific multicast, destination MAC addresses, and specific Ethernet types. The controller sends an instruction to the directly connected switch through the packet-out message of the OpenFlow protocol, and requests the LLDP packet to be sent from the designated port.
2)直连交换机收到消息后将LLDP数据包通过指定端口发送给对端交换机;2) After receiving the message, the direct connection switch sends the LLDP data packet to the peer switch through the designated port;
3)对端交换机收到数据包后,通过OpenFlow协议的packet-in消息将数据包发送给控制器;3) After receiving the data packet, the peer switch sends the data packet to the controller through the packet-in message of the OpenFlow protocol;
4)控制器收到数据包后将直连交换机与其邻居交换机的链接信息保存在链路发现表中。控制器通过对其他交换机及端口进行上述LLDP数据包的发送和接收操作,就能绘制网络的拓扑视图。4) After receiving the data packet, the controller saves the link information of the direct switch and its neighbor switch in the link discovery table. The controller can draw the topology view of the network by performing the above-mentioned LLDP data packet transmission and reception operations on other switches and ports.
本实例的方法在原有的控制器通过LLDP协议获得链路拓扑方案的基础上,加入拓扑链路状态检测设置,通过建立检测链路快速获得链路故障信息,将故障收敛速度缩短在毫秒级,即设置预设周期为毫秒级,进行故障上报也为毫秒级。The method of the present example adds the topology link state detection setting to the original controller through the LLDP protocol to obtain the link topology, and quickly obtains the link fault information by establishing the detection link, and shortens the fault convergence speed to the millisecond level. That is, the preset period is set to the millisecond level, and the fault reporting is also in the millisecond level.
实施例三:Embodiment 3:
本实施例的基于软件定义网络的链路故障上报方法,本实例中以转发设备为交换机,控制端为控制器为例进行说明,SDN网络中OF交换机接受控制器的管理,控制器根据LLDP数据包的收发生成网络拓扑链路后,通知交换机建立检测链路,具体如图3所示,该方法包括:The link fault reporting method of the software-defined network in this embodiment. In this example, the forwarding device is a switch, and the control terminal is a controller. The OF switch in the SDN network accepts management of the controller, and the controller controls the LLDP data. After the packet is sent and received to generate a network topology link, the switch is notified to establish a detection link. As shown in FIG. 3, the method includes:
步骤S301:控制器将设备标识和端口标识封装在LLDP报文,通过OpenFlow协议的packet-out消息向OF交换机下发命令,命令交换机通过其指定端口发出LLDP报文; Step S301: The controller encapsulates the device identifier and the port identifier in the LLDP packet, and sends a command to the OF switch through the packet-out message of the OpenFlow protocol, and the command switch sends the LLDP packet through the designated port.
在该步骤中,具体的,控制器将交换机标识A,端口标识i封装在LLDPDU包中,通过OpenFlow协议的packet-out消息发送给OF交换机A,命令OF交换机A通过i端口发出LLDP数据包;控制器将交换机标识B,端口标识j封装在LLDPDU包中,通过OpenFlow协议的packet-out消息发送给OF交换机B,命令OF交换机B通过j端口发出LLDP数据包。In this step, specifically, the controller encapsulates the switch identifier A, and the port identifier i is encapsulated in the LLDPDU packet, and is sent to the OF switch A through the packet-out message of the OpenFlow protocol, and the OF switch A is instructed to send the LLDP data packet through the i port. The controller encapsulates the switch identifier B and the port identifier j in the LLDPDU packet, and sends the packet to the OF switch B through the packet-out message of the OpenFlow protocol, and commands the OF switch B to send the LLDP packet through the j port.
步骤S302:OF交换机收到消息后,通过报文的指定端口发出LLDP报文;Step S302: After receiving the message, the OF switch sends an LLDP packet through the designated port of the packet.
在该步骤中,具体的,OF交换A收到消息后,通过i端口发出LLDP数据包;OF交换B收到消息后,通过j端口发出LLDP数据包。In this step, specifically, after receiving the message, the OF exchange A sends an LLDP data packet through the i port; after receiving the message, the OF exchange B sends an LLDP data packet through the j port.
步骤S303:邻居交换机收到LLDP报文后,将本端标识和端口标识封装进LLDP报文中,通过OpenFlow协议的packet-in消息发给控制器;Step S303: After receiving the LLDP packet, the neighboring switch encapsulates the local identifier and the port identifier into the LLDP packet, and sends the packet to the controller through the packet-in message of the OpenFlow protocol.
在该步骤中,具体的,OF交换机B收到OF交换机A的LLDP数据包,在原有数据包内容的基础上加入自身设备标识B,接收端口标识j,通过OpenFlow协议的packet-in消息发给控制器;OF交换机A收到OF交换机B的LLDP数据包,在原有数据包内容的基础上加入自身设备标识A,接收端口标识i,通过OpenFlow协议的packet-in消息发给控制器。In this step, specifically, the OF switch B receives the LLDP data packet of the OF switch A, adds its own device identifier B based on the content of the original data packet, and receives the port identifier j, which is sent through the packet-in message of the OpenFlow protocol. The controller switch A receives the LLDP data packet of the OF switch B, adds its own device identifier A to the original data packet, and receives the port identifier i, and sends the packet-in message to the controller through the OpenFlow protocol.
步骤S304:控制器根据收到的LLDP报文将直连交换机与其相邻交换机的信息保存在链路发现表中,控制器根据链路发现表生成拓扑视图;Step S304: The controller saves the information of the direct switch and its neighboring switch in the link discovery table according to the received LLDP packet, and the controller generates a topology view according to the link discovery table.
步骤S305:控制器将链路拓扑信息发给交换机,命令交换机建立检测链路;Step S305: The controller sends the link topology information to the switch, and the command switch establishes a detection link.
在该步骤中,具体的,控制器将链路信息本端标识A,本端接口i,远端标识B,远端接口j通过协议发送给OF交换机A,命令OF交换机A建立检测链路;控制器将链路信息本端标识B,本端接口j,远端标识A,远端接口i通过协议发送给OF交换机B,命令OF交换机B建立检测链路。In this step, specifically, the controller sends the link information local end identification A, the local end interface i, the remote identification B, and the remote interface j to the OF switch A through the protocol, and the OF switch A is instructed to establish a detection link; The controller sends the local end of the link information B, the local interface j, the remote ID A, and the remote interface i to the OF switch B through the protocol, and the OF switch B is instructed to establish a detection link.
步骤S306:OF交换机收到建立检测链路的消息后,建立双向检测链路(可使用自定义协议,也可使用已有的BFD协议),同时设置链路检测时间定时器,定时向邻居交换机发送并接收检测报文;Step S306: After receiving the message of establishing the detection link, the OF switch establishes a bidirectional detection link (a custom protocol may be used, or an existing BFD protocol may be used), and a link detection time timer is set at the same time, and the neighboring switch is set to the neighboring switch. Send and receive detection messages;
步骤S307:当检测链路故障时,本端交换机上报故障信息给控制器,控制器更新检测链路状态,同时控制器更新拓扑视图。Step S307: When detecting a link failure, the local switch reports the fault information to the controller, and the controller updates the detected link state, and the controller updates the topology view.
在该步骤中,具体的,检测链路故障,OF交换机A在链路定时检测时间内未收到邻居交换机发送的检测报文,同时,OF交换机B在链路定时检测时间内未收到邻居交换机发送的检测报文,则认为链路故障,修改链路状态。交换机同时上报控制器检测链路故障。这里的拓扑视图为网络拓扑信息的一种实例。In this step, specifically, the link fault is detected, and the OF switch A does not receive the detection packet sent by the neighboring switch during the link timing detection time, and the OF switch B does not receive the neighbor within the link timing detection time. If the test packet sent by the switch is faulty, the link is faulty and the link status is modified. The switch reports the controller to detect the link fault. The topology view here is an example of network topology information.
其中,本实例中的LLDP数据包和LLDP报文是链路发现消息格式的一种实例,packet-in消息是链路发现消息的一种实例,packet-out消息为报文发送通知消息的一种实例,应该理解为其他格式或消息内容只要能进行消息通知发送或链路发现都可以实现。 The LLDP data packet and the LLDP packet in this example are an example of a link discovery message format, the packet-in message is an instance of a link discovery message, and the packet-out message is a packet sending notification message. For example, it should be understood that other formats or message content can be implemented as long as message notification or link discovery can be performed.
实施例四:Embodiment 4:
本实施例提供一种转发设备400,如图4所示,包括建链模块401、接收模块402、判断模块403和上报模块404:其中,建链模块401设置为与对端转发设备建立检测链路;接收模块402设置为通过检测链路接收对端转发设备发送的检测报文;判断模块403设置为根据检测报文判断检测链路是否出现故障;上报模块404设置为当判断检测链路出现故障时,上报故障信息给控制端。The embodiment of the present invention provides a forwarding device 400, as shown in FIG. 4, including a chain building module 401, a receiving module 402, a determining module 403, and a reporting module 404: wherein the chain building module 401 is configured to establish a detection chain with the peer forwarding device. The receiving module 402 is configured to receive the detection packet sent by the peer forwarding device by using the detection link; the determining module 403 is configured to determine whether the link is faulty according to the detection packet; and the reporting module 404 is configured to determine that the detection link appears. When the fault occurs, the fault information is reported to the control terminal.
本实施例还提供一种转发设备400,如图5所示,建链模块404包括获取子模块4011和建链子模块4012;其中,获取子模块4011设置为获取网络拓扑信息;建链子模块4012设置为根据网络拓扑信息建立检测链路。The embodiment further provides a forwarding device 400. As shown in FIG. 5, the chain building module 404 includes an obtaining submodule 4011 and a chain building submodule 4012. The obtaining submodule 4011 is configured to acquire network topology information; and the building submodule 4012 is configured. Establish a detection link based on network topology information.
进一步,获取子模块4011还设置为:接收控制端发送的网络拓扑信息。Further, the obtaining submodule 4011 is further configured to: receive network topology information sent by the control end.
本实施例还提供一种转发设备400,如图6所示,建链模块401还包括链路子模块4013:链路子模块4013设置为:在接收控制端发送的网络拓扑信息之前,接收对端转发设备根据控制端发送的报文发送通知消息发送的链路发现消息,报文通知消息包括对端转发设备的标识信息和发送链路发现消息的端口标识信息;将本端转发设备的端口标识信息和接收链路发现消息的端口标识信息加入链路发现消息中;发送链路发现消息给控制端使控制端根据发现链路消息生成网络拓扑信息。The embodiment further provides a forwarding device 400. As shown in FIG. 6, the link building module 401 further includes a link submodule 4013. The link submodule 4013 is configured to receive the network topology information before receiving the control terminal. The terminal forwarding device sends a link discovery message sent by the notification message according to the packet sent by the control terminal. The packet notification message includes the identifier information of the peer forwarding device and the port identification information of the link discovery message. The identifier information and the port identification information of the receiving link discovery message are added to the link discovery message. The link discovery message is sent to the control end to enable the control end to generate network topology information according to the discovery link message.
进一步,接收模块402还设置为接收对端转发设备根据预设周期通过检测链路发送的检测报文;判断模块403还设置为:在预设周期内判断是否收到检测报文,如果没收到,则判断为检测链路出现故障。Further, the receiving module 402 is further configured to receive the detection packet sent by the peer forwarding device through the detection link according to the preset period; the determining module 403 is further configured to: determine whether the detection packet is received within the preset period, if not received , it is judged that the detection link is faulty.
在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。In another embodiment, software is also provided for performing the technical solutions described in the above embodiments and preferred embodiments.
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。In another embodiment, a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,上述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program that instructs the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
以上实施例仅用以说明本发明的技术方案而非限制,仅仅参照较佳实施例对本发明进行了详细说明。本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神和范围,均应涵盖在本发明的权利要求范围当中。 The above embodiments are only intended to illustrate the technical solutions of the present invention and are not to be construed as limiting the invention. It should be understood by those skilled in the art that the present invention may be modified or equivalently substituted without departing from the spirit and scope of the invention.
工业实用性Industrial applicability
本发明实施例提供上述技术方案,可以应用于链路故障检测过程中,通过与对端转发设备建立检测链路;接收所述对端转发设备通过所述检测链路发送的检测报文;根据检测报文判断检测链路是否出现故障;当判断检测链路出现故障时,上报给控制端。与现有技术相比,本端转发设备与对端转发设备之间建立了检测链路,通过检测报文来对本端转发设备与对端转发设备之间的链路进行检测,不需要定时收到控制端的链路检测包才进行链路检测,避免了控制端全网发布链路检测包,同时提高了链路检测的实时性,故而在不影响控制器性能的前提下可缩短链路检测以及故障信息上报的时间。 The embodiment of the present invention provides the foregoing technical solution, which may be applied to a link fault detection process, by establishing a detection link with the peer forwarding device, and receiving a detection packet sent by the peer forwarding device through the detection link; The detection packet is used to determine whether the link is faulty. When it is determined that the detection link is faulty, it is reported to the control terminal. Compared with the prior art, the local forwarding device establishes a detection link between the forwarding device and the peer forwarding device, and detects the link between the local forwarding device and the remote forwarding device by detecting the packet. Link detection is performed on the link detection packet of the control end, which avoids the link detection packet being released by the control end of the entire network, and improves the real-time performance of the link detection, thereby shortening the link detection without affecting the performance of the controller. And the time when the fault information is reported.

Claims (10)

  1. 一种基于软件定义网络的链路故障上报方法,包括:A link fault reporting method based on a software-defined network includes:
    与对端转发设备建立检测链路;Establishing a detection link with the peer forwarding device;
    接收所述对端转发设备通过所述检测链路发送的检测报文;Receiving a detection packet sent by the peer forwarding device through the detection link;
    根据所述检测报文判断所述检测链路是否出现故障;Determining, according to the detection message, whether the detection link is faulty;
    当判断所述检测链路出现故障时,上报故障信息给控制端。When it is determined that the detection link is faulty, the fault information is reported to the control end.
  2. 如权利要求1所述的基于软件定义网络的链路故障上报方法,其中,所述与对端转发设备建立检测链路包括:The software-defined network-based link fault reporting method of claim 1, wherein the establishing a detection link with the peer forwarding device comprises:
    获取网络拓扑信息;Obtain network topology information;
    根据所述网络拓扑信息建立检测链路。Establishing a detection link according to the network topology information.
  3. 如权利要求2所述的基于软件定义网络的链路故障上报方法,其中,所述获取网络拓扑信息包括:接收控制端发送的网络拓扑信息。The software-defined network-based link fault reporting method of claim 2, wherein the obtaining the network topology information comprises: receiving network topology information sent by the control terminal.
  4. 如权利要求3所述的基于软件定义网络的链路故障上报方法,其中,在接收控制端发送的网络拓扑信息之前,还包括:The software-defined network-based link fault reporting method of claim 3, wherein before receiving the network topology information sent by the control terminal, the method further includes:
    接收对端转发设备根据控制端发送的报文发送通知消息发送的链路发现消息,所述报文通知消息包括对端转发设备的标识信息和发送链路发现消息的端口标识信息;And receiving, by the peer forwarding device, a link discovery message sent by the packet sending notification message sent by the control terminal, where the packet notification message includes the identifier information of the peer forwarding device and the port identifier information of the sending link discovery message;
    将本端转发设备的端口标识信息和接收所述链路发现消息的端口标识信息加入所述链路发现消息中;Adding the port identification information of the local forwarding device and the port identification information of the link discovery message to the link discovery message;
    发送所述链路发现消息给所述控制端使所述控制端根据所述发现链路消息生成网络拓扑信息。Sending the link discovery message to the control end, so that the control end generates network topology information according to the discovery link message.
  5. 如权利要求1-4任一项所述的基于软件定义网络的链路故障上报方法,其中,所述接收所述对端转发设备通过所述检测链路发送的检测报文包括:通过所述检测链路接收所述对端转发设备根据预设周期发送的检测报文;所述根据所述检测报文判断所述检测链路是否出现故障包括:在预设周期内判断是否收到所述检测报文,如果没收到,则判断为所述检测链路出现故障。The software-defined network-based link failure reporting method according to any one of claims 1 to 4, wherein the receiving the detection message sent by the peer forwarding device through the detection link comprises: The detecting link receives the detection packet sent by the peer forwarding device according to the preset period; and determining whether the detection link is faulty according to the detection packet includes: determining, according to the preset period, whether the received packet is received The packet is detected, and if it is not received, it is determined that the detection link is faulty.
  6. 一种转发设备,包括:建链模块、接收模块、判断模块和上报模块:A forwarding device includes: a chain building module, a receiving module, a determining module, and a reporting module:
    所述建链模块设置为与对端转发设备建立检测链路;The chain building module is configured to establish a detection link with the peer forwarding device;
    所述接收模块设置为通过所述检测链路接收所述对端转发设备发送的检测报文;The receiving module is configured to receive the detection packet sent by the peer forwarding device by using the detection link;
    所述判断模块设置为根据所述检测报文判断所述检测链路是否出现故障;The determining module is configured to determine, according to the detection message, whether the detection link is faulty;
    所述上报模块设置为当判断所述检测链路出现故障时,上报故障信息给控制端。 The reporting module is configured to report the fault information to the control end when determining that the detection link is faulty.
  7. 如权利要求6所述的转发设备,其中,所述建链模块包括获取子模块和建链子模块;The forwarding device of claim 6, wherein the chain building module comprises an obtaining submodule and a chain building submodule;
    所述获取子模块设置为获取网络拓扑信息;The obtaining submodule is configured to acquire network topology information;
    所述建链子模块设置为根据所述网络拓扑信息建立检测链路。The chain building submodule is configured to establish a detection link according to the network topology information.
  8. 如权利要求7所述的转发设备,其中,所述获取子模块还设置为:接收控制端发送的网络拓扑信息。The forwarding device of claim 7, wherein the obtaining sub-module is further configured to: receive network topology information sent by the control terminal.
  9. 如权利要求8所述的转发设备,其中,所述建链模块还包括链路子模块:所述链路子模块设置为:在接收控制端发送的网络拓扑信息之前,接收对端转发设备根据控制端发送的报文发送通知消息发送的链路发现消息,所述报文通知消息包括对端转发设备的标识信息和发送链路发现消息的端口标识信息;将本端转发设备的端口标识信息和接收所述链路发现消息的端口标识信息加入所述链路发现消息中;发送所述链路发现消息给所述控制端使所述控制端根据所述发现链路消息生成网络拓扑信息。The forwarding device of claim 8, wherein the chain building module further comprises a link submodule: the link submodule is configured to receive the peer forwarding device according to the network topology information sent by the control terminal The link discovery message sent by the message sent by the control end is sent by the notification message, and the message notification message includes the identifier information of the peer forwarding device and the port identification information of the link discovery message. The port identification information of the link discovery message is added to the link discovery message; the link discovery message is sent to the control end to enable the control end to generate network topology information according to the discovery link message.
  10. 如权利要求6-9任一项所述的转发设备,其中,所述接收模块还设置为接收所述对端转发设备根据预设周期通过所述检测链路发送的检测报文;所述判断模块还设置为:在所述预设周期内判断是否收到所述检测报文,如果没收到,则判断为所述检测链路出现故障。 The forwarding device according to any one of claims 6-9, wherein the receiving module is further configured to receive a detection message sent by the peer forwarding device through the detection link according to a preset period; The module is further configured to: determine whether the detection packet is received within the preset period, and if not, determine that the detection link is faulty.
PCT/CN2016/073801 2015-09-17 2016-02-15 Software defined network-based link failure reporting method and forwarding device WO2016165463A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510592179.9 2015-09-17
CN201510592179.9A CN106549774A (en) 2015-09-17 2015-09-17 A kind of link failure report method and forwarding unit based on software defined network

Publications (1)

Publication Number Publication Date
WO2016165463A1 true WO2016165463A1 (en) 2016-10-20

Family

ID=57125834

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/073801 WO2016165463A1 (en) 2015-09-17 2016-02-15 Software defined network-based link failure reporting method and forwarding device

Country Status (2)

Country Link
CN (1) CN106549774A (en)
WO (1) WO2016165463A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112152862A (en) * 2020-10-16 2020-12-29 中国联合网络通信集团有限公司 Topology acquisition method of hybrid network, SDN controller and SDN switch
CN112615733A (en) * 2020-12-08 2021-04-06 广东沃科融合通讯有限公司 Terminal fault judgment method and device, electronic equipment and storage medium
CN113612636A (en) * 2021-07-28 2021-11-05 北京邮电大学 Software defined network topology discovery method and system
CN115865742A (en) * 2022-11-16 2023-03-28 天翼云科技有限公司 Method and system for detecting unidirectional link fault of white box switch

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107426030B (en) * 2017-08-09 2020-11-06 杭州迪普科技股份有限公司 Link fault reminding method and device
CN113497740A (en) * 2020-03-18 2021-10-12 中国电信股份有限公司 Network forwarding equipment, link fault detection method, device and storage medium
CN112073270B (en) * 2020-09-15 2022-03-25 新华三信息安全技术有限公司 Link fault detection method and device
CN112804122B (en) * 2021-01-12 2022-07-22 昆高新芯微电子(江苏)有限公司 Message link fault diagnosis method and device and computer readable storage medium
CN112887126B (en) * 2021-01-12 2022-11-11 昆高新芯微电子(江苏)有限公司 Message link diagnosis method and device and computer storage medium
CN112910742A (en) * 2021-03-15 2021-06-04 杭州迪普科技股份有限公司 Link state detection method and device
CN113079059A (en) * 2021-03-23 2021-07-06 深圳市信锐网科技术有限公司 Network state monitoring method and device, electronic equipment and readable storage medium
CN113595939B (en) * 2021-07-28 2022-03-18 北京邮电大学 Method and system for discovering unidirectional link of software defined network
CN113595828B (en) * 2021-07-28 2022-09-20 北京邮电大学 Software defined network topology detection method and system
CN115378852A (en) * 2022-08-18 2022-11-22 北京中航弱电系统工程有限公司 Network line troubleshooting method and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013928A (en) * 2007-02-07 2007-08-08 华为技术有限公司 Apparatus and method for implementing line fault detection of pseudo-wire simulation
CN103078791A (en) * 2013-01-31 2013-05-01 华为技术有限公司 Method, device and system for processing operation, administration and maintenance (OAM) message
CN103428031A (en) * 2013-08-05 2013-12-04 浙江大学 Inter-domain link fast failure recovery method based on software defined network
WO2014057375A2 (en) * 2012-10-08 2014-04-17 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for accelerating forwarding in software-defined networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013928A (en) * 2007-02-07 2007-08-08 华为技术有限公司 Apparatus and method for implementing line fault detection of pseudo-wire simulation
WO2014057375A2 (en) * 2012-10-08 2014-04-17 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for accelerating forwarding in software-defined networks
CN103078791A (en) * 2013-01-31 2013-05-01 华为技术有限公司 Method, device and system for processing operation, administration and maintenance (OAM) message
CN103428031A (en) * 2013-08-05 2013-12-04 浙江大学 Inter-domain link fast failure recovery method based on software defined network

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112152862A (en) * 2020-10-16 2020-12-29 中国联合网络通信集团有限公司 Topology acquisition method of hybrid network, SDN controller and SDN switch
CN112152862B (en) * 2020-10-16 2023-04-07 中国联合网络通信集团有限公司 Topology acquisition method of hybrid network, SDN controller and SDN switch
CN112615733A (en) * 2020-12-08 2021-04-06 广东沃科融合通讯有限公司 Terminal fault judgment method and device, electronic equipment and storage medium
CN112615733B (en) * 2020-12-08 2023-04-18 广东沃科融合通讯有限公司 Terminal fault judgment method and device, electronic equipment and storage medium
CN113612636A (en) * 2021-07-28 2021-11-05 北京邮电大学 Software defined network topology discovery method and system
CN115865742A (en) * 2022-11-16 2023-03-28 天翼云科技有限公司 Method and system for detecting unidirectional link fault of white box switch

Also Published As

Publication number Publication date
CN106549774A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
WO2016165463A1 (en) Software defined network-based link failure reporting method and forwarding device
US8593945B2 (en) Connectivity fault management traffic indication extension
US9467363B2 (en) Network system and method of managing topology
EP2985952B1 (en) Method and device for protecting service reliability, and network virtualization system
US11374857B2 (en) Network device management method and apparatus, and system for indicating a network device to perform management operation
US11811511B2 (en) Method, apparatus, and system for communication between controllers in TSN
EP2553870B1 (en) An operations, administrations and management proxy and a method for handling operations, administrations and management messages
EP3142303A1 (en) Network control method and apparatus
TWI639325B (en) Automatically configured switch,method of automatically configuring a switch, and software defined network system with auto-deployment switches and auto-deploying method thereof
WO2016095322A1 (en) Vrrp-based data transmission method and apparatus
WO2015096426A1 (en) Ethernet oam configuration method and device
EP2775663B1 (en) Method and device for recovering customer service
WO2016192402A1 (en) Method and apparatus for adjusting maximum transmission unit of ipv6 tunnel
US20090059920A1 (en) Method for processing lmp packets, lmp packet processing unit and lmp packet processing node
WO2016065925A1 (en) Controller replacing method and device
WO2015100978A1 (en) Method and system for automatic discovery of controller in software defined network and controller
CN103840965A (en) Method for enhancing quick fault convergence in RSTP
WO2016095750A1 (en) Communication method and device in virtual switching cluster
JP5954793B2 (en) COMMUNICATION CONNECTION DEVICE, COMMUNICATION CONTROL DEVICE, ITS PROGRAM, AND COMMUNICATION CONTROL METHOD
JP2017183925A (en) Communication system and control device
WO2011147176A1 (en) Method and device for processing no request protocol frame of ethernet ring network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16779438

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16779438

Country of ref document: EP

Kind code of ref document: A1