WO2018219300A1 - Method and apparatus for packet exchange in sdn - Google Patents
Method and apparatus for packet exchange in sdn Download PDFInfo
- Publication number
- WO2018219300A1 WO2018219300A1 PCT/CN2018/089062 CN2018089062W WO2018219300A1 WO 2018219300 A1 WO2018219300 A1 WO 2018219300A1 CN 2018089062 W CN2018089062 W CN 2018089062W WO 2018219300 A1 WO2018219300 A1 WO 2018219300A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- packet
- domain
- sdn
- bfd
- openflow
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/34—Signalling channels for network management communication
- H04L41/342—Signalling channels for network management communication between virtual entities, e.g. orchestrators, SDN or NFV entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/20—Arrangements for monitoring or testing data switching networks the monitoring system or the monitored elements being virtualised, abstracted or software-defined entities, e.g. SDN or NFV
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/33—Flow control; Congestion control using forward notification
Definitions
- the present disclosure relates to the field of communications, and in particular, to a message exchange method and apparatus in an SDN.
- BFD Bidirectional Forwarding Detection
- BFD detects a bidirectional forwarding path between two routers by establishing a session on two routers or routing switches. It does not discover the mechanism itself. Instead, it is notified by the upper layer protocol of the service that it should establish a session. If the BFD control packet is not received within the detection time after the session is established, it is considered to be faulty, and the upper layer protocol of the service is notified. The upper layer protocol performs corresponding processing.
- BFD is more bound to the forwarding plane. It only detects the connection status of the next hop device. It can detect faults on any type of channel and support all major routing protocols such as OSPF/ISIS/BGP. When a link fault is detected, It can quickly release link status, start network convergence, and select redundant backup links.
- SDN Software Defined Network
- Openflow protocol Openflow protocol
- Embodiments of the present disclosure provide a message interaction method and apparatus in an SDN.
- a message interaction method in an SDN including:
- the in-domain SDN device of the OpenFlow domain receives the first openflow packet sent by the SDN controller, where the first openflow packet carries the configuration information of the probe packet, and the SDN device in the domain generates the identifier according to the configuration information. Detecting the packet and sending the probe packet to the out-of-domain device of the openflow domain; the SDN device in the domain receives the response packet fed back by the out-of-domain device, and the second openflow carrying the response packet The message is sent to the SDN controller.
- the type of the probe packet includes at least one of the following: a bidirectional forwarding detection BFD packet, and a border gateway protocol BGP packet.
- the method includes: the SDN device in the domain receives a first openflow message sent by an SDN controller, where the first openflow
- the packet carries the BFD configuration information.
- the BFD detection packet is generated according to the BFD configuration information, and the BFD detection packet is sent to the out-of-domain device.
- the BFD response packet sent by the out-of-domain device is received.
- the second open-flow message of the BFD response packet is sent to the SDN controller, where the SDN controller determines the BFD link status according to the BFD response packet, or the SDN controller is at a preset time.
- the BFD response packet sent by the SDN device in the domain is not received, and the status of the BFD link is Down.
- the BFD configuration information is carried in an Experimenter message in the first openflow message.
- the method includes: the SDN device in the domain receives a first openflow message sent by an SDN controller, where the first openflow The BGP configuration information is carried in the packet; the BGP protocol packet is generated according to the BGP configuration information, and the BGP protocol packet is sent to the out-of-domain device; and the BGP response packet sent by the out-of-domain device is received.
- the second openflow message of the BGP response message is sent to the SDN controller, where the SDN controller determines the neighbor information of the SDN device in the domain according to the BGP response message.
- a packet exchange method in an SDN including: an SDN controller of an Openflow domain sends a first openflow packet to an intra-domain SDN device, where the first openflow packet
- the configuration information of the probe packet is carried, wherein the SDN device in the domain generates the probe packet according to the configuration information, and sends the probe packet to an out-of-domain device, where the domain device refers to the
- the SDN device in the domain sends a response packet corresponding to the probe packet;
- the SDN controller receives the second openflow packet sent by the SDN device in the domain, where the second openflow packet is the SDN device in the domain Generated according to the response message.
- the type of the probe packet includes at least one of the following: a bidirectional forwarding detection BFD packet, and a border gateway protocol BGP packet.
- the method includes: the SDN controller sending the first openflow message to an intra-domain SDN device, where the first The openflow packet carries the BFD configuration information, where the BFD configuration information is used to generate a BFD detection packet in the SDN device in the domain; the SDN controller detects the SDN device and the domain in the domain according to the BFD detection packet.
- the BFD link status between the out-of-domain devices is described; the SDN controller generates routing information of the SDN switch in the domain according to the BFD link status, and sends the routing information to the intra-domain SDN switch.
- the BFD link status between the SDN device in the intra-domain and the out-of-domain device is detected according to the BFD detection packet, including one of the following: receiving a BFD response sent by the SDN device in the intra-domain
- the SDN controller determines the BFD link status according to the BFD response packet, wherein the BFD response packet is fed back to the intra-domain SDN device by the out-of-band device according to the BFD detection packet.
- the SDN controller determines that the BFD link status is Down, if the BFD response packet sent by the SDN device in the domain is not received within the preset time.
- transmitting the routing information to the intra-domain SDN switch includes transmitting the routing information to the SDN switch via a flowmod message of an openflow protocol.
- a message interaction device in an SDN is also provided, which is applied to an intra-domain SDN device in an Openflow domain, and includes: a first receiving module, configured to receive a first openflow report sent by an SDN controller The first openflow packet carries the configuration information of the probe packet; the first sending module is configured to generate the probe packet according to the configuration information, and send the probe packet to the location
- the out-of-domain device of the openflow domain is configured to receive a response packet that is sent by the out-of-domain device, and send a second openflow packet carrying the response packet to the SDN controller.
- the first receiving module is configured to receive a first openflow packet sent by the SDN controller, where the first openflow packet is The BFD configuration information is carried in the first sending module, and the first sending module is configured to generate a BFD detection packet according to the BFD configuration information, and send the BFD detection packet to the out-of-domain device; the first reporting module is configured as a receiving device.
- the BFD response packet sent by the out-of-domain device sends the second open-flow packet carrying the BFD response packet to the SDN controller, where the SDN controller determines the BFD chain according to the BFD response packet.
- the state of the road, or the SDN controller does not receive the BFD response packet sent by the SDN device in the domain within a preset time, and determines that the BFD link status is Down.
- the first receiving module is configured to receive a first openflow packet sent by the SDN controller, where the first openflow packet is The BGP configuration information is carried in the first sending module, and the first sending module is configured to generate a BGP protocol packet according to the BGP configuration information, and send the BGP protocol packet to the out-of-domain device;
- the BGP response packet sent by the out-of-domain device sends the second openflow packet carrying the BGP response packet to the SDN controller, where the SDN controller determines the intra-domain SDN according to the BGP response packet. Neighbor information of the device.
- a message interaction device in an SDN is further provided, which is applied to an SDN controller of an Openflow domain, and includes: a second sending module, configured to send a first openflow message to an SDN device in the domain
- the first openflow packet carries the configuration information of the probe packet, where the SDN device in the domain generates the probe packet according to the configuration information, and sends the probe packet to the out-of-domain device.
- the out-of-domain device sends a response packet corresponding to the probe packet to the SDN device in the intra-domain;
- the second receiving module is configured to receive the second openflow packet sent by the SDN device in the domain, where The second openflow message is generated by the SDN device in the domain according to the response message.
- a storage medium is also provided.
- the storage medium is arranged to store program code for performing the following steps:
- the in-domain SDN device of the OpenFlow domain receives the first openflow packet sent by the SDN controller, where the first openflow packet carries the configuration information of the probe packet.
- the SDN device in the domain generates the probe packet according to the configuration information, and sends the probe packet to an out-of-domain device in the openflow domain.
- the SDN device in the domain receives the response packet that is sent by the out-of-domain device, and sends the second openflow packet carrying the response packet to the SDN controller.
- the storage medium is also arranged to store program code for performing the following steps:
- the SDN controller of the OpenFlow domain sends the first openflow packet to the SDN device in the domain, where the first openflow packet carries the configuration information of the probe packet, where the SDN device in the domain generates the location according to the configuration information. Transmitting the packet, and sending the probe packet to the out-of-domain device, where the out-of-domain device sends a response packet corresponding to the probe packet to the SDN device in the intra-domain;
- the SDN controller receives the second openflow packet sent by the SDN device in the domain, where the second openflow packet is generated by the SDN device in the domain according to the response packet.
- Embodiments of the present disclosure also provide a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement any of the methods described above.
- the SDN controller sends an openflow packet carrying the configuration information of the probe packet to the SDN device, and the probe packet may be a BFD protocol or a BGP protocol, and the SDN device generates the probe packet according to the configuration information, and sends the probe packet.
- the device is sent to the SDN controller in the form of an open-flow packet.
- the solution is used to apply some protocol packets in the traditional network to solve the problem. Some of the protocols in the application to the SDN issue.
- FIG. 1 is a flowchart of a message interaction method in an SDN according to an embodiment of the present disclosure
- FIG. 2 is a flowchart of a message interaction method in an SDN according to an embodiment of the present disclosure
- FIG. 3 is a schematic diagram showing an internal module structure and a processing flow of an SDN controller according to an exemplary embodiment of the present disclosure
- FIG. 4 is a schematic diagram of a BFD detection scenario for static routing of an out-of-band device according to an exemplary embodiment of the present disclosure
- FIG. 5 is a schematic diagram of a format of an OpenFlow Experimenter message message designed for BFD detection according to an exemplary embodiment of the present disclosure
- FIG. 6 is a message interaction apparatus according to an exemplary embodiment of the present disclosure.
- FIG. 7 is still another message interaction apparatus according to an exemplary embodiment of the present disclosure.
- the solution in the embodiment of the present disclosure can be applied to an SDN, and relates to an SDN controller and an SDN device in an openflow domain. That is, the network architecture in the present disclosure includes an SDN controller and an SDN device.
- FIG. 1 is a flowchart of a packet interaction method in an SDN according to an embodiment of the present disclosure, as shown in FIG. The process includes the following steps:
- Step S102 The intra-domain SDN device of the OpenFlow domain receives the first openflow packet sent by the SDN controller, where the first openflow packet carries the configuration information of the probe packet.
- Step S104 The SDN device in the domain generates the probe packet according to the configuration information, and sends the probe packet to an out-of-domain device in the openflow domain.
- Step S106 The SDN device in the domain receives the response packet that is sent by the out-of-domain device, and sends the second openflow packet carrying the response packet to the SDN controller.
- the SDN controller sends an openflow packet carrying the configuration information of the probe packet to the SDN device, and the probe packet may be a BFD protocol or a BGP protocol, and the SDN device generates the probe packet according to the configuration information, and sends the probe packet.
- the device is sent to the SDN controller in the form of an open-flow packet.
- the solution is used to apply some protocol packets in the traditional network to solve the problem. Some of the protocols in the application to the SDN issue.
- the type of the detection packet may include at least one of the following: a Bidirectional Forwarding Detection (BFD) packet, and a Border Gateway Protocol (BGP) packet.
- BFD Bidirectional Forwarding Detection
- BGP Border Gateway Protocol
- the probe packet may also be a packet with probing properties such as user link detection and neighbor discovery in a conventional network.
- the method may include: the SDN device in the domain receives the first openflow packet sent by the SDN controller, where the first openflow packet carries the BFD packet.
- the configuration information is generated according to the BFD configuration information, and the BFD detection packet is sent to the out-of-domain device; the BFD response packet sent by the out-of-domain device is received, and the BFD response packet is carried.
- sending, by the SDN controller, the BFD link status according to the BFD response packet, or the SDN controller does not receive the preset time within the preset time.
- the BFD response packet sent by the SDN device in the domain determines that the BFD link status is Down.
- the reason for adopting the above-mentioned exemplary embodiment is that, in view of the advantages of BFD in link diagnosis, the SDN is used to learn the BFD diagnosis result, thereby knowing the UP/DOWN state of the corresponding link, re-routing, and then combining the flow of openflow.
- Table sending and traffic diversion can dynamically adjust the forwarding of network data packets. When the network is faulty, you can quickly switch to the backup link to speed up network convergence. When the network is normal, the traffic pressure on the switch can be adjusted according to the result of link detection and flow metering, and the network throughput and resource usage ratio are dynamically balanced.
- the BFD configuration information may be carried in the experimental Experimenter message in the first openflow message.
- the method may include: the SDN device in the domain receives the first openflow packet sent by the SDN controller, where the first openflow packet carries the BGP packet.
- the configuration information is generated according to the BGP configuration information, and the BGP protocol packet is sent to the out-of-domain device; the BGP response packet sent by the out-of-domain device is received, and the BGP response packet is carried.
- the second openflow packet is sent to the SDN controller, where the SDN controller determines neighbor information of the SDN device in the domain according to the BGP response packet. What is described in this embodiment is a scheme in which BGP is applied in SDN.
- FIG. 2 is a flowchart of a message interaction method in an SDN according to an embodiment of the present disclosure. As shown in FIG. 2, the process includes the following steps:
- the SDN controller of the OpenFlow domain sends the first openflow packet to the SDN device in the domain, where the first openflow packet carries the configuration information of the probe packet, where the SDN device in the domain is configured according to the configuration. And generating, by the information, the probe packet, and sending the probe packet to an out-of-domain device, where the out-of-domain device sends a response packet corresponding to the probe packet to the SDN device in the intra-domain;
- Step S204 The SDN controller receives the second openflow packet sent by the SDN device in the domain, where the second openflow packet is generated by the SDN device in the domain according to the response packet.
- the type of the detection packet may include at least one of the following: a bidirectional forwarding detection BFD packet, and a border gateway protocol BGP packet.
- the method may include: the SDN controller sends the first openflow packet to an intra-domain SDN device, where the first openflow packet carries The BFD configuration information, where the BFD configuration information is used to generate a BFD detection packet in the SDN device in the intra-domain; the SDN controller detects, according to the BFD detection packet, between the SDN device in the domain and the extra-domain device.
- the BFD link status is generated by the SDN controller according to the BFD link status, and the routing information is sent to the intra-domain SDN switch.
- Sending the routing information to the intra-domain SDN switch may include: sending the routing information to the SDN switch by using a flowmod message of the openflow protocol.
- the purpose of the exemplary embodiments of the present disclosure is to provide an implementation solution that is functionally independent, configurable, adjustable, dynamically creating a deleted fast detection link failure, and generating a static route.
- the exemplary embodiment of the present disclosure adopts the following scheme, and the exemplary embodiment of the present disclosure mainly relates to the following parts:
- the BFD session management application module is located on the SDN controller and stores information such as the creation and deletion of BFD and the BFD link status sent by the openflow protocol stack.
- the open-flow packet sending and receiving packet module is located in the SDN controller, and is configured to send an openflow message to the device in the corresponding SDN domain, and the message can be used to create a BFD session, a BFD session state, a flow rule, etc., thereby implementing an intra-domain SDN switch. Control of device forwarding.
- the static route application configuration calculation module is located in the SDN controller. It is mainly configured to calculate and calculate routing information from the SDN in the domain to the next hop IP and corresponding device port of the out-of-domain device.
- the SDN device in the domain is the main packet forwarding device. According to the meaning of the flow table sent by the SDN controller, the corresponding forwarding device is executed for the message that meets the condition.
- the in-domain SDN device can also dynamically create a detection result of deleting the BFD session and sending it to the SDN controller BFD under the control of the user.
- Step 1 The user configures static routing information on the network on the SDN controller in the domain.
- the BFD session management module is triggered to disassemble the egress link and port to be detected.
- Step 2 The BFD session management module creates a corresponding BFD session for the link that is removed in step 1, and sends an extended Experimenter message to the intra-domain SDN device through the openflow packet sending and receiving packet module.
- Step 3 The SDN device in the domain receives the openflow message for parsing, obtains the corresponding control parameter settings, and constructs and sends the traditional BFD detection packet to the out-of-domain device.
- the traditional BFD detection message in the present disclosure refers to a BFD detection message running in a traditional network relative to SDN in the technical field).
- Step 4 The out-of-domain device receives the BFD test packet and returns a response packet.
- Step 5 The SDN device in the domain detects the BFD response packet, and sends the BFD response packet to the SDN controller in the form of an OpenFlow packet.
- the BFD link status (UP/DOWN) is determined by the SDN controller. Or, within a preset time, the SDN device does not receive the response packet of the out-of-domain device, and determines that there is a problem in the link between the SDN device and the out-of-domain device.
- Step 6 The transceiver module of the SDN controller parses the status of the BFD session to notify the subscriber of the message.
- Step 7 The BFD session management module subscribes to the openflow message of the transceiver module, updates the BFD session state, and notifies the corresponding route and status to the static route configuration calculation module.
- Step 8 The static route configuration calculation module automatically selects a redundant backup link, generates corresponding routing information, and resends the route to the SDN switch device in the domain.
- the flowmod message of the openflow protocol is used to send a flow table to the corresponding switch, and the pipeline processing of the switch is adjusted, so that the packet is forwarded according to the newly generated routing information.
- the exemplary embodiments of the present disclosure focus on the link detection between the SDN domain edge switch and the external traditional network device, and the static route detection switching technology field facilitates the merging of the SDN and the traditional network.
- the BFD link detection between the traditional devices serves the traditional routing protocol.
- the openflow protocol bearer is used, and the routing information of the devices in the SDN domain is generated by the software control calculation, so that the SDN device can also achieve fast route selection. , the purpose of the switch.
- the present invention provides a achievable and adjustable static route implementation technology for edge switch switching in an SDN domain, and solves the reality of mixed deployment of SDN and traditional networks, data forwarding, traffic drainage, and the like. problem. Since the BFD detection parameters can be adjusted, information such as static routes can be modified, so that the switch device on the data forwarding plane is more controllable, and the controllability and flexibility of use of the SDN are enhanced. In addition, a packet encapsulation format that can be implemented by the SDN for BFD detection is provided, which facilitates interaction with an SDN device in the domain.
- the exemplary embodiment of the present disclosure provides a BFD detection mechanism applicable to static routes in the SDN domain, but the principle can also be applied to scenarios such as BGP neighbor discovery in the SDN domain.
- FIG. 3 is a schematic diagram of an internal module structure and a processing flow of an SDN controller according to an exemplary embodiment of the present disclosure. As shown in FIG. 3, the following internal modules of the SDN controller for the static route fast switching process are cooperatively completed.
- the static route management module 101 is mainly responsible for the static route configuration management of the user, and the fast routing under the failure of the routing link, and the sending of the routing entry of the switch.
- the BGP neighbor management module 102 shown in FIG. 3 is the upper-layer user of the BFD session management module 201, like the static route management module 101. Both the static route and the BGP neighbor can send a BFD session request to the BFD session management module.
- the static route management 101 module When the SDN controller is configured with a static route, the static route management 101 module records the configuration information, finds the corresponding IP network segment and the device ID and port, and sends a flow mode message to the corresponding device through the OpenFlow packet 301 module.
- the ds ip On the device, the ds ip is the egress port of the flow table of the network segment where the next hop is located. Therefore, the control switch forwards the packets matching the destination IP address to the next hop.
- the request processing direction shown in Figure 3 is 7--- >3. Note: In the description of the exemplary embodiments of the present disclosure, the destination IPs all correspond to a certain port of the out-of-domain device.
- the static route management module 101 sends a BFD session creation request to the BFD session management module 201 for detecting the status of the link between the SDN switch and the corresponding out-of-domain device.
- the sequence of the process request is as shown in Figure 3, 1->>2.
- FIG. 5 is a schematic diagram of a format of an OpenFlow Experimenter message message designed for BFD detection according to an exemplary embodiment of the present disclosure.
- the BFD session parameters include the tx_interval, the min_rx_interval, and the detect_multi. When multiple applications are bound to the same BFD session, the session parameters are selected to be the smallest.
- the process request sequence is as shown in the process 3 of FIG. 3 .
- the negotiation interaction process is described in detail in Figure 4.
- the SDN device After receiving the BFD session response from the out-of-band device, the SDN device encapsulates the Experimenter message containing the BFD state and sends it to the OpenFlow transceiver packet module 301 of the SDN controller.
- the message subtype and message content carried by the experimenter message in the processes 3 and 4 shown in Figure 3 are different.
- the process includes the operations of creating and deleting a BFD session, and configuration parameters.
- the process 4 is the session state (UP/DOWN) content on the BFD link.
- the OpenFlow transceiver module in the SDN After receiving the BFD session status message, the OpenFlow transceiver module in the SDN notifies the subscriber of the BFD session management module 201 of the message, and the session management module notifies the static routing module of the UP/DOWN status on the link.
- the sequence of the process is shown in Figure 3, 5-->6.
- the static route management module 101 After receiving the message, the static route management module 101 recalculates the available static route according to the state of the corresponding link, and finds the routing information such as the device id, port, and ip network segment of the available next hop, and re-passes the OpenFlow transceiver module.
- the 301 sends the flow mode packet of the openflow to the corresponding edge SDN switch, and adjusts the forwarding flow table configuration of the switch. As shown in Figure 3, the process 7--->3.
- FIG. 4 is a schematic diagram of a BFD detection scenario for a static route of an extra-domain device according to an exemplary embodiment of the present disclosure
- FIG. 4 is a deployable BFD simple detection scenario for an extra-domain link static route. The deployment steps are as follows:
- Step one first ensure that the openflow connection between the SDN switch and the SDN controller is normal.
- Step 2 Connect the SDN device to the traditional extra-domain device.
- the SDN device and the traditional extra-domain device are dual-connected.
- Step 3 Assume that the SDN switch forwards the packet whose destination address is the out-of-band network 10.42.93.2, and configures two static routing information on the SDN controller to the SDN switch device in the domain.
- the content of the routing information is the next hop network segment address to the destination address of 10.42.93.2, which is the network segment where the ports Port1 and Port2 of the device are located.
- Port1 and Port2 port IP can be on different network segments.
- Step 4 the controller will initiate BFD detection of 3 and 4 in the link shown in FIG. 4 at this time.
- the SDN controller controls the static route switching of the SDN switch to switch from the link 4 to the legacy device outside the domain.
- the method according to the above embodiments can be implemented by means of software, server, or software plus a necessary general hardware platform, and of course, through hardware, but In many cases the former is the usual implementation.
- the solution of the present disclosure may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM, a magnetic disk, an optical disk), and includes a plurality of instructions for making one
- the terminal device (computer, server) performs the methods described in various embodiments of the present disclosure.
- a packet interaction device in an SDN is also provided in the embodiment of the present disclosure.
- the device is used to implement the foregoing embodiments and exemplary embodiments, and details are not described herein.
- the term "module” may implement a combination of software and/or hardware of a predetermined function.
- the devices described in the following embodiments are typically implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- a message interaction device 60 in an SDN is also provided, which is applied to an intra-domain SDN device in an Openflow domain.
- the device 60 includes: a first receiving module 61.
- the first openflow packet is sent to receive the configuration information of the probe packet, and the first sending module 62 is configured to generate the probe according to the configuration information.
- the first reporting module 63 is configured to receive the response packet fed back by the out-of-domain device, and carry the response packet
- the second openflow message is sent to the SDN controller.
- the first receiving module 61 may be configured to receive the first openflow packet sent by the SDN controller, where the first openflow packet carries the BFD configuration.
- the first sending module 62 is configured to generate a BFD detection packet according to the BFD configuration information, and send the BFD detection packet to an out-of-domain device; the first reporting module 63 is configured to receive the extra-domain device.
- the SDN controller does not receive the BFD response packet sent by the SDN device in the domain within a preset time, and determines that the BFD link status is Down.
- the first receiving module 61 may be configured to receive the first openflow packet sent by the SDN controller, where the first openflow packet carries the BGP configuration.
- the first sending module 62 is configured to generate a BGP protocol packet according to the BGP configuration information, and send the BGP protocol packet to an out-of-domain device; the first reporting module 63 is configured to receive the out-of-domain device. And sending, by the BGP response packet, the second openflow packet carrying the BGP response packet to the SDN controller, where the SDN controller determines the neighbor of the SDN device in the domain according to the BGP response packet information.
- a message interaction device 70 in an SDN is provided, which is applied to an SDN controller of an Openflow domain.
- the device 70 includes: a second sending module 71.
- the first openflow packet is sent to the SDN device in the domain, where the first openflow packet carries the configuration information of the probe packet, where the SDN device in the domain generates the probe packet according to the configuration information.
- the second receiving module 72 is configured to receive the domain identifier.
- the second openflow packet sent by the SDN device, where the second openflow packet is generated by the SDN device in the domain according to the response packet.
- the above modules may be implemented by software or hardware.
- the foregoing may be implemented by, but not limited to, the above modules are all located in the same processor; or, the above modules are respectively located in different combinations. In the processor.
- a storage medium is also provided.
- the storage medium is arranged to store program code for performing the following steps:
- the intra-domain SDN device of the OpenFlow domain receives the first openflow packet sent by the SDN controller, where the first openflow packet carries the configuration information of the probe packet.
- the SDN device in the domain generates the probe packet according to the configuration information, and sends the probe packet to an out-of-domain device in the openflow domain.
- the SDN device in the domain receives the response packet that is sent by the out-of-domain device, and sends the second openflow packet carrying the response packet to the SDN controller.
- the storage medium can also be configured to store program code for performing the following steps:
- the SDN controller of the Openflow domain sends the first openflow packet to the intra-domain SDN device, where the first openflow packet carries the configuration information of the probe packet, where the SDN device in the domain is configured according to the configuration information. Generating the probe packet, and sending the probe packet to the out-of-domain device, where the out-of-domain device sends a response packet corresponding to the probe packet to the intra-domain SDN device;
- the SDN controller receives the second openflow packet sent by the SDN device in the domain, where the second openflow packet is generated by the SDN device in the domain according to the response packet.
- the foregoing storage medium may include, but not limited to, a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
- ROM Read-Only Memory
- RAM Random Access Memory
- mobile hard disk a magnetic disk
- magnetic disk a magnetic disk
- optical disk a variety of media that can store program code.
- the processor may perform the method steps in the above embodiments according to the stored program code in the storage medium.
- computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media.
- Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or may Any other medium used to store the desired information and that can be accessed by the computer.
- communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .
- the SDN controller sends an openflow packet carrying the configuration information of the probe packet to the SDN device, and the probe packet may be a BFD protocol or a BGP protocol, and the SDN device generates the probe packet according to the configuration information, and sends the probe packet.
- the device is sent to the SDN controller in the form of an open-flow packet.
- the solution is used to apply some protocol packets in the traditional network to solve the problem. Some of the protocols in the application to the SDN issue.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
本公开涉及通信领域,具体而言,涉及一种SDN中的报文交互方法及装置。The present disclosure relates to the field of communications, and in particular, to a message exchange method and apparatus in an SDN.
双向转发检测协议(Bidirectional Forwarding Detection,简称为BFD)通过在两台路由器或者路由交换机上建立会话,检测两台路由器之间的双向转发路径。它本身没有发现机制,而是靠被服务的上层协议通知其该与谁建立会话,会话建立后如果在检测时间内没有收到对端的BFD控制报文则认为发生故障,通知被服务的上层协议,上层协议进行相应的处理。BFD定位更多是绑定到转发平面,只检测下一跳设备连接状态,能在任何类型通道上进行故障检测,支持OSPF/ISIS/BGP等全部主流路由协议,当检测到链路发生故障,能快速发布链路状态,启动网络收敛,选择冗余备份链路。Bidirectional Forwarding Detection (BFD) detects a bidirectional forwarding path between two routers by establishing a session on two routers or routing switches. It does not discover the mechanism itself. Instead, it is notified by the upper layer protocol of the service that it should establish a session. If the BFD control packet is not received within the detection time after the session is established, it is considered to be faulty, and the upper layer protocol of the service is notified. The upper layer protocol performs corresponding processing. BFD is more bound to the forwarding plane. It only detects the connection status of the next hop device. It can detect faults on any type of channel and support all major routing protocols such as OSPF/ISIS/BGP. When a link fault is detected, It can quickly release link status, start network convergence, and select redundant backup links.
软件定义网络(Software Defined Network,简称为SDN)是一种新型的网络创新架构,其核心技术是通过Openflow协议将网络设置的控制面与转发面分离开来,从而实现网络流量的灵活控制。交换机只专注于转发,控制(链路发现、拓扑生成、arp、引流、路由等)均由SDN控制器实现。不过传统网络中的某些协议无法应用到SDN。Software Defined Network (SDN) is a new type of network innovation architecture. Its core technology is to separate the control plane and forwarding plane of the network through the Openflow protocol, thus achieving flexible control of network traffic. The switch only focuses on forwarding, and control (link discovery, topology generation, arp, traffic, routing, etc.) is implemented by the SDN controller. However, some protocols in traditional networks cannot be applied to SDN.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本公开实施例提供了一种SDN中的报文交互方法及装置。Embodiments of the present disclosure provide a message interaction method and apparatus in an SDN.
根据本公开的一个实施例,提供了一种SDN中的报文交互方法,包括:According to an embodiment of the present disclosure, a message interaction method in an SDN is provided, including:
Openflow域的域内SDN设备接收SDN控制器发送的第一openflow报文,其中,所述第一openflow报文中携带有探测报文的配置信息;所述域 内SDN设备依据所述配置信息生成所述探测报文,并将所述探测报文发送至所述openflow域的域外设备;所述域内SDN设备接收所述域外设备反馈的响应报文,并将携带有所述响应报文的第二openflow报文发送至所述SDN控制器。The in-domain SDN device of the OpenFlow domain receives the first openflow packet sent by the SDN controller, where the first openflow packet carries the configuration information of the probe packet, and the SDN device in the domain generates the identifier according to the configuration information. Detecting the packet and sending the probe packet to the out-of-domain device of the openflow domain; the SDN device in the domain receives the response packet fed back by the out-of-domain device, and the second openflow carrying the response packet The message is sent to the SDN controller.
在示例性实施例中,所述探测报文的类型包括以下至少之一:双向转发检测BFD报文,边界网关协议BGP报文。In an exemplary embodiment, the type of the probe packet includes at least one of the following: a bidirectional forwarding detection BFD packet, and a border gateway protocol BGP packet.
在示例性实施例中,在所述探测报文为BFD报文的情况下,所述方法包括:所述域内SDN设备接收SDN控制器发送的第一openflow报文,其中,所述第一openflow报文中携带有BFD配置信息;依据所述BFD配置信息生成BFD检测报文,并将所述BFD检测报文发送至域外设备;接收所述域外设备发送的BFD响应报文,将携带有所述BFD响应报文的第二openflow报文发送至所述SDN控制器,其中,所述SDN控制器依据所述BFD响应报文确定BFD链路状态,或者,所述SDN控制器在预设时间内没有收到所述域内SDN设备发送的所述BFD响应报文,确定所述BFD链路状态为Down。In an exemplary embodiment, in the case that the detection packet is a BFD packet, the method includes: the SDN device in the domain receives a first openflow message sent by an SDN controller, where the first openflow The packet carries the BFD configuration information. The BFD detection packet is generated according to the BFD configuration information, and the BFD detection packet is sent to the out-of-domain device. The BFD response packet sent by the out-of-domain device is received. The second open-flow message of the BFD response packet is sent to the SDN controller, where the SDN controller determines the BFD link status according to the BFD response packet, or the SDN controller is at a preset time. The BFD response packet sent by the SDN device in the domain is not received, and the status of the BFD link is Down.
在示例性实施例中,在所述第一openflow报文中的Experimenter消息中携带所述BFD配置信息。In an exemplary embodiment, the BFD configuration information is carried in an Experimenter message in the first openflow message.
在示例性实施例中,在所述探测报文为BGP报文的情况下,所述方法包括:所述域内SDN设备接收SDN控制器发送的第一openflow报文,其中,所述第一openflow报文中携带有BGP配置信息;依据所述BGP配置信息生成BGP协议报文,并将所述BGP协议报文发送至域外设备;接收所述域外设备发送的BGP响应报文,将携带有所述BGP响应报文的第二openflow报文发送至SDN控制器,其中,所述SDN控制器依据所述BGP响应报文确定所述域内SDN设备的邻居信息。In an exemplary embodiment, in the case that the probe packet is a BGP packet, the method includes: the SDN device in the domain receives a first openflow message sent by an SDN controller, where the first openflow The BGP configuration information is carried in the packet; the BGP protocol packet is generated according to the BGP configuration information, and the BGP protocol packet is sent to the out-of-domain device; and the BGP response packet sent by the out-of-domain device is received. The second openflow message of the BGP response message is sent to the SDN controller, where the SDN controller determines the neighbor information of the SDN device in the domain according to the BGP response message.
根据本公开的另一个实施例,还提供了一种SDN中的报文交互方法,包括:Openflow域的SDN控制器向域内SDN设备发送第一openflow报文,其中,所述第一openflow报文中携带有探测报文的配置信息,其中,所述域内SDN设备依据所述配置信息生成所述探测报文,并将所述探测报文发送至域外设备,其中,所述域外设备向所述域内SDN设备发送与所述探测 报文对应的响应报文;所述SDN控制器接收所述域内SDN设备发送的第二openflow报文,其中,所述第二openflow报文是所述域内SDN设备依据所述响应报文生成的。According to another embodiment of the present disclosure, a packet exchange method in an SDN is further provided, including: an SDN controller of an Openflow domain sends a first openflow packet to an intra-domain SDN device, where the first openflow packet The configuration information of the probe packet is carried, wherein the SDN device in the domain generates the probe packet according to the configuration information, and sends the probe packet to an out-of-domain device, where the domain device refers to the The SDN device in the domain sends a response packet corresponding to the probe packet; the SDN controller receives the second openflow packet sent by the SDN device in the domain, where the second openflow packet is the SDN device in the domain Generated according to the response message.
在示例性实施例中,所述探测报文的类型包括以下至少之一:双向转发检测BFD报文,边界网关协议BGP报文。In an exemplary embodiment, the type of the probe packet includes at least one of the following: a bidirectional forwarding detection BFD packet, and a border gateway protocol BGP packet.
在示例性实施例中,在所述探测报文为BFD报文的情况下,所述方法包括:所述SDN控制器向域内SDN设备发送所述第一openflow报文,其中,所述第一openflow报文中携带有BFD配置信息,其中,所述BFD配置信息用于在域内SDN设备内生成BFD检测报文;所述SDN控制器依据所述BFD检测报文检测所述域内SDN设备和所述域外设备之间的BFD链路状态;所述SDN控制器依据所述BFD链路状态生成域内SDN交换机的路由信息,并将所述路由信息发送至所述域内SDN交换机。In an exemplary embodiment, in the case that the detection packet is a BFD packet, the method includes: the SDN controller sending the first openflow message to an intra-domain SDN device, where the first The openflow packet carries the BFD configuration information, where the BFD configuration information is used to generate a BFD detection packet in the SDN device in the domain; the SDN controller detects the SDN device and the domain in the domain according to the BFD detection packet. The BFD link status between the out-of-domain devices is described; the SDN controller generates routing information of the SDN switch in the domain according to the BFD link status, and sends the routing information to the intra-domain SDN switch.
在示例性实施例中,依据所述BFD检测报文检测所述域内SDN设备和所述域外设备之间的BFD链路状态,包括以下之一:在接收到所述域内SDN设备发送的BFD响应报文的情况下,所述SDN控制器依据所述BFD响应报文确定BFD链路状态,其中,所述BFD响应报文是由域外设备依据所述BFD检测报文反馈给所述域内SDN设备的响应报文;在预设时间内没有接收到所述域内SDN设备发送的BFD响应报文的情况下,所述SDN控制器确定所述BFD链路状态为Down。In an exemplary embodiment, the BFD link status between the SDN device in the intra-domain and the out-of-domain device is detected according to the BFD detection packet, including one of the following: receiving a BFD response sent by the SDN device in the intra-domain In the case of the packet, the SDN controller determines the BFD link status according to the BFD response packet, wherein the BFD response packet is fed back to the intra-domain SDN device by the out-of-band device according to the BFD detection packet. The SDN controller determines that the BFD link status is Down, if the BFD response packet sent by the SDN device in the domain is not received within the preset time.
在示例性实施例中,将所述路由信息发送至所述域内SDN交换机,包括:将所述路由信息通过openflow协议的flowmod消息发送到所述SDN交换机。In an exemplary embodiment, transmitting the routing information to the intra-domain SDN switch includes transmitting the routing information to the SDN switch via a flowmod message of an openflow protocol.
根据本公开的另一个实施例,还提供了一种SDN中的报文交互装置,应用于Openflow域的域内SDN设备,包括:第一接收模块,设置为接收SDN控制器发送的第一openflow报文,其中,所述第一openflow报文中携带有探测报文的配置信息;第一发送模块,设置为依据所述配置信息生成所述探测报文,并将所述探测报文发送至所述openflow域的域外设备;第一上报模块,设置为接收所述域外设备反馈的响应报文,并将携带有所述响应报文的第二openflow报文发送至所述SDN控制器。According to another embodiment of the present disclosure, a message interaction device in an SDN is also provided, which is applied to an intra-domain SDN device in an Openflow domain, and includes: a first receiving module, configured to receive a first openflow report sent by an SDN controller The first openflow packet carries the configuration information of the probe packet; the first sending module is configured to generate the probe packet according to the configuration information, and send the probe packet to the location The out-of-domain device of the openflow domain is configured to receive a response packet that is sent by the out-of-domain device, and send a second openflow packet carrying the response packet to the SDN controller.
在示例性实施例中,在所述探测报文为BFD报文的情况下,所述第一接收模块设置为接收SDN控制器发送的第一openflow报文,其中,所述第一openflow报文中携带有BFD配置信息;所述第一发送模块设置为依据所述BFD配置信息生成BFD检测报文,并将所述BFD检测报文发送至域外设备;所述第一上报模块设置为接收所述域外设备发送的BFD响应报文,将携带有所述BFD响应报文的第二openflow报文发送至所述SDN控制器,其中,所述SDN控制器依据所述BFD响应报文确定BFD链路状态,或者,所述SDN控制器在预设时间内没有收到所述域内SDN设备发送的所述BFD响应报文,确定所述BFD链路状态为Down。In an exemplary embodiment, in the case that the detection packet is a BFD packet, the first receiving module is configured to receive a first openflow packet sent by the SDN controller, where the first openflow packet is The BFD configuration information is carried in the first sending module, and the first sending module is configured to generate a BFD detection packet according to the BFD configuration information, and send the BFD detection packet to the out-of-domain device; the first reporting module is configured as a receiving device. The BFD response packet sent by the out-of-domain device sends the second open-flow packet carrying the BFD response packet to the SDN controller, where the SDN controller determines the BFD chain according to the BFD response packet. The state of the road, or the SDN controller does not receive the BFD response packet sent by the SDN device in the domain within a preset time, and determines that the BFD link status is Down.
在示例性实施例中,在所述探测报文为BGP报文的情况下,所述第一接收模块设置为接收SDN控制器发送的第一openflow报文,其中,所述第一openflow报文中携带有BGP配置信息;所述第一发送模块设置为依据所述BGP配置信息生成BGP协议报文,并将所述BGP协议报文发送至域外设备;所述第一上报模块设置为接收所述域外设备发送的BGP响应报文,将携带有所述BGP响应报文的第二openflow报文发送至SDN控制器,其中,所述SDN控制器依据所述BGP响应报文确定所述域内SDN设备的邻居信息。In an exemplary embodiment, in a case where the probe packet is a BGP packet, the first receiving module is configured to receive a first openflow packet sent by the SDN controller, where the first openflow packet is The BGP configuration information is carried in the first sending module, and the first sending module is configured to generate a BGP protocol packet according to the BGP configuration information, and send the BGP protocol packet to the out-of-domain device; The BGP response packet sent by the out-of-domain device sends the second openflow packet carrying the BGP response packet to the SDN controller, where the SDN controller determines the intra-domain SDN according to the BGP response packet. Neighbor information of the device.
根据本公开的另一个实施例,还提供了一种SDN中的报文交互装置,应用于Openflow域的SDN控制器,包括:第二发送模块,设置为向域内SDN设备发送第一openflow报文,其中,所述第一openflow报文中携带有探测报文的配置信息,其中,所述域内SDN设备依据所述配置信息生成所述探测报文,并将所述探测报文发送至域外设备,其中,所述域外设备向所述域内SDN设备发送与所述探测报文对应的响应报文;第二接收模块,设置为接收所述域内SDN设备发送的第二openflow报文,其中,所述第二openflow报文是所述域内SDN设备依据所述响应报文生成的。According to another embodiment of the present disclosure, a message interaction device in an SDN is further provided, which is applied to an SDN controller of an Openflow domain, and includes: a second sending module, configured to send a first openflow message to an SDN device in the domain The first openflow packet carries the configuration information of the probe packet, where the SDN device in the domain generates the probe packet according to the configuration information, and sends the probe packet to the out-of-domain device. The out-of-domain device sends a response packet corresponding to the probe packet to the SDN device in the intra-domain; the second receiving module is configured to receive the second openflow packet sent by the SDN device in the domain, where The second openflow message is generated by the SDN device in the domain according to the response message.
根据本公开的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:According to still another embodiment of the present disclosure, a storage medium is also provided. The storage medium is arranged to store program code for performing the following steps:
Openflow域的域内SDN设备接收SDN控制器发送的第一openflow报文,其中,所述第一openflow报文中携带有探测报文的配置信息;The in-domain SDN device of the OpenFlow domain receives the first openflow packet sent by the SDN controller, where the first openflow packet carries the configuration information of the probe packet.
所述域内SDN设备依据所述配置信息生成所述探测报文,并将所述探测报文发送至所述openflow域的域外设备;The SDN device in the domain generates the probe packet according to the configuration information, and sends the probe packet to an out-of-domain device in the openflow domain.
所述域内SDN设备接收所述域外设备反馈的响应报文,并将携带有所述响应报文的第二openflow报文发送至所述SDN控制器。The SDN device in the domain receives the response packet that is sent by the out-of-domain device, and sends the second openflow packet carrying the response packet to the SDN controller.
在示例性实施例中,存储介质还设置为存储用于执行以下步骤的程序代码:In an exemplary embodiment, the storage medium is also arranged to store program code for performing the following steps:
Openflow域的SDN控制器向域内SDN设备发送第一openflow报文,其中,所述第一openflow报文中携带有探测报文的配置信息,其中,所述域内SDN设备依据所述配置信息生成所述探测报文,并将所述探测报文发送至域外设备,其中,所述域外设备向所述域内SDN设备发送与所述探测报文对应的响应报文;The SDN controller of the OpenFlow domain sends the first openflow packet to the SDN device in the domain, where the first openflow packet carries the configuration information of the probe packet, where the SDN device in the domain generates the location according to the configuration information. Transmitting the packet, and sending the probe packet to the out-of-domain device, where the out-of-domain device sends a response packet corresponding to the probe packet to the SDN device in the intra-domain;
所述SDN控制器接收所述域内SDN设备发送的第二openflow报文,其中,所述第二openflow报文是所述域内SDN设备依据所述响应报文生成的。The SDN controller receives the second openflow packet sent by the SDN device in the domain, where the second openflow packet is generated by the SDN device in the domain according to the response packet.
本公开实施例还提出了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现以上描述的任一方法。Embodiments of the present disclosure also provide a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement any of the methods described above.
通过本公开,SDN控制器向SDN设备发送携带有探测报文的配置信息的openflow报文,该探测报文可以是BFD协议或者BGP协议等,SDN设备依据该配置信息生成该探测报文,发送至域外设备,并将域外设备的响应报文通过openflow报文的形式发送至SDN控制器,采用上述方案,实现了在SDN中应用传统网络中的某些协议报文,解决了无法将传统网络中的某些协议应用到SDN的问题。Through the disclosure, the SDN controller sends an openflow packet carrying the configuration information of the probe packet to the SDN device, and the probe packet may be a BFD protocol or a BGP protocol, and the SDN device generates the probe packet according to the configuration information, and sends the probe packet. The device is sent to the SDN controller in the form of an open-flow packet. The solution is used to apply some protocol packets in the traditional network to solve the problem. Some of the protocols in the application to the SDN issue.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
图1是根据本公开实施例的SDN中的报文交互方法的流程图;1 is a flowchart of a message interaction method in an SDN according to an embodiment of the present disclosure;
图2是根据本公开实施例的一种SDN中的报文交互方法流程图;2 is a flowchart of a message interaction method in an SDN according to an embodiment of the present disclosure;
图3是根据本公开示例性实施例的SDN控制器内部模块结构及处理流 程示意图;FIG. 3 is a schematic diagram showing an internal module structure and a processing flow of an SDN controller according to an exemplary embodiment of the present disclosure; FIG.
图4是根据本公开示例性实施例的针对域外设备静态路由的BFD检测场景示意图;FIG. 4 is a schematic diagram of a BFD detection scenario for static routing of an out-of-band device according to an exemplary embodiment of the present disclosure; FIG.
图5是根据本公开示例性实施例的针对BFD检测设计的OpenFlow Experimenter消息报文格式示意图;FIG. 5 is a schematic diagram of a format of an OpenFlow Experimenter message message designed for BFD detection according to an exemplary embodiment of the present disclosure; FIG.
图6是根据本公开示例性实施例的一种报文交互装置;FIG. 6 is a message interaction apparatus according to an exemplary embodiment of the present disclosure; FIG.
图7是根据本公开示例性实施例的又一种报文交互装置。FIG. 7 is still another message interaction apparatus according to an exemplary embodiment of the present disclosure.
下文中将参考附图并结合实施例来详细说明本公开。The present disclosure will be described in detail below with reference to the drawings in conjunction with the embodiments.
本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。The terms "first", "second" and the like in the specification and claims of the present disclosure and the above-mentioned figures are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
示例一Example one
本公开实施例中的方案可以应用于SDN中,涉及到openflow域中的SDN控制器和SDN设备。即本公开文件中的网络架构包括SDN控制器和SDN设备。The solution in the embodiment of the present disclosure can be applied to an SDN, and relates to an SDN controller and an SDN device in an openflow domain. That is, the network architecture in the present disclosure includes an SDN controller and an SDN device.
在本公开实施例中提供了一种运行于上述网络架构的SDN中的报文交互方法,图1是根据本公开实施例的SDN中的报文交互方法的流程图,如图1所示,该流程包括如下步骤:In the embodiment of the present disclosure, a packet interaction method in an SDN of the network architecture is provided. FIG. 1 is a flowchart of a packet interaction method in an SDN according to an embodiment of the present disclosure, as shown in FIG. The process includes the following steps:
步骤S102,Openflow域的域内SDN设备接收SDN控制器发送的第一openflow报文,其中,所述第一openflow报文中携带有探测报文的配置信息;Step S102: The intra-domain SDN device of the OpenFlow domain receives the first openflow packet sent by the SDN controller, where the first openflow packet carries the configuration information of the probe packet.
步骤S104,所述域内SDN设备依据所述配置信息生成所述探测报文,并将所述探测报文发送至所述openflow域的域外设备;Step S104: The SDN device in the domain generates the probe packet according to the configuration information, and sends the probe packet to an out-of-domain device in the openflow domain.
步骤S106,所述域内SDN设备接收所述域外设备反馈的响应报文,并将携带有所述响应报文的第二openflow报文发送至所述SDN控制器。Step S106: The SDN device in the domain receives the response packet that is sent by the out-of-domain device, and sends the second openflow packet carrying the response packet to the SDN controller.
通过上述步骤,SDN控制器向SDN设备发送携带有探测报文的配置信 息的openflow报文,该探测报文可以是BFD协议或者BGP协议等,SDN设备依据该配置信息生成该探测报文,发送至域外设备,并将域外设备的响应报文通过openflow报文的形式发送至SDN控制器,采用上述方案,实现了在SDN中应用传统网络中的某些协议报文,解决了无法将传统网络中的某些协议应用到SDN的问题。Through the above steps, the SDN controller sends an openflow packet carrying the configuration information of the probe packet to the SDN device, and the probe packet may be a BFD protocol or a BGP protocol, and the SDN device generates the probe packet according to the configuration information, and sends the probe packet. The device is sent to the SDN controller in the form of an open-flow packet. The solution is used to apply some protocol packets in the traditional network to solve the problem. Some of the protocols in the application to the SDN issue.
所述探测报文的类型可以包括以下至少之一:双向转发检测(Bidirectional Forwarding Detection,简称为BFD)报文,边界网关协议(Border Gateway Protocol,简称为BGP)报文。该探测报文还可以是传统网络中用户链路检测,邻居发现等具有探测性质的报文。The type of the detection packet may include at least one of the following: a Bidirectional Forwarding Detection (BFD) packet, and a Border Gateway Protocol (BGP) packet. The probe packet may also be a packet with probing properties such as user link detection and neighbor discovery in a conventional network.
在所述探测报文为BFD报文的情况下,所述方法可以包括:所述域内SDN设备接收SDN控制器发送的第一openflow报文,其中,所述第一openflow报文中携带有BFD配置信息;依据所述BFD配置信息生成BFD检测报文,并将所述BFD检测报文发送至域外设备;接收所述域外设备发送的BFD响应报文,将携带有所述BFD响应报文的第二openflow报文发送至所述SDN控制器,其中,所述SDN控制器依据所述BFD响应报文确定BFD链路状态,或者,所述SDN控制器在预设时间内没有收到所述域内SDN设备发送的所述BFD响应报文,确定所述BFD链路状态为Down。In the case that the detection packet is a BFD packet, the method may include: the SDN device in the domain receives the first openflow packet sent by the SDN controller, where the first openflow packet carries the BFD packet. The configuration information is generated according to the BFD configuration information, and the BFD detection packet is sent to the out-of-domain device; the BFD response packet sent by the out-of-domain device is received, and the BFD response packet is carried. And sending, by the SDN controller, the BFD link status according to the BFD response packet, or the SDN controller does not receive the preset time within the preset time. The BFD response packet sent by the SDN device in the domain determines that the BFD link status is Down.
采用上述示例性实施例的原因是,鉴于BFD在链路诊断上的优势,利用SDN通过对BFD诊断结果进行学习,从而获知对应链路的UP/DOWN状态,重新选路,然后结合openflow的流表发送,流量引流,可以动态地调整网络数据报文的转发。在网络发生故障时,可以快速切换至备份链路,加快网络收敛速度。在网络正常的情况下,也可以根据链路检测的结果,结合流表引流,调整交换机所承受的流量压力,在网络吞吐能力和资源使用占比之间动态平衡。The reason for adopting the above-mentioned exemplary embodiment is that, in view of the advantages of BFD in link diagnosis, the SDN is used to learn the BFD diagnosis result, thereby knowing the UP/DOWN state of the corresponding link, re-routing, and then combining the flow of openflow. Table sending and traffic diversion can dynamically adjust the forwarding of network data packets. When the network is faulty, you can quickly switch to the backup link to speed up network convergence. When the network is normal, the traffic pressure on the switch can be adjusted according to the result of link detection and flow metering, and the network throughput and resource usage ratio are dynamically balanced.
在所述第一openflow报文中的实验Experimenter消息中可以携带所述BFD配置信息。The BFD configuration information may be carried in the experimental Experimenter message in the first openflow message.
在所述探测报文为BGP报文的情况下,所述方法可以包括:所述域内SDN设备接收SDN控制器发送的第一openflow报文,其中,所述第一openflow报文中携带有BGP配置信息;依据所述BGP配置信息生成BGP 协议报文,并将所述BGP协议报文发送至域外设备;接收所述域外设备发送的BGP响应报文,将携带有所述BGP响应报文的第二openflow报文发送至SDN控制器,其中,所述SDN控制器依据所述BGP响应报文确定所述域内SDN设备的邻居信息。该实施例中的记载的是在SDN中应用BGP的方案。In the case that the detection packet is a BGP packet, the method may include: the SDN device in the domain receives the first openflow packet sent by the SDN controller, where the first openflow packet carries the BGP packet. The configuration information is generated according to the BGP configuration information, and the BGP protocol packet is sent to the out-of-domain device; the BGP response packet sent by the out-of-domain device is received, and the BGP response packet is carried. The second openflow packet is sent to the SDN controller, where the SDN controller determines neighbor information of the SDN device in the domain according to the BGP response packet. What is described in this embodiment is a scheme in which BGP is applied in SDN.
图2是根据本公开实施例的一种SDN中的报文交互方法流程图,如图2所示,该流程包括以下步骤:FIG. 2 is a flowchart of a message interaction method in an SDN according to an embodiment of the present disclosure. As shown in FIG. 2, the process includes the following steps:
步骤S202,Openflow域的SDN控制器向域内SDN设备发送第一openflow报文,其中,所述第一openflow报文中携带有探测报文的配置信息,其中,所述域内SDN设备依据所述配置信息生成所述探测报文,并将所述探测报文发送至域外设备,其中,所述域外设备向所述域内SDN设备发送与所述探测报文对应的响应报文;In the step S202, the SDN controller of the OpenFlow domain sends the first openflow packet to the SDN device in the domain, where the first openflow packet carries the configuration information of the probe packet, where the SDN device in the domain is configured according to the configuration. And generating, by the information, the probe packet, and sending the probe packet to an out-of-domain device, where the out-of-domain device sends a response packet corresponding to the probe packet to the SDN device in the intra-domain;
步骤S204,所述SDN控制器接收所述域内SDN设备发送的第二openflow报文,其中,所述第二openflow报文是所述域内SDN设备依据所述响应报文生成的。Step S204: The SDN controller receives the second openflow packet sent by the SDN device in the domain, where the second openflow packet is generated by the SDN device in the domain according to the response packet.
所述探测报文的类型可以包括以下至少之一:双向转发检测BFD报文,边界网关协议BGP报文。The type of the detection packet may include at least one of the following: a bidirectional forwarding detection BFD packet, and a border gateway protocol BGP packet.
在所述探测报文为BFD报文的情况下,所述方法可以包括:所述SDN控制器向域内SDN设备发送所述第一openflow报文,其中,所述第一openflow报文中携带有BFD配置信息,其中,所述BFD配置信息用于在域内SDN设备内生成BFD检测报文;所述SDN控制器依据所述BFD检测报文检测所述域内SDN设备和所述域外设备之间的BFD链路状态;所述SDN控制器依据所述BFD链路状态生成域内SDN交换机的路由信息,并将所述路由信息发送至所述域内SDN交换机。In the case that the detection packet is a BFD packet, the method may include: the SDN controller sends the first openflow packet to an intra-domain SDN device, where the first openflow packet carries The BFD configuration information, where the BFD configuration information is used to generate a BFD detection packet in the SDN device in the intra-domain; the SDN controller detects, according to the BFD detection packet, between the SDN device in the domain and the extra-domain device. The BFD link status is generated by the SDN controller according to the BFD link status, and the routing information is sent to the intra-domain SDN switch.
依据所述BFD检测报文检测所述域内SDN设备和所述域外设备之间的BFD链路状态,可以包括以下之一:在接收到所述域内SDN设备发送的BFD响应报文的情况下,所述SDN控制器依据所述BFD响应报文确定BFD链路状态,其中,所述BFD响应报文是由域外设备依据所述BFD检测报文反馈给所述域内SDN设备的响应报文;在预设时间内没有接收到所述域内 SDN设备发送的BFD响应报文的情况下,所述SDN控制器确定所述BFD链路状态为Down。And detecting, according to the BFD detection packet, a BFD link state between the SDN device in the domain and the out-of-domain device, where the BFD session status is received by the SDN device in the domain, Determining, by the SDN controller, the status of the BFD link according to the BFD response packet, where the BFD response packet is a response packet that is sent by the out-of-band device to the SDN device in the domain according to the BFD detection packet; If the BFD response packet sent by the SDN device in the domain is not received within the preset time, the SDN controller determines that the BFD link status is Down.
将所述路由信息发送至所述域内SDN交换机,可以包括:将所述路由信息通过openflow协议的flowmod消息发送到所述SDN交换机。Sending the routing information to the intra-domain SDN switch may include: sending the routing information to the SDN switch by using a flowmod message of the openflow protocol.
以下结合本公开的示例性实施例进行详细说明。The detailed description is made below in conjunction with the exemplary embodiments of the present disclosure.
本公开示例性实施例的目的在于,提供一种功能独立、可配置,可调节,动态创建删除的快速检测链路故障,生成静态路由的实现部署方案。The purpose of the exemplary embodiments of the present disclosure is to provide an implementation solution that is functionally independent, configurable, adjustable, dynamically creating a deleted fast detection link failure, and generating a static route.
本公开示例性实施例采用以下方案,本公开示例性实施例主要涉及到以下部分:The exemplary embodiment of the present disclosure adopts the following scheme, and the exemplary embodiment of the present disclosure mainly relates to the following parts:
1、BFD会话管理应用模块,位于SDN控制器,主要存储记录BFD的创建和删除、openflow协议栈发送的BFD链路状态等信息。The BFD session management application module is located on the SDN controller and stores information such as the creation and deletion of BFD and the BFD link status sent by the openflow protocol stack.
2、openflow报文收发包模块,位于SDN控制器,主要设置为向对应SDN域内设备发送openflow消息,消息可承载BFD会话的创建/删除,BFD会话状态,流规则等,从而实现对域内SDN交换机设备转发的控制。The open-flow packet sending and receiving packet module is located in the SDN controller, and is configured to send an openflow message to the device in the corresponding SDN domain, and the message can be used to create a BFD session, a BFD session state, a flow rule, etc., thereby implementing an intra-domain SDN switch. Control of device forwarding.
3、静态路由应用配置计算模块,位于SDN控制器,主要设置为配置计算从域内SDN向域外设备下一跳IP、对应设备端口等路由信息。3. The static route application configuration calculation module is located in the SDN controller. It is mainly configured to calculate and calculate routing information from the SDN in the domain to the next hop IP and corresponding device port of the out-of-domain device.
4、域内SDN设备,是主要的报文转发设备。根据SDN控制器发送的流表含义,对满足条件的报文执行相应的转发设备。在本公开文件中,域内SDN设备还可以在用户的控制下动态创建删除BFD会话,发送给SDN控制器BFD的检测结果。4. The SDN device in the domain is the main packet forwarding device. According to the meaning of the flow table sent by the SDN controller, the corresponding forwarding device is executed for the message that meets the condition. In the present disclosure, the in-domain SDN device can also dynamically create a detection result of deleting the BFD session and sending it to the SDN controller BFD under the control of the user.
利用本公开示例性实施例进行静态路由检测生成的方法主要包括以下步骤:The method for performing static route detection generation by using an exemplary embodiment of the present disclosure mainly includes the following steps:
步骤一,用户在域内SDN控制器上配置网络上的静态路由信息。触发BFD会话管理模块拆解要检测的出口链路、端口。Step 1: The user configures static routing information on the network on the SDN controller in the domain. The BFD session management module is triggered to disassemble the egress link and port to be detected.
步骤二,BFD会话管理模块,对步骤一拆解出的链路创建相应的BFD会话,通过openflow报文收发包模块向域内SDN设备发送扩展的Experimenter消息。Step 2: The BFD session management module creates a corresponding BFD session for the link that is removed in step 1, and sends an extended Experimenter message to the intra-domain SDN device through the openflow packet sending and receiving packet module.
步骤三,域内SDN设备收到openflow消息进行解析,获取相应的控制 参数设置,构造并向域外设备发送传统的BFD检测报文。(在本公开文件中传统的BFD检测报文是指在技术领域中,相对SDN而言的传统网络中运行的BFD检测报文)。Step 3: The SDN device in the domain receives the openflow message for parsing, obtains the corresponding control parameter settings, and constructs and sends the traditional BFD detection packet to the out-of-domain device. (The traditional BFD detection message in the present disclosure refers to a BFD detection message running in a traditional network relative to SDN in the technical field).
步骤四,域外设备收到BFD检测报文,返回响应报文。Step 4: The out-of-domain device receives the BFD test packet and returns a response packet.
步骤五,域内SDN设备检测到BFD回应报文,将BFD回应报文发送至通过Openflow报文的形式发送至SDN控制器,由SDN控制器的收发包模块判断BFD链路状态(UP/DOWN),或者在预设时间内,SDN设备没有接收到域外设备的响应报文,则确定SDN设备与域外设备之间的链路出现问题。Step 5: The SDN device in the domain detects the BFD response packet, and sends the BFD response packet to the SDN controller in the form of an OpenFlow packet. The BFD link status (UP/DOWN) is determined by the SDN controller. Or, within a preset time, the SDN device does not receive the response packet of the out-of-domain device, and determines that there is a problem in the link between the SDN device and the out-of-domain device.
步骤六,SDN控制器的收发包模块解析出BFD会话的状态通知给消息的订阅者。Step 6: The transceiver module of the SDN controller parses the status of the BFD session to notify the subscriber of the message.
步骤七,BFD会话管理模块订阅收发包模块的openflow消息,更新BFD会话状态,并将对应链路和状态通知给静态路由配置计算模块。Step 7: The BFD session management module subscribes to the openflow message of the transceiver module, updates the BFD session state, and notifies the corresponding route and status to the static route configuration calculation module.
步骤八:静态路由配置计算模块自动选择冗余备份链路,生成对应的路由信息,重新发送路由到域内SDN交换机设备。此处主要是通过openflow协议的flowmod消息,给对应交换机发送流表,调整交换机的流水线处理,从而实现对报文按照刚生成的路由信息进行转发。Step 8: The static route configuration calculation module automatically selects a redundant backup link, generates corresponding routing information, and resends the route to the SDN switch device in the domain. Here, the flowmod message of the openflow protocol is used to send a flow table to the corresponding switch, and the pipeline processing of the switch is adjusted, so that the packet is forwarded according to the newly generated routing information.
本公开示例性实施例重点关注于SDN域边缘交换机与外部传统网络设备链路检测,静态路由检测切换技术领域,便于SDN和传统网络的融合使用。传统设备间BFD链路检测服务于传统的路由协议,在本公开示例性实施例中,使用openflow协议承载,由软件控制计算生成SDN域内设备的路由信息,从而使SDN设备也可以达到快速选择路由,切换的目的。The exemplary embodiments of the present disclosure focus on the link detection between the SDN domain edge switch and the external traditional network device, and the static route detection switching technology field facilitates the merging of the SDN and the traditional network. The BFD link detection between the traditional devices serves the traditional routing protocol. In the exemplary embodiment of the present disclosure, the openflow protocol bearer is used, and the routing information of the devices in the SDN domain is generated by the software control calculation, so that the SDN device can also achieve fast route selection. , the purpose of the switch.
相对于目前SDN中链路检测方案,提供了一种可实现、可调节的SDN域内边缘交换机链路切换的静态路由实现的技术,解决了SDN与传统网络混合部署,数据转发,流量引流等现实问题。由于BFD检测参数可调节,静态路由等信息可修改,使得数据转发面的交换机设备更可控,增强了SDN的控制性和使用的灵活性。另外,提供了SDN针对BFD检测可实现的报文封装格式,便于和域内SDN设备交互。Compared with the current link detection scheme in SDN, the present invention provides a achievable and adjustable static route implementation technology for edge switch switching in an SDN domain, and solves the reality of mixed deployment of SDN and traditional networks, data forwarding, traffic drainage, and the like. problem. Since the BFD detection parameters can be adjusted, information such as static routes can be modified, so that the switch device on the data forwarding plane is more controllable, and the controllability and flexibility of use of the SDN are enhanced. In addition, a packet encapsulation format that can be implemented by the SDN for BFD detection is provided, which facilitates interaction with an SDN device in the domain.
本公开示例性实施例提供了一种适用于SDN领域静态路由的BFD检测机制,但此原理同样可以应用在SDN领域的BGP邻居发现等场景。The exemplary embodiment of the present disclosure provides a BFD detection mechanism applicable to static routes in the SDN domain, but the principle can also be applied to scenarios such as BGP neighbor discovery in the SDN domain.
以下结合具体实施方式进行详细说明。The details are described below in conjunction with specific embodiments.
下面结合附图对本公开示例性实施例基于OpenFlow协议的静态路由BFD检测方法进行说明。The static route BFD detection method based on the OpenFlow protocol of the exemplary embodiment of the present disclosure will be described below with reference to the accompanying drawings.
图3是根据本公开示例性实施例的SDN控制器内部模块结构及处理流程示意图,如图3所示,SDN控制器内部针对静态路由快切换处理主要以下几个模块协同完成。FIG. 3 is a schematic diagram of an internal module structure and a processing flow of an SDN controller according to an exemplary embodiment of the present disclosure. As shown in FIG. 3, the following internal modules of the SDN controller for the static route fast switching process are cooperatively completed.
静态路由管理模块101,主要负责用户的静态路由配置管理,以及在路由链路失效下的快速选路,和对交换机路由表项的发送。The static
图3所示的BGP邻居管理模块102同静态路由管理模块101一样,都是BFD会话管理模块201的上层用户。静态路由和BGP邻居两个模块都可以向BFD会话管理模块发送创建BFD会话的请求。The BGP neighbor management module 102 shown in FIG. 3 is the upper-layer user of the BFD
当SDN控制器配置了静态路由,静态路由管理101模块会记录下配置信息,查找路由对应IP网段、以及所在的设备ID和端口,通过OpenFlow收发包301模块向对应设备发送flow mode消息,调整设备上dst ip为路由下一跳所在网段的流表的出端口,从而控制交换机对符合目的IP是下一跳的报文进行正确转发,如图3所示的请求处理方向7--->3。注:本公开示例性实施例描述中目的IP均对应域外设备的某个端口。When the SDN controller is configured with a static route, the
同时,静态路由管理模块101向BFD会话管理模块201发送BFD会话创建请求,用于检测SDN交换机和对应域外设备之间链路的状态。流程请求顺序如图3中1-->2。At the same time, the static
当OpenFlow收发包模块收到创建BFD会话任务请求时,封装成包含有BFD配置信息的OpenFlow的experimenter消息向域内的SDN设备发送。报文格式分为标准的openflow experimenter header和扩展的bfd_session_connect两部分,格式如图5所示,图5是根据本公开示例性实施例的针对BFD检测设计的OpenFlow Experimenter消息报文格式示意图。其中携带BFD会话参数,包括tx_interval、min_rx_interval、detect_multi等, 当多个应用绑定同一个BFD会话时,则会话参数选择其中数值最小的,流程请求顺序如图3的流程3所示。When the OpenFlow transceiver packet module receives the BFD session task request, the OpenFlow initiator message encapsulated with the BFD configuration information is sent to the SDN device in the domain. The message format is divided into a standard openflow experimenter header and an extended bfd_session_connect. The format is as shown in FIG. 5. FIG. 5 is a schematic diagram of a format of an OpenFlow Experimenter message message designed for BFD detection according to an exemplary embodiment of the present disclosure. The BFD session parameters include the tx_interval, the min_rx_interval, and the detect_multi. When multiple applications are bound to the same BFD session, the session parameters are selected to be the smallest. The process request sequence is as shown in the
当SDN设备和域外设备创建BFD会话成功之后,协商交互流程在图4中有详细说明。SDN设备收到域外设备的BFD会话回应之后,封装成包含有BFD状态的Experimenter消息发送给SDN控制器的OpenFlow收发包模块301。After the SDN device and the out-of-domain device create a BFD session successfully, the negotiation interaction process is described in detail in Figure 4. After receiving the BFD session response from the out-of-band device, the SDN device encapsulates the Experimenter message containing the BFD state and sends it to the OpenFlow transceiver packet module 301 of the SDN controller.
注:图3所示流程3和4中experimenter消息所承载的报文子类型和报文内容有所不同。流程3中包含BFD会话创建/删除等操作以及配置参数等内容,流程4是BFD相应链路上的会话状态(UP/DOWN)内容。Note: The message subtype and message content carried by the experimenter message in the
SDN内的OpenFlow收发包模块在收到BFD会话状态消息之后,会通知给此消息的订阅者BFD会话管理模块201,会话管理模块再将链路上的UP/DOWN状态通知给静态路由模块。流程顺序如图3中的5--->6。After receiving the BFD session status message, the OpenFlow transceiver module in the SDN notifies the subscriber of the BFD
当静态路由管理模块101收到消息后,根据相应链路的状态,重新计算可用静态路由,查找相应的可用下一跳的设备id、端口、ip网段等路由信息,重新通过OpenFlow收发包模块301发送openflow的flow mode报文到对应的边缘SDN交换机上,调整交换机的转发流表配置。如图3所示流程7--->3。After receiving the message, the static
图4是根据本公开示例性实施例的针对域外设备静态路由的BFD检测场景示意图,图4所示的是可部署的针对域外链路静态路由的BFD简单检测场景。部署步骤如下:FIG. 4 is a schematic diagram of a BFD detection scenario for a static route of an extra-domain device according to an exemplary embodiment of the present disclosure, and FIG. 4 is a deployable BFD simple detection scenario for an extra-domain link static route. The deployment steps are as follows:
步骤一,首先确保SDN交换机和SDN控制器的openflow连接正常。Step one, first ensure that the openflow connection between the SDN switch and the SDN controller is normal.
步骤二,将SDN设备和传统域外设备相连。为了验证BFD检测链路,路由切换机制,将SDN设备和传统域外设备双连接。Step 2: Connect the SDN device to the traditional extra-domain device. In order to verify the BFD detection link and the route switching mechanism, the SDN device and the traditional extra-domain device are dual-connected.
步骤三,假设SDN交换机要转发目的地址为域外网络10.42.93.2的报文,在SDN控制器上配置两条静态路由信息到域内SDN交换机设备上。路由信息内容是到目的地址为10.42.93.2的下一跳网段地址分别是设备的Port1和Port2两个端口所在的网段。其中Port1和Port2端口IP可在不同网段。Step 3: Assume that the SDN switch forwards the packet whose destination address is the out-of-band network 10.42.93.2, and configures two static routing information on the SDN controller to the SDN switch device in the domain. The content of the routing information is the next hop network segment address to the destination address of 10.42.93.2, which is the network segment where the ports Port1 and Port2 of the device are located. Port1 and Port2 port IP can be on different network segments.
步骤四,根据本公开示例性实施例方案此时控制器会发起图4所示链路 中3和4的BFD检测。当断开SDN交换机和传统设备之间的链路3时,基于本公开示例性实施例方案实现,SDN控制器会控制SDN交换机的静态路由切换成从链路4转到域外传统设备上。Step 4: According to the exemplary embodiment of the present disclosure, the controller will initiate BFD detection of 3 and 4 in the link shown in FIG. 4 at this time. When the
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件,服务器,或者软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是通常采用的实施方式。基于这样的理解,本公开的方案本质上可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(计算机、服务器)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software, server, or software plus a necessary general hardware platform, and of course, through hardware, but In many cases the former is the usual implementation. Based on this understanding, the solution of the present disclosure may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM, a magnetic disk, an optical disk), and includes a plurality of instructions for making one The terminal device (computer, server) performs the methods described in various embodiments of the present disclosure.
示例二Example two
在本公开实施例中还提供了一种SDN中的报文交互装置,该装置用于实现上述实施例及示例性实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置通常以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。A packet interaction device in an SDN is also provided in the embodiment of the present disclosure. The device is used to implement the foregoing embodiments and exemplary embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the devices described in the following embodiments are typically implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
根据本公开的另一个实施例,还提供了一种SDN中的报文交互装置60,应用于Openflow域的域内SDN设备,如图6所示,所述装置60包括:第一接收模块61,设置为接收SDN控制器发送的第一openflow报文,其中,所述第一openflow报文中携带有探测报文的配置信息;第一发送模块62,设置为依据所述配置信息生成所述探测报文,并将所述探测报文发送至所述openflow域的域外设备;第一上报模块63,设置为接收所述域外设备反馈的响应报文,并将携带有所述响应报文的第二openflow报文发送至所述SDN控制器。According to another embodiment of the present disclosure, a message interaction device 60 in an SDN is also provided, which is applied to an intra-domain SDN device in an Openflow domain. As shown in FIG. 6, the device 60 includes: a first receiving module 61. The first openflow packet is sent to receive the configuration information of the probe packet, and the first sending module 62 is configured to generate the probe according to the configuration information. Sending the probe packet to the out-of-domain device of the openflow domain; the first reporting module 63 is configured to receive the response packet fed back by the out-of-domain device, and carry the response packet The second openflow message is sent to the SDN controller.
在所述探测报文为BFD报文的情况下,所述第一接收模块61可以设置为接收SDN控制器发送的第一openflow报文,其中,所述第一openflow报文中携带有BFD配置信息;所述第一发送模块62设置为依据所述BFD配置信息生成BFD检测报文,并将所述BFD检测报文发送至域外设备;所述第一上报模块63设置为接收所述域外设备发送的BFD响应报文,将携带有 所述BFD响应报文的第二openflow报文发送至所述SDN控制器,其中,所述SDN控制器依据所述BFD响应报文确定BFD链路状态,或者,所述SDN控制器在预设时间内没有收到所述域内SDN设备发送的所述BFD响应报文,确定所述BFD链路状态为Down。In the case that the detection packet is a BFD packet, the first receiving module 61 may be configured to receive the first openflow packet sent by the SDN controller, where the first openflow packet carries the BFD configuration. The first sending module 62 is configured to generate a BFD detection packet according to the BFD configuration information, and send the BFD detection packet to an out-of-domain device; the first reporting module 63 is configured to receive the extra-domain device. And sending, by the BFD response packet, the second open-flow packet carrying the BFD response packet to the SDN controller, where the SDN controller determines the BFD link status according to the BFD response packet. Or the SDN controller does not receive the BFD response packet sent by the SDN device in the domain within a preset time, and determines that the BFD link status is Down.
在所述探测报文为BGP报文的情况下,所述第一接收模块61可以设置为接收SDN控制器发送的第一openflow报文,其中,所述第一openflow报文中携带有BGP配置信息;所述第一发送模块62设置为依据所述BGP配置信息生成BGP协议报文,并将所述BGP协议报文发送至域外设备;所述第一上报模块63设置为接收所述域外设备发送的BGP响应报文,将携带有所述BGP响应报文的第二openflow报文发送至SDN控制器,其中,所述SDN控制器依据所述BGP响应报文确定所述域内SDN设备的邻居信息。In the case that the probe packet is a BGP packet, the first receiving module 61 may be configured to receive the first openflow packet sent by the SDN controller, where the first openflow packet carries the BGP configuration. The first sending module 62 is configured to generate a BGP protocol packet according to the BGP configuration information, and send the BGP protocol packet to an out-of-domain device; the first reporting module 63 is configured to receive the out-of-domain device. And sending, by the BGP response packet, the second openflow packet carrying the BGP response packet to the SDN controller, where the SDN controller determines the neighbor of the SDN device in the domain according to the BGP response packet information.
根据本公开的另一个实施例,还提供了一种SDN中的报文交互装置70,应用于Openflow域的SDN控制器,如图7所示,所述装置70包括:第二发送模块71,设置为向域内SDN设备发送第一openflow报文,其中,所述第一openflow报文中携带有探测报文的配置信息,其中,所述域内SDN设备依据所述配置信息生成所述探测报文,并将所述探测报文发送至域外设备,其中,所述域外设备向所述域内SDN设备发送与所述探测报文对应的响应报文;第二接收模块72,设置为接收所述域内SDN设备发送的第二openflow报文,其中,所述第二openflow报文是所述域内SDN设备依据所述响应报文生成的。According to another embodiment of the present disclosure, a message interaction device 70 in an SDN is provided, which is applied to an SDN controller of an Openflow domain. As shown in FIG. 7, the device 70 includes: a second sending module 71. The first openflow packet is sent to the SDN device in the domain, where the first openflow packet carries the configuration information of the probe packet, where the SDN device in the domain generates the probe packet according to the configuration information. And sending the probe packet to the out-of-domain device, where the out-of-domain device sends a response packet corresponding to the probe packet to the SDN device in the intra-domain; the second receiving module 72 is configured to receive the domain identifier. The second openflow packet sent by the SDN device, where the second openflow packet is generated by the SDN device in the domain according to the response packet.
上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。The above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the above modules are all located in the same processor; or, the above modules are respectively located in different combinations. In the processor.
示例三Example three
根据本公开的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:According to still another embodiment of the present disclosure, a storage medium is also provided. The storage medium is arranged to store program code for performing the following steps:
S1,Openflow域的域内SDN设备接收SDN控制器发送的第一openflow报文,其中,所述第一openflow报文中携带有探测报文的配置信息;S1. The intra-domain SDN device of the OpenFlow domain receives the first openflow packet sent by the SDN controller, where the first openflow packet carries the configuration information of the probe packet.
S2,所述域内SDN设备依据所述配置信息生成所述探测报文,并将所述探测报文发送至所述openflow域的域外设备;S2, the SDN device in the domain generates the probe packet according to the configuration information, and sends the probe packet to an out-of-domain device in the openflow domain.
S3,所述域内SDN设备接收所述域外设备反馈的响应报文,并将携带有所述响应报文的第二openflow报文发送至所述SDN控制器。S3: The SDN device in the domain receives the response packet that is sent by the out-of-domain device, and sends the second openflow packet carrying the response packet to the SDN controller.
存储介质还可以设置为存储用于执行以下步骤的程序代码:The storage medium can also be configured to store program code for performing the following steps:
S4,Openflow域的SDN控制器向域内SDN设备发送第一openflow报文,其中,所述第一openflow报文中携带有探测报文的配置信息,其中,所述域内SDN设备依据所述配置信息生成所述探测报文,并将所述探测报文发送至域外设备,其中,所述域外设备向所述域内SDN设备发送与所述探测报文对应的响应报文;S4, the SDN controller of the Openflow domain sends the first openflow packet to the intra-domain SDN device, where the first openflow packet carries the configuration information of the probe packet, where the SDN device in the domain is configured according to the configuration information. Generating the probe packet, and sending the probe packet to the out-of-domain device, where the out-of-domain device sends a response packet corresponding to the probe packet to the intra-domain SDN device;
S5,所述SDN控制器接收所述域内SDN设备发送的第二openflow报文,其中,所述第二openflow报文是所述域内SDN设备依据所述响应报文生成的。S5: The SDN controller receives the second openflow packet sent by the SDN device in the domain, where the second openflow packet is generated by the SDN device in the domain according to the response packet.
在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。In this embodiment, the foregoing storage medium may include, but not limited to, a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk. A variety of media that can store program code.
在本实施例中,处理器可以根据存储介质中已存储的程序代码执行上述实施例中的方法步骤。In this embodiment, the processor may perform the method steps in the above embodiments according to the stored program code in the storage medium.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、 程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and functional blocks/units of the methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical The components work together. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or may Any other medium used to store the desired information and that can be accessed by the computer. Moreover, it is well known to those skilled in the art that communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .
以上所述仅为本公开的示例性实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above description is only exemplary embodiments of the present disclosure, and is not intended to limit the disclosure, and various changes and modifications may be made to the present disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the present disclosure are intended to be included within the scope of the present disclosure.
通过本公开,SDN控制器向SDN设备发送携带有探测报文的配置信息的openflow报文,该探测报文可以是BFD协议或者BGP协议等,SDN设备依据该配置信息生成该探测报文,发送至域外设备,并将域外设备的响应报文通过openflow报文的形式发送至SDN控制器,采用上述方案,实现了在SDN中应用传统网络中的某些协议报文,解决了无法将传统网络中的某些协议应用到SDN的问题。Through the disclosure, the SDN controller sends an openflow packet carrying the configuration information of the probe packet to the SDN device, and the probe packet may be a BFD protocol or a BGP protocol, and the SDN device generates the probe packet according to the configuration information, and sends the probe packet. The device is sent to the SDN controller in the form of an open-flow packet. The solution is used to apply some protocol packets in the traditional network to solve the problem. Some of the protocols in the application to the SDN issue.
Claims (16)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710401162.X | 2017-05-31 | ||
| CN201710401162.XA CN108989232A (en) | 2017-05-31 | 2017-05-31 | Message interaction method and device in SDN |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018219300A1 true WO2018219300A1 (en) | 2018-12-06 |
Family
ID=64454402
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/089062 Ceased WO2018219300A1 (en) | 2017-05-31 | 2018-05-30 | Method and apparatus for packet exchange in sdn |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN108989232A (en) |
| WO (1) | WO2018219300A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112398728A (en) * | 2019-08-14 | 2021-02-23 | 南京中兴新软件有限责任公司 | Smooth evolution method of virtual gateway, gateway equipment and storage medium |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112838985B (en) * | 2019-11-25 | 2024-04-02 | 中兴通讯股份有限公司 | Heterogeneous network communication method, system and controller |
| CN113315645B (en) * | 2020-02-27 | 2024-06-04 | 华为技术有限公司 | Method for configuring performance detection indication information and related equipment |
| CN113949521B (en) * | 2020-06-29 | 2025-10-10 | 中兴通讯股份有限公司 | Network equipment protection method, electronic equipment and computer-readable storage medium |
| CN112019653B (en) * | 2020-09-09 | 2022-08-12 | 迈普通信技术股份有限公司 | Access switch, IP address deployment method, device and readable storage medium |
| CN114650241B (en) * | 2020-12-21 | 2025-02-11 | 中国移动通信有限公司研究院 | A tunnel path fault detection method, control method, device and communication node |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110286324A1 (en) * | 2010-05-19 | 2011-11-24 | Elisa Bellagamba | Link Failure Detection and Traffic Redirection in an Openflow Network |
| CN104219218A (en) * | 2013-06-04 | 2014-12-17 | 杭州华三通信技术有限公司 | Active safety defense method and active safety defense device |
| CN105227393A (en) * | 2015-08-25 | 2016-01-06 | 上海斐讯数据通信技术有限公司 | A kind of bidirectional forwarding detection (BFD) method |
| CN105763394A (en) * | 2016-03-22 | 2016-07-13 | 杭州华三通信技术有限公司 | Method, device and system for detecting network link |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20140049115A (en) * | 2012-10-12 | 2014-04-25 | 한국전자통신연구원 | Method and system of supporting multiple controller in software defined networking |
| CN104468343B (en) * | 2013-09-25 | 2019-07-26 | 中兴通讯股份有限公司 | Message processing method, SDN forwarding device and SDN controller |
| CN104618244B (en) * | 2015-01-19 | 2018-03-02 | 迈普通信技术股份有限公司 | A kind of SDN and the method and system of traditional IP intercommunication |
| CN106656792B (en) * | 2016-11-30 | 2019-06-28 | 中国人民解放军国防科学技术大学 | A kind of BGP routing trust authentication method based on SDN framework |
-
2017
- 2017-05-31 CN CN201710401162.XA patent/CN108989232A/en not_active Withdrawn
-
2018
- 2018-05-30 WO PCT/CN2018/089062 patent/WO2018219300A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110286324A1 (en) * | 2010-05-19 | 2011-11-24 | Elisa Bellagamba | Link Failure Detection and Traffic Redirection in an Openflow Network |
| CN104219218A (en) * | 2013-06-04 | 2014-12-17 | 杭州华三通信技术有限公司 | Active safety defense method and active safety defense device |
| CN105227393A (en) * | 2015-08-25 | 2016-01-06 | 上海斐讯数据通信技术有限公司 | A kind of bidirectional forwarding detection (BFD) method |
| CN105763394A (en) * | 2016-03-22 | 2016-07-13 | 杭州华三通信技术有限公司 | Method, device and system for detecting network link |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112398728A (en) * | 2019-08-14 | 2021-02-23 | 南京中兴新软件有限责任公司 | Smooth evolution method of virtual gateway, gateway equipment and storage medium |
| CN112398728B (en) * | 2019-08-14 | 2024-03-08 | 中兴通讯股份有限公司 | Virtual gateway smooth evolution method, gateway equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108989232A (en) | 2018-12-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018219300A1 (en) | Method and apparatus for packet exchange in sdn | |
| US9537741B2 (en) | Data path performance measurement using test messages in a software defined network | |
| US10587494B2 (en) | Network control method and apparatus | |
| CN103534982B (en) | The protection method of service reliability, equipment and network virtualization system | |
| US10791053B2 (en) | Service function chain SFC-based communication method, and apparatus | |
| US20160028604A1 (en) | Data path performance measurement using network traffic in a software defined network | |
| US9571387B1 (en) | Forwarding using maximally redundant trees | |
| CN106464589A (en) | Partial software defined network switch replacement in IP networks | |
| CN112187649B (en) | Message forwarding method, message processing method and device | |
| EP3140964A1 (en) | Implementing a 3g packet core in a cloud computer with openflow data and control planes | |
| EP1779568B1 (en) | Graceful shutdown of ldp on specific interfaces between label switched routers | |
| US20210184897A1 (en) | Packet processing method and gateway device | |
| WO2014202004A1 (en) | Next hop ingress protection of label switched paths | |
| CN106464447A (en) | Error code information transfer method, network device and communication system | |
| CN114978975A (en) | Fast rerouting of BUM traffic in ethernet virtual private networks | |
| WO2019212678A1 (en) | Explicit backups and fast re-route mechanisms for preferred path routes in a network | |
| US8675669B2 (en) | Policy homomorphic network extension | |
| CN113169939B (en) | Method, network equipment and system for establishing service path | |
| US8923303B2 (en) | Method, system and installation for forwarding data transmission frames | |
| CN101102231B (en) | A method and device for automatic discovery of PPP link routing equipment | |
| US10367732B2 (en) | Route control for internet exchange point | |
| CN107018072B (en) | A data frame sending method and access device | |
| WO2018205728A1 (en) | Method for processing stack split, computer device and computer readable storage medium | |
| CN103905338B (en) | The method and device that a kind of IP backbone merges | |
| CN105765903B (en) | A topology discovery method and device |
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: 18809803 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: 18809803 Country of ref document: EP Kind code of ref document: A1 |