WO2015188331A1 - 转发控制方法、驱动器及sdn网络 forwarding control method, driver and sdn network - Google Patents

转发控制方法、驱动器及sdn网络 forwarding control method, driver and sdn network Download PDF

Info

Publication number
WO2015188331A1
WO2015188331A1 PCT/CN2014/079671 CN2014079671W WO2015188331A1 WO 2015188331 A1 WO2015188331 A1 WO 2015188331A1 CN 2014079671 W CN2014079671 W CN 2014079671W WO 2015188331 A1 WO2015188331 A1 WO 2015188331A1
Authority
WO
WIPO (PCT)
Prior art keywords
forwarding
driver
control
signaling
controller
Prior art date
Application number
PCT/CN2014/079671
Other languages
French (fr)
Chinese (zh)
Inventor
倪慧
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201480034374.3A priority Critical patent/CN105379198A/en
Priority to PCT/CN2014/079671 priority patent/WO2015188331A1/en
Publication of WO2015188331A1 publication Critical patent/WO2015188331A1/en

Links

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a forwarding control method, a driver, and a Software-Defined Network (SDN) using the same.
  • SDN Software-Defined Network
  • a complete communication network is often composed of a plurality of network devices, such as routers, gateways, switches, firewalls, and various types of servers. Different network devices communicate through corresponding network protocols.
  • network protocols such as routers, gateways, switches, firewalls, and various types of servers. Different network devices communicate through corresponding network protocols.
  • existing communication networks are increasingly adopting SDN networks.
  • the protocol control and packet forwarding logic of the network device are decoupled into two parts: a controller that implements the protocol control logic and a repeater that implements the packet forwarding logic.
  • the decoupled demultiplexer has a simple structure and is convenient for implementing packets. Optimization of the forwarding function.
  • controllers may support different control forwarding protocols, and different repeaters may also support different control forwarding protocols.
  • a plurality of plug-ins supporting different control forwarding protocols are set in the controller; the controller calls the corresponding plug-in to format and encapsulate the forwarding control signaling according to the type of control forwarding protocol supported by the target repeater, and the encapsulated forwarding control signal
  • the target can be successfully received and executed by the target repeater, thereby completing the corresponding packet forwarding service.
  • the method controls a plurality of different transponders through the same controller, which can improve the control flexibility of the controller.
  • a forwarding control method, a driver, and an SDN network are provided to solve the problem that a method for extending a function of a controller by using a built-in plug-in is limited in application scope.
  • a forwarding control method based on a software-defined network SDN includes a forwarder that implements packet forwarding, and a controller that performs forwarding control on the repeater;
  • the SDN network further includes at least one driver that implements drive control on the repeater;
  • the forwarding control method includes: the controller generates first forwarding control signaling according to a forwarding rule, and the first forwarding control Transmitting, by the first control forwarding protocol, to the first driver connected to the controller in the driver; the first driver converting the received first forwarding control signaling into a format requirement that conforms to the second control forwarding protocol
  • the second forwarding control signaling is sent to the corresponding forwarder by using the second control forwarding protocol; wherein the first control forwarding protocol is a control forwarding protocol supported by the controller;
  • the second control forwarding protocol is a control forwarding protocol supported by the repeater.
  • the forwarding control method before the controller sends the first forwarding control instruction, the forwarding control method further includes: the controller determining the forwarding corresponding to the forwarding rule At least one driver matching the type of the device acts as the first driver and establishes a connection with the first driver.
  • the controller determines, by using, at least one driver that matches a type of the forwarding device corresponding to the forwarding rule
  • the first driver includes: the controller determining, according to the registration message sent by each driver and the type identifier of the transponder, the type of the transponder corresponding to the forwarding rule, and determining the driver as the The first driver; wherein the registration message includes a type identifier of one or more types of repeaters supported by the corresponding driver; the type identifier includes at least one of the following: a repeater model, a control forwarding protocol type, and a flow table.
  • Type template TTP and negotiable data path model DM is determining, by using, at least one driver that matches a type of the forwarding device corresponding to the forwarding rule
  • the first driver includes: the controller determining, according to the registration message sent by each driver and the type identifier of the transponder, the type of the transponder corresponding to the forwarding rule, and determining the driver as the The first driver; wherein
  • the controller establishes a connection with the first driver, including: the controller is configured by means of module loading or signaling negotiation.
  • the first driver establishes a connection.
  • the forwarding control method before the controller sends the first forwarding control instruction, the forwarding control method further includes: the parameter of the forwarder of the driver according to the service thereof The information configures itself as a virtual forwarder corresponding to the transponder it serves; the virtual repeater acts as a first driver and establishes a connection with the controller.
  • the first forwarding device that the first driver receives the first forwarding control And converting the signaling to the second forwarding control signaling that meets the format requirement of the second control forwarding protocol, including: when the repeater includes multiple, the first driver forwards according to the first control forwarding protocol and the second control The preset mapping relationship between the protocols converts the first forwarding control signaling into multiple second forwarding control signalings corresponding to different repeaters.
  • the forwarding control method further includes: determining, by the first driver, the received first forwarding control signaling according to the parameter information of the forwarder stored by the first driver Whether the corresponding forwarding rule conforms to the function of the corresponding forwarder; if the forwarding rule corresponding to the first forwarding control signaling does not conform to the function of the corresponding forwarder, the first driver returns a control failure message to the controller, otherwise performing the receiving The first forwarding control signaling to the second forwarding control signaling is converted to meet the format requirements of the second control forwarding protocol.
  • the forwarding control method further includes: the driver generating parameter configuration signaling according to the parameter information of the forwarder stored by the driver, and sending the parameter configuration signaling Go to the appropriate repeater to configure and/or modify the parameters of the corresponding repeater.
  • the forwarding control method further includes: transmitting, and/or receiving, control signaling by using a preset interface protocol between different drivers connected to the same transponder; Transmitting and/or receiving control signaling between different drivers connected to the same transponder through a preset interface protocol, including at least one of the following: when the second driver connected to the transponder has a transponder parameter modification requirement
  • the second driver sends parameter modification negotiation signaling to a third driver connected to the repeater; the third driver receives the parameter modification negotiation signaling, and requests the parameter modification negotiation signaling Returning a negotiation response message to the second driver when the parameter modification operation is performed; the second driver sends the third driver to the third driver Query signaling sharing information; receiving the third drive the shared signaling information query, and returns the corresponding information inquiry response message to the second driver based on the shared information
  • the forwarding control method further includes: Upon receiving the forwarding parameter query signaling sent by the controller, the driver generates corresponding forwarding parameter response information according to the parameter information of the forwarder stored by the controller, and feeds back the forwarding parameter response information to the controller.
  • a software-defined network SDN includes a controller, a repeater, and at least one driver.
  • the controller is configured to: generate first forwarding control signaling according to a forwarding rule, and Forwarding control signaling is sent to a first driver connected to the controller in the driver by using a first control forwarding protocol;
  • the driver is configured to: receive the first after being connected to the controller as the first driver Forwarding the control signaling, converting the received first forwarding control signaling into a second forwarding control signaling conforming to the format requirement of the second control forwarding protocol, and forwarding the second forwarding control signaling by using the second control
  • the protocol is sent to the corresponding forwarder; wherein the first control forwarding protocol is a control forwarding protocol supported by the controller; and the second control forwarding protocol is a control forwarding protocol supported by the repeater.
  • the controller is further configured to: determine, as the first, at least one driver that matches a type of a forwarder corresponding to the forwarding rule a driver and establishing a connection with the first driver.
  • the driver is further configured to: configure itself as a virtual repeater corresponding to the transponder served by the transponder according to the parameter information of the transponder it serves And establishing the virtual forwarder as the first driver to establish a connection with the controller.
  • the driver is specifically configured to: when connected to multiple forwarders, perform the first forwarding control according to a preset mapping relationship between the first control forwarding protocol and the second control forwarding protocol
  • the signaling is converted into a plurality of second forwarding control signalings corresponding to different transponders and sent to respective transponders.
  • the driver is further configured to: determine, according to the parameter information of the forwarder that is stored in the device, whether the forwarding rule corresponding to the received first forwarding control signaling conforms to the function of the corresponding forwarder; Forwarding control If the forwarding rule corresponding to the signaling does not meet the function of the corresponding forwarder, the control failure message is returned to the controller, otherwise the first forwarding control signaling received is converted into a format that meets the format requirements of the second control forwarding protocol. The second forwarding control signaling.
  • the driver is further configured to:
  • the parameter information of the transponder stored by itself generates parameter configuration signaling, and sends the parameter configuration signaling to a corresponding transponder to configure and/or modify parameters of the corresponding transponder.
  • the driver is further configured to: send, by using a preset interface protocol, control to another driver that is connected to the same transponder Signaling, and/or receiving control signaling sent by the other driver; wherein the sending the control signaling to the another driver includes at least one of: when the driver has a repeater parameter modification requirement Transmitting the parameter modification negotiation signaling to the another driver; transmitting the shared information query signaling to the another driver; and receiving the control signaling sent by the another driver, including at least one of the following: The other driver modifies the negotiation response information returned by the negotiation signaling according to the parameter; and receives an information query response message that is played by the another driver according to the shared information query signaling.
  • the driver is further configured to: When receiving the forwarding parameter query signaling sent by the controller, the corresponding forwarding parameter response information is generated according to the parameter information of the transponder stored by the controller, and the forwarding parameter response information is fed back to the controller.
  • a third aspect provides a forwarding control method based on a software-defined network SD, where the SDN network includes a forwarder that implements packet forwarding, and a controller that performs forwarding control on the forwarder;
  • the network further includes at least one driver that implements drive control of the repeater;
  • the forwarding control method includes: the first driver that is connected to the controller in the driver receives a first forwarding control message sent by the controller through the first control forwarding protocol
  • the first driver converts the received first forwarding control signaling into a second forwarding control signaling conforming to a format requirement of the second control forwarding protocol; the first driver uses the second forwarding control signaling Sending to the corresponding forwarder by using the second control forwarding protocol; wherein the first control forwarding protocol is a control forwarding protocol supported by the controller;
  • the protocol is a control forwarding protocol supported by the repeater.
  • the forwarding control method further includes: the driver configuring itself to correspond to a transponder served by the transponder according to the parameter information of the transponder served by the driver a virtual forwarder, and the virtual forwarder is connected to the controller as the first driver.
  • the first driver converts the received first forwarding control signaling into a second
  • the second forwarding control signaling required to control the format of the forwarding protocol includes: when the repeater includes multiple, the first driver according to the preset mapping relationship between the first control forwarding protocol and the second control forwarding protocol, The first forwarding control signaling is converted into a plurality of second forwarding control signalings corresponding to different repeaters.
  • the forwarding control method further includes: the first driver according to the transponder stored by the first The parameter information determines whether the forwarding rule corresponding to the received first forwarding control signaling conforms to the function of the corresponding forwarder; if the forwarding rule corresponding to the first forwarding control signaling does not conform to the function of the corresponding forwarder, the first driver Returning a control failure message to the controller, otherwise performing the conversion of the received first forwarding control signaling into a second forwarding control signaling conforming to the format requirement of the second control forwarding protocol.
  • the forwarding control method further includes: the driver according to the parameter information of the transponder stored by the driver Generating parameter configuration signaling, and transmitting the parameter configuration signaling to a corresponding repeater to configure and/or modify parameters of the corresponding repeater.
  • the forwarding control method further includes: the driver is connected to the connected device by using a preset interface protocol Another driver having the same transponder transmits control signaling, and/or receives control signaling sent by the other driver; wherein the driver sends control signaling to the other driver, including at least one of the following: Transmitting parameter modification negotiation signaling to the another driver when the driver has a repeater parameter modification requirement; transmitting shared information query signaling to the another driver; the driver receiving the control sent by the another driver
  • the signaling includes at least one of the following: receiving the negotiation response information returned by the another driver according to the parameter modification negotiation signaling; and receiving an information query response message played by the another driver according to the shared information query signaling.
  • the forwarding control method further includes: when receiving the forwarding parameter query signaling sent by the controller, the driver generates corresponding forwarding parameter response information according to the parameter information of the forwarder stored by the driver, and the The forwarding parameter response information is fed back to the controller.
  • a driver is provided; the driver is applied to a software-defined network SD, the SDN network includes a forwarder that implements packet forwarding, and a controller that performs forwarding control on the forwarder according to a forwarding rule;
  • the driver includes: a signaling receiving unit, configured to: when the driver is connected to the controller as the first driver, receive the first forwarding control signaling sent by the controller through the first control forwarding protocol; and the signaling conversion unit is configured to: The first forwarding control signaling received by the signaling receiving unit is converted into a second forwarding control signaling that meets the format requirement of the second control forwarding protocol; the signaling sending unit is configured to use the second forwarding control signaling
  • the first control forwarding protocol is a control forwarding protocol supported by the controller
  • the second control forwarding protocol is a control forwarding protocol supported by the forwarder.
  • the driver further includes: a self-configuring unit, configured to configure itself to forward the service according to the parameter information of the forwarder of the driver service Corresponding virtual forwarder, and establishing the virtual forwarder as the first driver to establish a connection with the controller.
  • the signaling is performed when the driver is connected as a first driver to multiple forwarders
  • the converting unit is specifically configured to: convert the first forwarding control signaling into multiple second forwarding control signals corresponding to different repeaters according to a preset mapping relationship between the first control forwarding protocol and the second control forwarding protocol
  • the signaling sending unit is configured to send the multiple second forwarding control signalings generated by the signaling conversion unit to the corresponding forwarders by using a corresponding second control forwarding protocol.
  • the driver further includes: a signaling determining unit, configured to: according to the transponder stored by itself The parameter information is used to determine whether the forwarding rule corresponding to the received first forwarding control signaling conforms to the function of the corresponding forwarder; if the forwarding rule corresponding to the first forwarding control signaling does not meet the function of the corresponding forwarder, the controller is Returning the control failure message; otherwise, triggering the signaling conversion unit and/or the signaling unit.
  • a signaling determining unit configured to: according to the transponder stored by itself The parameter information is used to determine whether the forwarding rule corresponding to the received first forwarding control signaling conforms to the function of the corresponding forwarder; if the forwarding rule corresponding to the first forwarding control signaling does not meet the function of the corresponding forwarder, the controller is Returning the control failure message; otherwise, triggering the signaling conversion unit and/or the signaling unit.
  • the driver further includes: a parameter configuration unit, configured to perform parameters of the forwarder according to the self The information generation parameter configures signaling, and sends the parameter configuration signaling to a corresponding repeater to configure and/or modify parameters of the corresponding repeater.
  • the driver further includes: an information interworking unit, configured to connect to by using a preset interface protocol
  • the other driver of the same transponder sends control signaling, and/or receives control signaling sent by the other driver; wherein, the sending the control signaling to the another driver includes at least one of the following: Transmitting parameter modification negotiation signaling to the other driver when the driver has a repeater parameter modification requirement; transmitting shared information query signaling to the another driver; receiving the control letter sent by the another driver
  • the command includes at least one of the following: receiving the negotiation response information returned by the another driver according to the parameter modification negotiation signaling; and receiving an information query response message that is performed by the another driver according to the shared information query signaling.
  • the driver further includes: a parameter query unit, configured to receive the forwarding sent by the controller When the parameter query signaling, the corresponding forwarding parameter response information is generated according to the parameter information of the transponder stored by itself, and the forwarding parameter response information is fed back to the controller.
  • a parameter query unit configured to receive the forwarding sent by the controller
  • the corresponding forwarding parameter response information is generated according to the parameter information of the transponder stored by itself, and the forwarding parameter response information is fed back to the controller.
  • the first forwarding control signaling generated by the controller may be sent to the corresponding driver, and then the first forwarding control signaling is converted by the driver into a second forwarding control message that meets the requirements of the forwarding and forwarding protocol of the forwarder. And sending the second forwarding control signaling to the forwarder to control the execution of the forwarding service. Therefore, the present application does not require the controller to have a built-in plug-in mechanism, which can implement signaling conversion between any controller and the repeater, and solves the problem that the application range of the prior art is limited.
  • FIG. 1 is a signal flow diagram of a forwarding control method based on an SDN network according to an embodiment of the present application
  • 2A is a schematic structural diagram of an SDN network in the prior art
  • FIG. 2B is a schematic structural diagram of an SDN network based on the structure shown in FIG. 2A according to an embodiment of the present application
  • FIG. 2C is a schematic structural diagram of another SDN network according to the structure shown in FIG. 2A according to an embodiment of the present disclosure
  • FIG. 2D is a schematic structural diagram of another SDN network based on the structure shown in FIG. 2A according to an embodiment of the present application;
  • FIG. 3 is a signal flow diagram of a forwarding control method based on the SDN network shown in FIG. 2B according to an embodiment of the present disclosure
  • FIG. 4 is a forwarding control method based on the SDN network shown in FIG. 2D according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of a signal flow diagram of another SDN network-based forwarding control method according to an embodiment of the present disclosure
  • FIG. 6A is a schematic structural diagram of another SDN network according to an embodiment of the present application
  • FIG. 7 is a schematic diagram of a network structure of a software-defined network SDN according to an embodiment of the present disclosure
  • FIG. 3 is a signal flow diagram of a forwarding control method based on the SDN network shown in FIG. 2B according to an embodiment of the present disclosure
  • FIG. 4 is a forwarding control method based on the SDN network shown in FIG. 2D according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of a signal flow diagram of another SDN
  • FIG. 8 is a schematic diagram of a network structure of a software-defined network SDN according to an embodiment of the present disclosure; A flow chart of a forwarding control method applied to an SDN network is provided.
  • FIG. 9 is a flowchart of another forwarding control method applied to an SDN network according to an embodiment of the present disclosure; A flowchart of a forwarding control method applied to an SDN network;
  • FIG. 11 is a schematic structural diagram of a driver applied to an SDN network according to an embodiment of the present disclosure; A schematic view of another configuration applied to the driver SDN network;
  • FIG. 13 is a schematic view of a further application structure applied to the driver SDN network according to an embodiment.
  • the present application provides a forwarding control method, a driver, and an SDN network.
  • a forwarding control method based on an SDN network according to Embodiment 1 of the present application is provided.
  • the SDN network in this embodiment includes, in addition to the forwarder that implements packet forwarding in the prior art, and the controller that performs forwarding control on the forwarder according to the forwarding rule, and at least one device that implements drive control on the forwarder. driver.
  • the specific process of the forwarding control method is as follows: Step S101: The controller generates first forwarding control signaling according to the forwarding rule. Step S102: The controller sends the first forwarding control signaling to the driver by using the first control forwarding protocol.
  • Step S103 The first driver converts the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol;
  • Step S104 the first driver will The second forwarding control signaling is sent to the corresponding forwarder by using the second control forwarding protocol.
  • the first control forwarding protocol is a control forwarding protocol supported by the controller; and the second control forwarding protocol is a control forwarding protocol supported by the repeater.
  • the controller supports the network switching model protocol OpenFlow, and the repeater supports the One Platform Kit (OnePK) protocol; when the controller wants to control the repeater to perform some action (assuming the first forwarding action), the controller
  • the first forwarding control signaling is generated according to the foregoing forwarding rule, that is, the first forwarding operation is performed by the forwarder.
  • the first forwarding control signaling generated by the controller only supports the OpenFlow protocol. format requirement.
  • the controller then sends the first forwarding control signaling to the first driver connected thereto through the OpenFlow protocol.
  • the first driver After receiving the first forwarding control signaling, the first driver converts the second forwarding control signaling into a second forwarding control signaling conforming to the format requirement of the OnePK protocol, and sends the second forwarding control signaling to the corresponding forwarder through the OnePK protocol. . Therefore, the forwarder supporting the OnePK protocol can successfully parse the second forwarding control signaling, and complete the first forwarding action required by the controller according to the second forwarding control signaling. It can be seen from the foregoing embodiment that, in order to implement different transponders that support different protocols by the same controller, the first forwarding control signaling generated by the controller is format-converted by the driver, and then forwarded to the corresponding forwarding. The controller does not need to support the built-in plug-in mechanism.
  • the embodiment of the present application can be applied to any transponder, and the application range is greatly increased.
  • multiplexing of the driver, the repeater, and the controller can be realized, and it is not required for each controller.
  • Each transponder is equipped with a driver, which has a small amount of changes to the SDN network and related equipment, and low cost.
  • a controller may need to perform forwarding control on multiple transponders supporting different protocols.
  • FIG. 2A a system structure diagram of an existing SDN network, controller C1 needs to have at least three transponders (such as The repeater R1, the repeater R2 and the repeater R3 shown in FIG.
  • FIG. 3 is a signal flow diagram of another forwarding control method based on the SDN network shown in FIG. 2B according to Embodiment 2 of the present application.
  • the SDN network in the second embodiment of the present application adds three drivers based on the structure shown in FIG. 2A, respectively: A driver D1 for signaling format conversion between P1 and P2.1, a driver D2 for implementing signaling format conversion between protocols P1 and P2.2, and a driver for implementing signaling format conversion between protocols P1 and P2.3 D3 (shown in FIG. 2B); correspondingly, the forwarding control method provided in Embodiment 2 of the present application specifically includes the following steps:
  • Each driver sends a respective registration message to the controller, where the registration message includes at least one type identifier of one or more types of transponders supported by the corresponding driver; for example, the registration message sent by the driver D1
  • the type identifier of the forwarder R1 of the driver D1 should be included, indicating that the driver D1 can implement the control signaling relay of the controller C1 to the repeater R1; similarly, the registration message sent by the driver D2 includes at least the type identifier of the repeater R2, and the driver D3
  • the sent registration message contains at least the type identifier of the repeater R3.
  • the above type identifier may adopt at least one of the following four types: a repeater model, a control forwarding protocol type supported by the repeater (such as OpenFlow/FORCES/OnePK, etc.), a TTP (Table Typing Pattern, a flow table type). Template) ID, and DM (Negotiable Datapath Model) ID.
  • the driver sends the registration message to the controller, which can be implemented by at least one of the following two methods:
  • Each drive initiates a corresponding registration message to the controller when it starts up; 2) When the controller starts, it requests the corresponding drive to return by sending a broadcast message or a pre-configured address. Registration message.
  • Each transponder is respectively connected to the controller, and reports the corresponding type identifier to the controller;
  • S203 the controller generates the first forwarding control signaling according to the forwarding rule;
  • the controller determines, according to the received registration message and the type identifier of each transponder, at least one driver that matches the type of the control object (controlled transponder) of the forwarding rule, and establishes a connection with the determined driver.
  • the driver may be a remote device of the controller or a local module running on the controller system. Wherein, when the driver adopts the remote device, the controller may establish a connection with the determined first driver controller by means of signaling negotiation, including but not limited to the following steps: the controller sends the connection control signaling to the first driver.
  • the controller can load the first driver into the internal module of the controller by means of module loading, and realize the connection between the controller and the first driver. It should be noted that when the forwarding control needs to be performed on a certain forwarder, the controller performs the above steps separately.
  • S205 The controller sends the first forwarding control signaling to the first driver connected to the controller in the driver by using the first control forwarding protocol.
  • the first driver converts the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol.
  • the first driver is connected to the controlled repeater corresponding to the foregoing forwarding rule, and sends the second forwarding control signaling to the controlled forwarder by using a corresponding second control forwarding protocol.
  • the controller C1 needs to control the repeater R1 to perform the first forwarding action, and the controller C1 generates the first forwarding control signaling corresponding to the first forwarding action (corresponding to step S203); C1 controls the forwarding protocol type as a matching element, and can determine that the transponder R1 supporting the protocol P2.1 and the driver D1 implementing the signaling format conversion between the protocols P1 and P2.1 are matched, so the controller C1 will drive D1 as the first driver, and the connection with the driver D1 (corresponding to step S204); The controller CI sends the first forwarding control signaling to the first driver (ie, the driver D1) through the protocol PI (corresponding to step S205); after receiving the first forwarding control signaling, the driver D1 converts the first forwarding control signaling into a match.
  • the first driver ie, the driver D1
  • the protocol PI corresponding to step S205
  • the controller needs to select and connect the corresponding driver according to the type identifier, so that format conversion and forwarding of control signaling can be realized; and the same driver can be It is multiplexed by other controllers or other transponders that support the corresponding protocol. Therefore, in practical applications, only the drivers for the signaling format conversion between the two protocols may be separately set for various control forwarding protocols that may be involved in the SDN network system, so that any controller in the SDN network can be implemented. Forward control for either forwarder.
  • the driver D4 supports both the signaling format conversion between the protocols P1 and P2.2 and the signaling format conversion between the protocols P1 and P2.3; With respect to the structure shown in Fig. 2B, the driver D4 can reduce the total number of drivers by one. Based on the above principle, it can be inferred that the driver supporting the signaling format conversion between multiple control forwarding protocols can reduce the number of drivers in the SDN network, thereby simplifying the structure of the SDN network; corresponding forwarding control method Refer to the signal flow diagram shown in Figure 3 and the related text above. In particular, for an SDN network similar to that shown in FIG.
  • the driver D4 may determine which control forwarding protocol to convert to, and the second to be converted, according to the type identifier of the controlled repeater specified in the first forwarding control signaling. Which transponder is sent to the forwarding control signaling. On the other hand, when the controller needs to control multiple transponders at the same time, the type identifier of the corresponding multiple controlled transponders may be added in the first forwarding control signaling generated by the controller, and each controlled transponder will be supported at the same time.
  • the corresponding drive of the forwarding control protocol is used as the first driver; the first driver determines the type and number of the second control forwarding protocol according to the type identifier of the controlled forwarder in the first forwarding control signaling, and converts the obtained A plurality of second forwarding control signalings supporting different second control forwarding protocols are sent to the corresponding controlled forwarders.
  • the SDN network shown in FIG. 1 As for the SDN network shown in FIG. 1
  • FIG. 4 is a signal flow diagram of another forwarding control method applied to an SDN network according to Embodiment 3 of the present application, to implement control of multiple repeaters by one controller. As shown in FIG.
  • the SDN network in the third embodiment adds one driver D5 to the contact of FIG. 2A, as shown in FIG. 2D.
  • the forwarding control method provided in Embodiment 3 of the present application is provided. Specifically, the following steps are included:
  • the driver configures itself as a virtual forwarder corresponding to the forwarder according to the parameter information of the forwarder of the service thereof.
  • the driver D5 is configured to implement the controller C1 and the forwarders R1, R2, and R3.
  • the signaling format conversion between at least one of the persons, that is, the transponder served by the driver D5 includes at least three of the repeaters R1, R2 and R3. Therefore, the driver configures itself as a virtual repeater R0 corresponding to R1, R2, and R3 according to the parameter information of the repeaters R1, R2, and R3 (correspondingly, the repeaters R1, R2, and R3 are referred to as physical repeaters) .
  • control address information such as IP address
  • physical port address such as IP address
  • bandwidth such as IP/MAC address of the peer.
  • Topology connection information such as the IP/MAC address of the peer.
  • S302 The virtual forwarder obtained by the above configuration is connected to the controller.
  • the virtual forwarder is equivalent to the first driver in the corresponding embodiment of FIG. 1 for implementing control.
  • the above driver is configured as a virtual forwarder, it can establish a connection with the controller according to the startup process of the repeater, and the process includes but is not limited to the following steps:
  • the virtual forwarder sends connection control signaling to the controller, when When the response message returned by the controller is received, the connection is completed.
  • the driver pair controller acts as a repeater, that is, the physical forwarder is invisible to the controller, that is, the topology pattern of the forwarding layer of the controller is shielded, The difference between different physical transponders, etc., so that when the transponder sends the dynamic addition, deletion or capability modification, the configuration of the transponder served by the dynamic adjustment can be dynamically adjusted only by modifying the configuration of the virtual transponder at the drive.
  • S303 The controller generates first forwarding control signaling according to the forwarding rule.
  • S304 The controller sends the first forwarding control signaling to the first driver (that is, the virtual forwarder) through the first control forwarding protocol.
  • S305 The first driver converts the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol.
  • the first driver is connected to the controlled repeater corresponding to the foregoing forwarding rule, and sends the second forwarding control signaling to the controlled forwarder by using a corresponding second control forwarding protocol.
  • the forwarder R1 needs to be controlled to perform the first forwarding operation, and the controller C1 generates a first forwarding control signal corresponding to the first forwarding action.
  • step S303 the virtual forwarder R0
  • the protocol P1 the protocol P1 (corresponding to step S304); after receiving the first forwarding control signaling, the virtual forwarder R0 is configured according to the first forwarding control signaling
  • the type identifier of the controlled repeater R1 specified in the first forwarding control signaling is converted into a corresponding second forwarding control signaling conforming to the format requirement of the protocol P2.1 (corresponding to step S305), and the repeater R1 Connect, send the converted second forwarding control signaling to the repeater R1 through the protocol P2.1 (corresponding to step S306); thus, the repeater R1 can execute the controller C1 request under the control of the second forwarding control signaling The first forwarding action.
  • the present application configures the driver as a virtual repeater corresponding to the transponder served by the driver, and on the one hand, the driver has a very high multiplexing rate, and the amount of modification to the SDN network and related devices is small;
  • the driver when implementing or deploying a controller, there is no need to consider the topology style and hardware difference of the lower layer repeater.
  • the repeater when implementing or deploying the repeater, there is no need to consider the difference of the upper layer controller, so that the controller, the repeater and even the controller
  • the deployment of the entire SDN network is more flexible and easy to implement.
  • the controller does not need to support the built-in plug-in mechanism, and can be applied to any transponder, and the application range is greatly increased.
  • the first forwarding control signaling is performed according to a preset mapping relationship between the corresponding first control forwarding protocol and the second control forwarding protocol.
  • the forwarding control flow rule included in the packet is re-encapsulated to obtain a corresponding second forwarding control signaling.
  • the free conversion of the control signaling format can be realized by setting a direct or indirect mapping relationship between multiple control forwarding protocols in the drive.
  • the virtual forwarder R0 converts the first forwarding control signaling into the second forwarding control signaling that meets the requirements of different protocol formats, according to the multiple types of identifiers specified in the first forwarding control signaling.
  • the first forwarding control signaling is automatically decomposed and mapped, so that the forwarding of multiple packets specified by the first forwarding control signaling is distributed to multiple forwarders to implement load balancing of the forwarder and improve forwarding efficiency.
  • the controller C1 sends the following control signaling (ie, a Flow-mod message) to the virtual forwarder through the OpenFlow protocol, indicating that all the packets with the source IP address of 192.168.1.0-192.168.1.255 are VLAN (Virtual Local Area Network, virtual).
  • LAN Virtual Local Area Network
  • the virtual forwarder R0 maps the received Flow-mod message to the repeaters R1 and R2.
  • the converted control signaling and functions are:
  • ID l]
  • output[2] used to encapsulate all packets with source IP address 192.168.1.128-192.168.1.255 and forward them out from forwarder R2 port 2.
  • another SDN network-based forwarding control method provided in Embodiment 4 of the present application can implement parameter conversion and modification of a transponder in addition to a function of converting a static protocol message format through a driver.
  • the query, and the function of determining the validity of the control signaling sent by the controller according to the parameter information of the repeater, the specific control flow is as follows:
  • S401 The driver receives and stores parameter information of a transponder of the service thereof;
  • the parameter information of the forwarder includes the forwarding queue bandwidth of the port of the forwarder, the priority, the differentiated service code (DSCP), the IP packet fragmentation, the reassembly, the GRE/VxLAN tunnel support, BFD/LLDP (Bidirectional Forwarding Detection/Link Layer Discovery Protocol) support hardware capabilities; mapping between logical ports and physical ports; sources include user-entered parameter information, Parameter information automatically entered by the application, etc.
  • DSCP differentiated service code
  • IP packet fragmentation the IP packet fragmentation
  • reassembly the GRE/VxLAN tunnel support
  • BFD/LLDP Bidirectional Forwarding Detection/Link Layer Discovery Protocol
  • S402 The driver generates parameter configuration signaling according to the parameter information stored by the driver.
  • S403 The driver sends the parameter configuration signaling to the corresponding forwarder to implement configuration or modification of parameters of the corresponding forwarder.
  • the parameter configuration or modification of the repeater may be separately configured/modified for each repeater, or may be the same configuration/modification for all repeaters or repeaters of the same model.
  • S405 The driver queries the forwarding parameter of the forwarder according to the received forwarding parameter query signaling. Information, edit the query result to the corresponding forwarding parameter response information, and feed back to the controller;
  • step S407 The driver determines, according to the parameter information of the transponder stored by the driver, whether the forwarding rule corresponding to the received first forwarding control signal conforms to the function of the corresponding transponder, if yes, step S408 is performed, otherwise step S409 is performed;
  • the driver converts the received first forwarding control signaling into a second forwarding control signaling that meets the format requirement of the second control forwarding protocol, and sends the second forwarding control signaling to the corresponding forwarder.
  • the first forwarding control signaling sent by the controller requires the repeater to perform VxLAN (Virtual Extensible
  • the drive judges that the transponder does not enable VxLAN tunnel support according to the parameter information of the corresponding transponder stored therein (ie, the transponder does not support VxLAN tunnel processing, and cannot perform controller requirements) Forwarding action)
  • the driver no longer forwards control signaling to the forwarder, but returns a control failure message to the controller to inform the controller that the corresponding forwarder is unable to perform its required forwarding action.
  • the method can dynamically configure or modify the parameters of the forwarder by performing steps S402 to S403, and implement controller forwarding by performing steps S404 and S405.
  • the parameter query of the device implements the execution control judgment of the forwarding control signaling by performing steps S406 to S409, so that the controller can timely grasp whether the generated first control signaling is successfully executed, so as to reasonably arrange related subsequent control actions.
  • different drivers connected to the transponder can send and control each other through a preset interface protocol. Signaling, sharing information between different drives (such as loader information, statistics, etc.).
  • the controller C1 is connected to the repeater R1 through the driver D1
  • the controller C2 is connected to the repeater R1 through the driver D2
  • the controllers C1, C2 and the repeater R1 are
  • the supported control forwarding protocols are labeled as P1.1, P1.2, and P2.1, respectively, and if a certain transponder parameter is not stored by itself (for convenience of description, assuming that the repeater parameter is X), when the driver D1 When the current value of the X needs to be obtained, the corresponding shared information query signaling may be generated, and the prime shared information query signaling is sent to another driver connected to the repeater R1 (ie, the driver D2); the driver D2 receives the shared information query. After signaling, if X is stored by itself, an information query response message containing the current value of X is generated, and The information inquiry response message is returned to the drive D1, thereby realizing the sharing of the repeater parameter X between the drivers
  • the fifth embodiment of the present application further provides a forwarding control method to illustrate that when multiple drivers are connected to the same transponder, it is necessary to modify the transponder parameters between different drivers. Interworking process.
  • the forwarding control method provided in the fifth embodiment includes the following steps:
  • the driver D1 and the other drivers connected to the repeater R1 establish a connection through the mutual negotiation interface, and send the parameter modification negotiation signaling to the other driver (ie, the drive D2);
  • step S503 The driver D2 that receives the parameter modification negotiation signaling, determines whether the parameter modification corresponding to the parameter negotiation signal is allowed, and if so, performs step S504;
  • S504 The driver that allows the parameter modification generates a negotiation response message for characterizing the parameter modification, and feeds back to the driver D1;
  • the driver D2 determines the permission parameter modification according to the configuration information of the user, and returns a negotiation response message to the driver D1 to notify the driver D1 of the determination result.
  • D1 for the driver D1, there is only one other driver, that is, the driver D2. Therefore, when D1 receives the negotiation response message returned by D2, it can send parameter configuration signaling to the repeater R1.
  • D3 connected to the repeater R1
  • D2 and D3 there are two other drivers, namely, the drivers D2 and D3; in this case, the D1 direction
  • D1 sends the parameter configuration signaling to the repeater R1 only if both the negotiation response message returned by D2 and the negotiation response message returned by D3 are received. Only the negotiation response message returned by D2 is received, or only the negotiation response message returned by D3 is received, and the parameter configuration signaling is not sent to the repeater R1.
  • the embodiment of the present application if all the drivers connected to the repeater R1 allow parameter modification, the driver D1 having the parameter modification requirement sends the parameter configuration signaling to the repeater R1. Control the repeater R1 to perform corresponding parameter modification actions, which can avoid parameter changes to certain The effect of the modified drive is not allowed.
  • the embodiment further includes the following steps after step S504:
  • S506 The driver that allows the parameter modification to modify the parameter information stored by itself according to the parameter modification manner specified in the parameter modification negotiation signaling;
  • the embodiment further includes the following steps:
  • the driver D2 that allows the corresponding parameter modification sends a parameter modification notification to the controller C2 after performing step S506 to inform the controller C2 that the corresponding parameter information has been modified.
  • the modified parameter information is synchronized to each controller, and the consistency of the same parameter on all devices in the entire SDN network can be ensured.
  • the driver receiving the above parameter modification negotiation signaling does not allow the parameter modification requested by the driver D1
  • the drive may not return any message to the drive D1, or the drive performs the following steps:
  • the driver D2 determines that the parameter modification requested in the negotiation signaling is not allowed according to the relevant configuration information of the driver D2, and the driver D2 does not return any to the driver D1. Respond to the message, or return a modification failure message. For the driver D1, if no message is received from the driver D2, or a modification failure message from the driver D2 is received, the driver D1 can determine that the driver D2 does not allow parameter modification.
  • step S505 when the driver having the parameter modification requirement does not receive the negotiation response message fed back by all other drivers connected to the repeater R1 (ie, at least one other drive does not return a message, or the modification fails to be returned)
  • step S505 when the driver having the parameter modification requirement does not receive the negotiation response message fed back by all other drivers connected to the repeater R1 (ie, at least one other drive does not return a message, or the modification fails to be returned)
  • the driver having the parameter modification requirement does not receive the negotiation response message fed back by all other drivers connected to the repeater R1 (ie, at least one other drive does not return a message, or the modification fails to be returned)
  • the message perform the following steps:
  • the drive with the parameter modification requirement sends modification revocation information to other drives to prohibit or revoke the other drive to modify the parameter information stored by itself.
  • the driver D2 allows modification, and returns a negotiation response message to D1, D3 does not allow modification, and D1 is not allowed. Returning the modification failure message; then the driver D1 sends a modification to at least D2 that returns the negotiation response information. If the driver D2 has performed the step S506, the driver D2 restores the modified parameter information to the original parameter information. Similarly, if the driver D2 has performed step S507, the information is received. After modifying the revocation information, the driver D2 sends the notification information to the controller C2 again to notify the controller C2 that the modified parameter information is restored to the original parameter information.
  • step S505 in order to reduce the number of data read and write operations of the drive to the relevant storage device, and reduce the workload of the drive, if and only if the drive having the parameter modification requirement performs step S505, it passes each of the other drives.
  • the modification trigger message is sent to trigger it to perform steps S506 and S507, so that the driver burden caused by the parameter information being modified and then revoked can be avoided.
  • the signaling format conversion between the controller and the repeater supporting different control forwarding protocols is implemented by using the driver, so that the controller does not need to support the built-in plug-in mechanism, and the application scope is large.
  • it can realize the functions of configuring, modifying, querying, and sharing the parameters of the repeater between the drivers, which can simplify the capability of the SDN network to the repeater, and is easy to implement by the repeater, which is beneficial to the forwarding performance of the repeater. Optimization.
  • the sixth embodiment of the present application further provides a software defined network.
  • the software definition network SDN includes: a controller 710, a repeater 720, and at least one driver 730.
  • the controller 710 is configured to: generate first forwarding control signaling according to the forwarding rule, and send the first forwarding control signaling to the first driver connected to the controller in the driver 730 by using the first control forwarding protocol.
  • the driver 730 is configured to: after being connected to the controller 710 as the first driver, convert the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol, and The second forwarding control signaling is sent to the corresponding repeater 720 through the second control forwarding protocol.
  • the first control forwarding protocol is a control forwarding protocol supported by the controller; the second control forwarding protocol is a control forwarding protocol supported by the repeater. It can be seen from the foregoing embodiment that the first forwarding control signaling generated by the controller is format-converted by the driver and forwarded to the corresponding forwarding by using the driver to implement different forwarding devices that support different protocols by the same controller.
  • the controller does not need to support the built-in plug-in mechanism. Therefore, the embodiment of the present application can be applied to control signaling conversion between any type of controller and a repeater, and the application range is greatly increased.
  • the controller 710 is further configured to: determine, as the first driver, at least one driver that matches a type of a repeater corresponding to the forwarding rule, and the first driver establish connection.
  • the driver 730 is further configured to: configure itself as a virtual forwarder corresponding to the forwarder according to parameter information of the forwarder of the service, and forward the virtual The device establishes a connection with the controller as the first driver.
  • the driver 730 is further configured to: configure itself as a virtual forwarder corresponding to the forwarder according to parameter information of the forwarder that it serves, and forward the virtual The device establishes a connection with the controller as the first driver.
  • the driver 730 in a case where the driver 730 is connected to the controller 710 as the first driver, and the driver 730 is simultaneously connected to the plurality of transponders 720, the driver 730 is specifically configured to: a preset mapping relationship between the first control forwarding protocol and the second control forwarding protocol, converting the first forwarding control signaling into multiple second forwarding control signaling corresponding to different repeaters, and sending the respective To the corresponding transponder.
  • the driver 730 in a case where the driver 730 is connected to the controller 710 as the first driver, the driver 730 is further configured to: determine, according to the parameter information of the transponder stored by itself, the received Whether the forwarding rule corresponding to the first forwarding control signaling conforms to the function of the corresponding forwarder; if the forwarding rule corresponding to the first forwarding control signaling does not conform to the function of the corresponding forwarder, returning a control failure message to the controller, otherwise executing And converting the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol.
  • the driver 730 is further configured to: generate parameter configuration signaling according to parameter information of the transponder stored by itself, and send the parameter configuration signaling to a corresponding transponder to configure And / or modify the parameters of the corresponding transponder.
  • the driver 730 is further configured to: when the transponder serving the parameter has a parameter modification requirement, send parameter modification negotiation signaling to another driver connected to the repeater, and After receiving the negotiation response message returned by the other driver, the corresponding parameter is modified by sending the parameter configuration signaling to the corresponding forwarder.
  • the driver 730 is further configured to: when receiving the forwarding parameter query signaling sent by the controller 710, generate corresponding forwarding parameters according to the parameter information of the transponder stored by the controller 710. Answering the information, and feeding back the forwarding parameter response information to the controller 710.
  • the driver may be either a remote device of the controller or a local module running on the controller system.
  • the controller may establish a connection with the determined first driver controller by means of signaling negotiation, including but not limited to the following steps: the controller sends the connection control signaling to the first driver When the response message returned by the first drive is received, the connection is completed.
  • the driver adopts the local module of the controller system the controller can load the first driver into the internal module of the controller by means of module loading, and realize the connection between the controller and the first driver.
  • the seventh embodiment of the present application provides another forwarding control method based on an SDN network.
  • the SDN network includes at least: a forwarder that implements packet forwarding, and performs forwarding control on the forwarder.
  • a controller, and at least one driver that implements drive control of the repeater; correspondingly, the forwarding control method comprises the following steps:
  • the first driver connected to the controller in the driver receives the first forwarding control signaling sent by the controller by using the first control forwarding protocol.
  • the first driver converts the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol.
  • the first driver sends the second forwarding control signaling to a corresponding forwarder by using a second control forwarding protocol.
  • the first control forwarding protocol is a control forwarding protocol supported by the controller; and the second control forwarding protocol is a control forwarding protocol supported by the repeater.
  • the present invention implements the signaling format conversion between the controller and the repeater through the driver.
  • the controller does not have any protocol conversion plug-in built in
  • the controller and the repeater can be realized.
  • the scope of application of the embodiments of the present application is greatly increased relative to the prior art.
  • each A transponder sets up a drive, which has a small amount of changes to the SDN network and related equipment, and low cost.
  • the eighth embodiment of the present application provides another forwarding control method, which is based on an SDN network with a controller, a repeater and a driver. The method includes at least the following steps:
  • S901 The driver configures itself as a virtual forwarder corresponding to the forwarder of the service according to the parameter information of the forwarder of the service, and establishes a connection between the virtual forwarder and the controller as the first driver;
  • S902 The first driver connected to the controller in the driver receives the first forwarding control signaling sent by the controller by using the first control forwarding protocol.
  • the first driver converts the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol.
  • the first driver sends the second forwarding control signaling to a corresponding forwarder by using a second control forwarding protocol.
  • the driver by configuring the driver as a virtual transponder, the signaling format conversion between the plurality of controllers and the plurality of transponders can be realized by using the one driver, and the modification amount of the SDN network and related devices is implemented. Small, low cost.
  • the driver acts as a repeater to the controller, which can shield the controller from differences in topology style and hardware of the lower layer repeater, and simplify the control flow of the controller; Shielding the difference between the upper-layer controllers of the transponders, so that when implementing or deploying the transponders, it is not necessary to consider the specific types and performance attributes of the upper-layer controllers, and reduce the basic performance requirements of the SDN network for the lower-layer repeaters, which facilitates the performance of the repeater. Optimization and expansion.
  • Embodiment 9 of the present application is also based on an SDN network having a controller, a repeater, and a driver.
  • the method includes at least the following steps:
  • the first driver connected to the controller in the driver receives the first forwarding control signaling sent by the controller by using the first control forwarding protocol;
  • Step S1002 The first driver determines whether the forwarding rule corresponding to the received first forwarding control signaling conforms to the function of the corresponding forwarder according to the parameter information of the forwarder that is stored by itself, and if yes, performs step S1004, otherwise executes Step S1003;
  • the first driver before performing format conversion, the first driver first determines the enforceability of the first forwarding control signaling, and returns a control failure message to the controller when the determination result is unexecutable, so that the controller is reasonable. Arrange relevant follow-up control actions.
  • the first driver converts the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol.
  • the first driver converts the first forwarding control signaling into a corresponding second forwarding control signaling according to a preset mapping relationship between the first control forwarding protocol and the second control forwarding protocol.
  • direct or indirect mapping between multiple control forwarding protocols can be set in one drive, thereby enabling free conversion between multiple control signaling through the driver.
  • S1005 The first driver sends the second forwarding control signaling to the second control forwarding protocol to The corresponding transponder.
  • the first driver is based on And the first forwarding control signaling is converted into the second forwarding control signaling that meets the format requirements of the second control forwarding protocol of different types, and is respectively sent to the corresponding forwarder.
  • the following steps may be used to dynamically configure or modify the parameters of the forwarder:
  • the driver generates parameter configuration signaling according to the parameter information of the transponder stored by itself, and sends the parameter configuration signaling to the corresponding transponder to configure and/or modify the parameters of the corresponding transponder.
  • the driver when a driver has a parameter modification requirement for the transponder served by the driver, the driver sends parameter modification negotiation signaling to other drivers connected to the same transponder. And after receiving the negotiation response message returned by all other drivers, modifying the corresponding parameter by sending the parameter configuration signaling to the corresponding forwarder; conversely, if the above driver having the parameter modification requirement does not receive any other driver.
  • the returned negotiation response message, or only the negotiation response message returned by some other transponders indicates that at least one other driver does not allow parameter modification.
  • the parameter modification requirement is required. The driver does not send parameter configuration signaling to the repeater.
  • the controller may further perform parameter query on the forwarder by using the following steps:
  • the driver receives the forwarding parameter query signaling sent by the controller, and generates corresponding forwarding parameter response information according to the parameter information of the transponder stored by the controller, and feeds back the forwarding parameter response information to the controller.
  • Embodiment 10 of the present application further provides a driver applied to a software-defined network SD, where the SDN network includes a forwarder that implements packet forwarding, and the repeater according to a forwarding rule. a controller that performs forwarding control; the driver includes at least:
  • the signaling receiving unit 101 is configured to: when the driver is connected to the controller as the first driver, receive the first forwarding control signaling sent by the controller by using the first control forwarding protocol; and the signaling conversion unit 102 is configured to send the signal And causing, by the receiving unit 101, the first forwarding control signaling to be converted into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol;
  • the signaling sending unit 103 is configured to send the second forwarding control signaling to the corresponding forwarder by using a second control forwarding protocol, where the first control forwarding protocol is a control forwarding protocol supported by the controller;
  • the second control forwarding protocol is a control forwarding protocol supported by the repeater.
  • the signaling conversion unit 102 is specifically configured to: convert the first forwarding control signaling according to a preset mapping relationship between the first control forwarding protocol and the second control forwarding protocol
  • the signaling sending unit 1032 is specifically configured to: pass the multiple second forwarding control signaling generated by the signaling converting unit to the corresponding first The second control forwarding protocol is sent to the corresponding forwarder.
  • a driver applied to a software-defined network SD includes the signaling receiving unit 101, the signaling conversion unit 102, and the signaling sending unit 103 as described in Embodiment 10 above. , also includes at least one of the following units:
  • the self-configuring unit 104 is configured to configure itself as a virtual forwarder corresponding to the transponder served by the transponder according to the parameter information of the transponder served by the driver, and use the virtual transponder as the first driver and the The controller establishes a connection.
  • the signaling determining unit 105 is configured to determine, according to the parameter information of the forwarder that is stored by itself, whether the forwarding rule corresponding to the received first forwarding control signaling conforms to the function of the corresponding forwarder; if the first forwarding control signaling corresponds to If the forwarding rule does not comply with the function of the corresponding forwarder, the control failure message is returned to the controller; otherwise, the signaling conversion unit and/or the signaling sending unit are triggered.
  • the parameter configuration unit 106 is configured to generate parameter configuration signaling according to parameter information of the transponder stored by itself, and send the parameter configuration signaling to a corresponding transponder to configure and/or modify parameters of the corresponding transponder.
  • the signaling negotiation unit 107 is configured to: when the driver has a parameter modification requirement for the transponder served by the driver, send parameter modification negotiation signaling to other drivers connected to the repeater, and receive negotiation of returning by other drivers. After the message is acknowledged, the parameter configuration unit is triggered to modify the parameters of the corresponding forwarder.
  • the parameter querying unit 108 is configured to receive the forwarding parameter query signaling sent by the controller, generate forwarding parameter response information corresponding to the forwarding parameter query signaling according to the parameter information of the forwarder stored by the controller, and send the forwarding parameter response Information is fed back to the controller.
  • the embodiment 12 of the present application further provides a driver applied to the software-defined network SD, which includes: a processor 201 and a memory 202; wherein the memory 202 stores an operation instruction that the processor 201 can execute,
  • the processor 201 reads the operation instructions in the memory 202 to implement the following functions: connecting with the controller and receiving the first forwarding control signaling sent by the controller through the first control forwarding protocol; the first forwarding control signaling to be received Converting to the second forwarding control signaling conforming to the format requirement of the second control forwarding protocol; sending the second forwarding control signaling to the corresponding forwarder by using the second control forwarding protocol.
  • the processor 201 is further configured to configure itself as a virtual forwarder corresponding to the transponder served by the transponder according to the parameter information of the served transponder to implement establishment with the controller. connection.
  • the memory 202 is further configured to store parameter information of the transponder served by the driver.
  • the processor 201 is further configured to: determine, according to the parameter information of the transponder stored by the memory 202, Whether the forwarding rule corresponding to the first forwarding control signaling is consistent with the function of the corresponding forwarding device; if yes, performing the above function of converting the first forwarding control signaling into the second forwarding control signaling, otherwise returning to the controller Control failure message.
  • the processor 201 is further configured to: generate parameter configuration signaling according to the parameter information of the forwarder stored in the memory 202, and send the parameter configuration signaling to a corresponding forwarder to configure And / or modify the parameters of the corresponding transponder.
  • the processor 201 is further configured to: when the transponder for the serving device has a parameter modification requirement, send the parameter modification negotiation signaling to the other driver connected to the repeater, and receive After the negotiation response message returned by the other driver, the corresponding parameter configuration signaling is generated and sent to modify the parameters of the corresponding transponder.
  • the processor 201 is further configured to: receive the forwarding parameter query signaling sent by the controller, and generate, according to the parameter information of the forwarder stored by the controller, a forwarding parameter corresponding to the forwarding parameter query signaling. Answering the information, and feeding back the forwarding parameter response information to the controller.
  • the application can be described in the general context of computer-executable instructions executed by a computer, such as a program module.
  • program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
  • the present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
  • program modules can be located in both local and remote computer storage media including storage devices.

Abstract

一种转发控制方法、驱动器及软件定义网络,通过驱动器将控制器生成的第一转发控制信令转换为第二转发控制信令,该第二转发控制信令符合转发器所支持的转发控制协议的格式要求;进而驱动器将第二转发控制信令发送至对应的转发器,因此,本申请实施例不再需要控制器支持内置插件机制,只需要在软件定义网络中设置相应的驱动器,就可以实现同一控制器对任意转发器的转发控制,应用范围大大增加。另外,本申请实施例中,通过改变不同类型的驱动器、控制器和转发器三者之间的连接关系,即可实现驱动器、转发器和控制器的复用,不需要针对每一个控制器、每一个转发器设置一个驱动器,对SDN网络及相关设备的改动量小,成本低。 A forwarding control method, driver and software-defined network (SDN), the driver convertsing a first forwarding control signaling generated by a controller into a second forwarding control signaling, the second forwarding control signaling complying with a format requirement of a forwarding control protocol supported by a forwarder; the driver further sendsing the second forwarding control signaling to a corresponding forwarder. Therebyfore, an embodiment of the present application no longer requires the controller to support a built-in plug-in mechanism, and it is only necessary to disposes a corresponding driver in the software-defined network to enable the same controller to conduct carry out forwarding control of any forwarder, thus greatly increasing the scope of application range. In addition, in an embodiment of the present application, changing the connection relationships between different types of drivers, controllers and forwarders can realizes multiplexing of the drivers, the forwarders and the controllers, without the need of disposinghavingneeding to disposeprovide one driver for each controller and each forwarder, havingwith only small changes into the SDN network and related devices, and low costs.

Description

转发控制方法、 驱动器及 SDN网络  Forwarding control method, driver and SDN network
技术领域 本发明涉及通信技术领域,特别是涉及一种转发控制方法、驱动器及应用其的软 件定义网络 ( Software-Defined Network, SDN)。 背景技术 一个完整的通信网络, 往往由多种网络设备组成, 如路由器、 网关、 交换机、 防 火墙及各类服务器等; 不同网络设备之间通过相应的网络协议进行通信。为提高网络 设备的可管理性及部署灵活性,现有通信网络逐渐趋于采用 SDN网络。在 SDN网络 中,网络设备的协议控制和报文转发逻辑被解耦为实现协议控制逻辑的控制器和实现 报文转发逻辑的转发器两部分。一方面,通过对不同网络设备对应的控制器的集中部 署, 能够方便的实现对网络的集中控制和维护、 提高网络管理效率; 另一方面, 解耦 得到的转发器结构简单, 便于实现报文转发功能的优化。 TECHNICAL FIELD The present invention relates to the field of communications technologies, and in particular, to a forwarding control method, a driver, and a Software-Defined Network (SDN) using the same. BACKGROUND A complete communication network is often composed of a plurality of network devices, such as routers, gateways, switches, firewalls, and various types of servers. Different network devices communicate through corresponding network protocols. In order to improve the manageability and deployment flexibility of network devices, existing communication networks are increasingly adopting SDN networks. In the SDN network, the protocol control and packet forwarding logic of the network device are decoupled into two parts: a controller that implements the protocol control logic and a repeater that implements the packet forwarding logic. On the one hand, centralized deployment of controllers corresponding to different network devices can conveniently implement centralized control and maintenance of the network and improve network management efficiency. On the other hand, the decoupled demultiplexer has a simple structure and is convenient for implementing packets. Optimization of the forwarding function.
SDN 网络中, 不同的控制器可能支持不同的控制转发协议, 不同的转发器也可 能支持不同的控制转发协议。通常,控制器中设置有多个支持不同控制转发协议的插 件; 控制器根据目标转发器所支持的控制转发协议类型,调用相应的插件对转发控制 信令进行格式封装,封装后的转发控制信令即可被该目标转发器成功接收并执行, 从 而完成相应的报文转发业务。该方法通过同一个控制器控制多个不同的转发器, 能够 提高控制器的控制灵活性。 上述通过内置插件实现对控制器的功能扩展具有一定的局限性,无法适用于不支 持内置插件机制的控制器。 发明内容 本申请实施例中提供了一种转发控制方法、 驱动器及 SDN网络, 以解决现有通 过内置插件实现对控制器的功能扩展的方法应用范围受限的问题。 为了解决上述技术问题, 本申请实施例公开了如下技术方案: 第一方面,提供了一种基于软件定义网络 SDN的转发控制方法,所述 SDN网络 包括实现报文转发的转发器, 和根据转发规则对所述转发器执行转发控制的控制器; 其特征在于, 所述 SDN网络还包括至少一个实现对转发器的驱动控制的驱动器; 所 述转发控制方法包括: 所述控制器根据转发规则生成第一转发控制信令,并将第一转发控制信令通过第 一控制转发协议发送至所述驱动器中与控制器连接的第一驱动器;所述第一驱动器将 接收到的第一转发控制信令转换为符合第二控制转发协议的格式要求的第二转发控 制信令, 并将所述第二转发控制信令通过第二控制转发协议发送至相应的转发器; 其中,所述第一控制转发协议为控制器所支持的控制转发协议; 所述第二控制转 发协议为转发器所支持的控制转发协议。 结合第一方面,在第一方面第一种可能的实现方式中,在所述控制器发送第一转 发控制指令之前,所述转发控制方法还包括: 控制器确定与所述转发规则对应的转发 器的类型相匹配的至少一个驱动器作为所述第一驱动器,并与所述第一驱动器建立连 接。 结合第一方面第一种可能的实现方式,在第一方面第二种可能的实现方式中,所 述控制器确定与所述转发规则对应的转发器的类型相匹配的至少一个驱动器作为所 述第一驱动器,包括: 控制器根据每个驱动器发送的注册消息和转发器发送的自身的 类型标识确定与所述转发规则对应的转发器的类型相匹配的驱动器,并将所确定的驱 动器作为所述第一驱动器; 其中,所述注册消息包括相应的驱动器所支持的一种或多 种转发器的类型标识; 所述类型标识包括以下至少一种: 转发器型号、控制转发协议 类型、 流表类型模板 TTP和可协商数据路径模型 DM。 结合第一方面第一种可能的实现方式,在第一方面第三种可能的实现方式中,所 述控制器与第一驱动器建立连接,包括: 控制器通过模块加载或信令协商的方式与所 述第一驱动器建立连接。 结合第一方面,在第一方面第四种可能的实现方式中,在所述控制器发送第一转 发控制指令之前,所述转发控制方法还包括: 所述驱动器根据其服务的转发器的参数 信息,将自身配置为与其服务的转发器相对应的虚拟转发器; 所述虚拟转发器作为第 一驱动器, 与所述控制器建立连接。 结合第一方面, 或者第一方面第一种可能的实现方式, 或者第一方面第二种可能 的实现方式, 或者第一方面第三种可能的实现方式, 或者第一方面第四种可能的实现 方式,在第一方面第五种可能的实现方式中,所述第一驱动器将接收到的第一转发控 制信令转换为符合第二控制转发协议的格式要求的第二转发控制信令,包括: 当所述 转发器包括多个时,所述第一驱动器根据第一控制转发协议和第二控制转发协议之间 的预设映射关系,将所述第一转发控制信令转换为对应于不同转发器的多条第二转发 控制信令。 结合第一方面, 或者第一方面第一种可能的实现方式, 或者第一方面第二种可能 的实现方式, 或者第一方面第三种可能的实现方式, 或者第一方面第四种可能的实现 方式, 在第一方面第六种可能的实现方式中, 所述转发控制方法还包括: 所述第一驱动器根据自身存储的转发器的参数信息,判断接收到的第一转发控制 信令所对应的转发规则是否符合相应转发器的功能;如果第一转发控制信令所对应的 转发规则不符合相应转发器的功能, 则第一驱动器向控制器返回控制失败消息, 否则 执行所述将接收到的第一转发控制信令转换为符合第二控制转发协议的格式要求的 第二转发控制信令。 结合第一方面, 或者第一方面第一种可能的实现方式, 或者第一方面第二种可能 的实现方式, 或者第一方面第三种可能的实现方式, 或者第一方面第四种可能的实现 方式, 在第一方面第七种可能的实现方式中, 所述转发控制方法还包括: 述驱动器根 据自身存储的转发器的参数信息生成参数配置信令,并将所述参数配置信令发送至相 应的转发器, 以配置和 /或修改相应的转发器的参数。 结合第一方面, 或者第一方面第一种可能的实现方式, 或者第一方面第二种可能 的实现方式, 或者第一方面第三种可能的实现方式, 或者第一方面第四种可能的实现 方式, 在第一方面第八种可能的实现方式中, 所述转发控制方法还包括: 连接于同一 转发器的不同驱动器之间通过预设接口协议发送和 /或接收控制信令; 其中, 所述连 接于同一转发器的不同驱动器之间通过预设接口协议发送和 /或接收控制信令, 包括 以下至少一项: 当连接于所述转发器的第二驱动器具有转发器参数修改需求时,所述第二驱动器 向连接于所述转发器的第三驱动器发送参数修改协商信令;所述第三驱动器接收所述 参数修改协商信令, 并在允许所述参数修改协商信令中请求的参数修改操作时, 向所 述第二驱动器返回协商应答消息;所述第二驱动器向所述第三驱动器发送共享信息查 询信令; 所述第三驱动器接收所述共享信息查询信令, 并根据所述共享信息查询信令 向所述第二驱动器返回对应的信息查询应答消息。 结合第一方面, 或者第一方面第一种可能的实现方式, 或者第一方面第二种可能 的实现方式, 或者第一方面第三种可能的实现方式, 或者第一方面第四种可能的实现 方式, 在第一方面第九种可能的实现方式中, 所述转发控制方法还包括: 当接收到控 制器发送的转发参数查询信令时,所述驱动器根据自身存储的转发器的参数信息生成 相应的转发参数应答信息, 并将所述转发参数应答信息反馈至控制器。 In an SDN network, different controllers may support different control forwarding protocols, and different repeaters may also support different control forwarding protocols. Generally, a plurality of plug-ins supporting different control forwarding protocols are set in the controller; the controller calls the corresponding plug-in to format and encapsulate the forwarding control signaling according to the type of control forwarding protocol supported by the target repeater, and the encapsulated forwarding control signal The target can be successfully received and executed by the target repeater, thereby completing the corresponding packet forwarding service. The method controls a plurality of different transponders through the same controller, which can improve the control flexibility of the controller. The above implementation of the function extension of the controller through the built-in plug-in has certain limitations and cannot be applied to a controller that does not support the built-in plug-in mechanism. SUMMARY OF THE INVENTION In the embodiments of the present application, a forwarding control method, a driver, and an SDN network are provided to solve the problem that a method for extending a function of a controller by using a built-in plug-in is limited in application scope. In order to solve the above technical problem, the embodiment of the present application discloses the following technical solutions: In a first aspect, a forwarding control method based on a software-defined network SDN is provided, where the SDN network includes a forwarder that implements packet forwarding, and a controller that performs forwarding control on the repeater; The SDN network further includes at least one driver that implements drive control on the repeater; the forwarding control method includes: the controller generates first forwarding control signaling according to a forwarding rule, and the first forwarding control Transmitting, by the first control forwarding protocol, to the first driver connected to the controller in the driver; the first driver converting the received first forwarding control signaling into a format requirement that conforms to the second control forwarding protocol The second forwarding control signaling is sent to the corresponding forwarder by using the second control forwarding protocol; wherein the first control forwarding protocol is a control forwarding protocol supported by the controller; The second control forwarding protocol is a control forwarding protocol supported by the repeater. With reference to the first aspect, in a first possible implementation manner of the first aspect, before the controller sends the first forwarding control instruction, the forwarding control method further includes: the controller determining the forwarding corresponding to the forwarding rule At least one driver matching the type of the device acts as the first driver and establishes a connection with the first driver. With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the controller determines, by using, at least one driver that matches a type of the forwarding device corresponding to the forwarding rule The first driver includes: the controller determining, according to the registration message sent by each driver and the type identifier of the transponder, the type of the transponder corresponding to the forwarding rule, and determining the driver as the The first driver; wherein the registration message includes a type identifier of one or more types of repeaters supported by the corresponding driver; the type identifier includes at least one of the following: a repeater model, a control forwarding protocol type, and a flow table. Type template TTP and negotiable data path model DM. In conjunction with the first possible implementation of the first aspect, in a third possible implementation manner of the first aspect, the controller establishes a connection with the first driver, including: the controller is configured by means of module loading or signaling negotiation. The first driver establishes a connection. With reference to the first aspect, in a fourth possible implementation manner of the first aspect, before the controller sends the first forwarding control instruction, the forwarding control method further includes: the parameter of the forwarder of the driver according to the service thereof The information configures itself as a virtual forwarder corresponding to the transponder it serves; the virtual repeater acts as a first driver and establishes a connection with the controller. With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, or the third possible implementation manner of the first aspect, or the fourth possible In a fifth possible implementation manner of the first aspect, the first forwarding device that the first driver receives the first forwarding control And converting the signaling to the second forwarding control signaling that meets the format requirement of the second control forwarding protocol, including: when the repeater includes multiple, the first driver forwards according to the first control forwarding protocol and the second control The preset mapping relationship between the protocols converts the first forwarding control signaling into multiple second forwarding control signalings corresponding to different repeaters. With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, or the third possible implementation manner of the first aspect, or the fourth possible In a sixth possible implementation manner of the first aspect, the forwarding control method further includes: determining, by the first driver, the received first forwarding control signaling according to the parameter information of the forwarder stored by the first driver Whether the corresponding forwarding rule conforms to the function of the corresponding forwarder; if the forwarding rule corresponding to the first forwarding control signaling does not conform to the function of the corresponding forwarder, the first driver returns a control failure message to the controller, otherwise performing the receiving The first forwarding control signaling to the second forwarding control signaling is converted to meet the format requirements of the second control forwarding protocol. With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, or the third possible implementation manner of the first aspect, or the fourth possible In a seventh possible implementation manner of the first aspect, the forwarding control method further includes: the driver generating parameter configuration signaling according to the parameter information of the forwarder stored by the driver, and sending the parameter configuration signaling Go to the appropriate repeater to configure and/or modify the parameters of the corresponding repeater. With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, or the third possible implementation manner of the first aspect, or the fourth possible In an eighth aspect of the first aspect, the forwarding control method further includes: transmitting, and/or receiving, control signaling by using a preset interface protocol between different drivers connected to the same transponder; Transmitting and/or receiving control signaling between different drivers connected to the same transponder through a preset interface protocol, including at least one of the following: when the second driver connected to the transponder has a transponder parameter modification requirement The second driver sends parameter modification negotiation signaling to a third driver connected to the repeater; the third driver receives the parameter modification negotiation signaling, and requests the parameter modification negotiation signaling Returning a negotiation response message to the second driver when the parameter modification operation is performed; the second driver sends the third driver to the third driver Query signaling sharing information; receiving the third drive the shared signaling information query, and returns the corresponding information inquiry response message to the second driver based on the shared information query signaling. Combining the first aspect, or the first possible implementation of the first aspect, or the second possible aspect of the first aspect The implementation of the forwarding, or the third possible implementation of the first aspect, or the fourth possible implementation manner of the first aspect. In the ninth possible implementation manner of the first aspect, the forwarding control method further includes: Upon receiving the forwarding parameter query signaling sent by the controller, the driver generates corresponding forwarding parameter response information according to the parameter information of the forwarder stored by the controller, and feeds back the forwarding parameter response information to the controller.
第二方面, 提供一种软件定义网络 SDN; 所述软件定义网络 SDN包括控制器、 转发器和至少一个驱动器; 所述控制器用于: 根据转发规则生成第一转发控制信令, 并将第一转发控制信令 通过第一控制转发协议发送至所述驱动器中与控制器连接的第一驱动器; 所述驱动器用于: 在作为所述第一驱动器与所述控制器连接后,接收所述第一转 发控制信令,将接收到的第一转发控制信令转换为符合第二控制转发协议的格式要求 的第二转发控制信令,并将所述第二转发控制信令通过第二控制转发协议发送至相应 的转发器; 其中,所述第一控制转发协议为控制器所支持的控制转发协议; 所述第二控制转 发协议为转发器所支持的控制转发协议。 结合第二方面, 在第二方面第一种可能的实现方式中, 所述控制器还用于: 确定 与对应于所述转发规则的转发器的类型相匹配的至少一个驱动器作为所述第一驱动 器, 并与所述第一驱动器建立连接。 结合第二方面, 在第二方面第二种可能的实现方式中, 所述驱动器还用于: 根据 其服务的转发器的参数信息, 将自身配置为与其服务的转发器相对应的虚拟转发器, 并将所述虚拟转发器作为所述第一驱动器与所述控制器建立连接。 结合第二方面, 或者第二方面第一种可能的实现方式, 或者第二方面第二种可能 的实现方式,在第二方面第三种可能的实现方式中,在作为所述第一驱动器与所述控 制器连接后, 所述驱动器具体用于: 当与多个转发器连接时, 根据第一控制转发协议 和第二控制转发协议之间的预设映射关系,将所述第一转发控制信令转换为对应于不 同转发器的多条第二转发控制信令, 并将其分别发送至相应的转发器。 结合第二方面, 或者第二方面第一种可能的实现方式, 或者第二方面第二种可能 的实现方式,在第二方面第四种可能的实现方式中,在作为所述第一驱动器与所述控 制器连接后, 所述驱动器还用于: 根据自身存储的转发器的参数信息, 判断接收到的 第一转发控制信令所对应的转发规则是否符合相应转发器的功能;如果第一转发控制 信令所对应的转发规则不符合相应转发器的功能, 则向控制器返回控制失败消息, 否 则执行所述将接收到的第一转发控制信令转换为符合第二控制转发协议的格式要求 的第二转发控制信令。 结合第二方面, 或者第二方面第一种可能的实现方式, 或者第二方面第二种可能 的实现方式, 在第二方面第五种可能的实现方式中, 所述驱动器还用于: 根据自身存 储的转发器的参数信息生成参数配置信令,并将所述参数配置信令发送至相应的转发 器, 以配置和 /或修改相应的转发器的参数。 结合第二方面第五种可能的实现方式,在第二方面第六种可能的实现方式中,所 述驱动器还用于:通过预设接口协议向所连接的转发器相同的另一驱动器发送控制信 令, 和 /或, 接收所述另一驱动器发送的控制信令; 其中, 所述向所述另一驱动器发送控制信令, 包括以下至少一项: 当所述驱动器 具有转发器参数修改需求时, 向所述另一驱动器发送参数修改协商信令; 向所述另一 驱动器发送共享信息查询信令; 所述接收所述另一驱动器发送的控制信令,包括以下至少一项: 接收所述另一驱 动器根据所述参数修改协商信令返回的协商应答信息;接收所述另一驱动器根据所述 共享信息查询信令发挥的信息查询应答消息。 结合第二方面, 或者第二方面第一种可能的实现方式, 或者第二方面第二种可能 的实现方式, 在第二方面第七种可能的实现方式中, 所述驱动器还用于: 当接收到控 制器发送的转发参数查询信令时,根据自身存储的转发器的参数信息生成相应的转发 参数应答信息, 并将所述转发参数应答信息反馈至控制器。 第三方面,提供一种基于软件定义网络 S D的转发控制方法,所述 SDN网络包 括实现报文转发的转发器, 和对所述转发器进行转发控制的控制器; 其特征在于, 所 述 SDN网络还包括至少一个实现对转发器的驱动控制的驱动器; 所述转发控制方法 包括: 所述驱动器中与控制器连接的第一驱动器接收控制器通过第一控制转发协议发 送的第一转发控制信令;所述第一驱动器将接收到的第一转发控制信令转换为符合第 二控制转发协议的格式要求的第二转发控制信令;所述第一驱动器将所述第二转发控 制信令通过第二控制转发协议发送至相应的转发器; 其中,所述第一控制转发协议为控制器所支持的控制转发协议; 所述第二控制转 发协议为转发器所支持的控制转发协议。 结合第三方面,在第三方面第一种可能的实现方式中,所述转发控制方法还包括: 所述驱动器根据其服务的转发器的参数信息,将自身配置为与其服务的转发器相对应 的虚拟转发器, 并将所述虚拟转发器作为所述第一驱动器与所述控制器建立连接。 结合第三方面, 或者第三方面第一种可能的实现方式,在第三方面第二种可能的 实现方式中,所述第一驱动器将接收到的第一转发控制信令转换为符合第二控制转发 协议的格式要求的第二转发控制信令, 包括: 当转发器包括多个时, 第一驱动器根据 第一控制转发协议和第二控制转发协议之间的预设映射关系,将所述第一转发控制信 令转换为对应于不同转发器的多条第二转发控制信令。 结合第三方面, 或者第三方面第一种可能的实现方式,在第三方面第三种可能的 实现方式中,所述转发控制方法还包括: 所述第一驱动器根据自身存储的转发器的参 数信息,判断接收到的第一转发控制信令所对应的转发规则是否符合相应转发器的功 能; 如果第一转发控制信令所对应的转发规则不符合相应转发器的功能, 则第一驱动 器向控制器返回控制失败消息,否则执行所述将接收到的第一转发控制信令转换为符 合第二控制转发协议的格式要求的第二转发控制信令。 结合第三方面, 或者第三方面第一种可能的实现方式,在第三方面第四种可能的 实现方式中,所述转发控制方法还包括: 所述驱动器根据自身存储的转发器的参数信 息生成参数配置信令, 并将所述参数配置信令发送至相应的转发器, 以配置和 /或修 改相应的转发器的参数。 结合第三方面, 或者第三方面第一种可能的实现方式,在第三方面第五种可能的 实现方式中,所述转发控制方法还包括: 所述驱动器通过预设接口协议向所连接的转 发器相同的另一驱动器发送控制信令, 和 /或, 接收所述另一驱动器发送的控制信令; 其中, 所述驱动器向所述另一驱动器发送控制信令, 包括以下至少一项: 当所述 驱动器具有转发器参数修改需求时, 向所述另一驱动器发送参数修改协商信令; 向所 述另一驱动器发送共享信息查询信令; 所述驱动器接收所述另一驱动器发送的控制信令,包括以下至少一项: 接收所述 另一驱动器根据所述参数修改协商信令返回的协商应答信息;接收所述另一驱动器根 据所述共享信息查询信令发挥的信息查询应答消息。 结合第三方面, 或者第三方面第一种可能的实现方式,在第三方面第六种可能的 实现方式中,所述转发控制方法还包括:当接收到控制器发送的转发参数查询信令时, 所述驱动器根据自身存储的转发器的参数信息生成相应的转发参数应答信息,并将所 述转发参数应答信息反馈至控制器。 第四方面, 提供一种驱动器; 所述驱动器应用于软件定义网络 S D, 所述 SDN 网络包括实现报文转发的转发器,和根据转发规则对所述转发器执行转发控制的控制 器; 所述驱动器包括: 信令接收单元,用于当所述驱动器作为第一驱动器与控制器连接时,接收控制器 通过第一控制转发协议发送的第一转发控制信令; 信令转换单元,用于将所述信令接收单元接收到的第一转发控制信令转换为符合 第二控制转发协议的格式要求的第二转发控制信令; 信令发送单元,用于将所述第二转发控制信令通过第二控制转发协议发送至相应 的转发器; 其中,所述第一控制转发协议为控制器所支持的控制转发协议; 所述第二控制转 发协议为转发器所支持的控制转发协议。 结合第四方面, 在第四方面第一种可能的实现方式中, 所述驱动器还包括: 自我 配置单元,用于根据所述驱动器服务的转发器的参数信息,将自身配置为与其服务的 转发器相对应的虚拟转发器,并将所述虚拟转发器作为所述第一驱动器与所述控制器 建立连接。 结合第四方面, 或者第四面第一种可能的实现方式,在第四方面第二种可能的实 现方式中, 当所述驱动器作为第一驱动器与多个转发器连接时,所述信令转换单元具 体用于: 根据第一控制转发协议和第二控制转发协议之间的预设映射关系,将所述第 一转发控制信令转换为对应于不同转发器的多条第二转发控制信令;所述信令发送单 元具体用于,将所述信令转换单元生成的多条第二转发控制信令分别通过相应的第二 控制转发协议发送至相应的转发器。 结合第四方面, 或者第四面第一种可能的实现方式,在第四方面第三种可能的实 现方式中, 所述驱动器还包括: 信令判断单元, 用于根据自身存储的转发器的参数信 息, 判断接收到的第一转发控制信令所对应的转发规则是否符合相应转发器的功能; 如果第一转发控制信令所对应的转发规则不符合相应转发器的功能,则向控制器返回 控制失败消息; 否则, 触发所述信令转换单元和 /或信令发送单元。 结合第四方面, 或者第四面第一种可能的实现方式,在第四方面第四种可能的实 现方式中, 所述驱动器还包括: 参数配置单元, 用于根据自身存储的转发器的参数信 息生成参数配置信令, 并将所述参数配置信令发送至相应的转发器, 以配置和 /或修 改相应的转发器的参数。 结合第四方面, 或者第四面第一种可能的实现方式,在第四方面第五种可能的实 现方式中, 所述驱动器还包括: 信息互通单元, 用于通过预设接口协议向所连接的转 发器相同的另一驱动器发送控制信令, 和 /或, 接收所述另一驱动器发送的控制信令; 其中, 所述向所述另一驱动器发送控制信令, 包括以下至少一项: 当所述驱动器 具有转发器参数修改需求时, 向所述另一驱动器发送参数修改协商信令; 向所述另一 驱动器发送共享信息查询信令; 所述接收所述另一驱动器发送的控制信令,包括以下至少一项: 接收所述另一驱 动器根据所述参数修改协商信令返回的协商应答信息;接收所述另一驱动器根据所述 共享信息查询信令发挥的信息查询应答消息。 结合第四方面, 或者第四面第一种可能的实现方式,在第四方面第六种可能的实 现方式中, 所述驱动器还包括: 参数查询单元, 用于在接收到控制器发送的转发参数 查询信令时,根据自身存储的转发器的参数信息生成相应的转发参数应答信息, 并将 所述转发参数应答信息反馈至控制器。 由以上技术方案可见,本申请实施例通过驱动器实现控制器与转发器之间转发控 制信令的格式转换,在控制器需要对转发器执行转发规则控制时, 只需将控制器与相 应的驱动器建立连接, 即可将控制器生成的第一转发控制信令发送至相应的驱动器, 进而通过该驱动器将第一转发控制信令转换为符合上述转发器的控制转发协议要求 的第二转发控制信令, 并将该第二转发控制信令发送至上述转发器, 从而控制其执行 转发业务。 因此, 本申请不要求控制器具备内置插件机制, 能够实现任意控制器与转 发器之间的信令转换, 解决了现有技术应用范围受限的问题。 附图说明 为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现 有技术描述中所需要使用的附图作简单地介绍, 显而易见地,对于本领域普通技术人 员而言, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 In a second aspect, a software-defined network SDN is provided. The software-defined network SDN includes a controller, a repeater, and at least one driver. The controller is configured to: generate first forwarding control signaling according to a forwarding rule, and Forwarding control signaling is sent to a first driver connected to the controller in the driver by using a first control forwarding protocol; the driver is configured to: receive the first after being connected to the controller as the first driver Forwarding the control signaling, converting the received first forwarding control signaling into a second forwarding control signaling conforming to the format requirement of the second control forwarding protocol, and forwarding the second forwarding control signaling by using the second control The protocol is sent to the corresponding forwarder; wherein the first control forwarding protocol is a control forwarding protocol supported by the controller; and the second control forwarding protocol is a control forwarding protocol supported by the repeater. With reference to the second aspect, in a first possible implementation manner of the second aspect, the controller is further configured to: determine, as the first, at least one driver that matches a type of a forwarder corresponding to the forwarding rule a driver and establishing a connection with the first driver. With reference to the second aspect, in a second possible implementation manner of the second aspect, the driver is further configured to: configure itself as a virtual repeater corresponding to the transponder served by the transponder according to the parameter information of the transponder it serves And establishing the virtual forwarder as the first driver to establish a connection with the controller. With reference to the second aspect, or the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in the third possible implementation manner of the second aspect, After the controller is connected, the driver is specifically configured to: when connected to multiple forwarders, perform the first forwarding control according to a preset mapping relationship between the first control forwarding protocol and the second control forwarding protocol The signaling is converted into a plurality of second forwarding control signalings corresponding to different transponders and sent to respective transponders. With reference to the second aspect, or the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in the fourth possible implementation manner of the second aspect, After the controller is connected, the driver is further configured to: determine, according to the parameter information of the forwarder that is stored in the device, whether the forwarding rule corresponding to the received first forwarding control signaling conforms to the function of the corresponding forwarder; Forwarding control If the forwarding rule corresponding to the signaling does not meet the function of the corresponding forwarder, the control failure message is returned to the controller, otherwise the first forwarding control signaling received is converted into a format that meets the format requirements of the second control forwarding protocol. The second forwarding control signaling. With reference to the second aspect, or the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in the fifth possible implementation manner of the second aspect, the driver is further configured to: The parameter information of the transponder stored by itself generates parameter configuration signaling, and sends the parameter configuration signaling to a corresponding transponder to configure and/or modify parameters of the corresponding transponder. With the fifth possible implementation of the second aspect, in a sixth possible implementation manner of the second aspect, the driver is further configured to: send, by using a preset interface protocol, control to another driver that is connected to the same transponder Signaling, and/or receiving control signaling sent by the other driver; wherein the sending the control signaling to the another driver includes at least one of: when the driver has a repeater parameter modification requirement Transmitting the parameter modification negotiation signaling to the another driver; transmitting the shared information query signaling to the another driver; and receiving the control signaling sent by the another driver, including at least one of the following: The other driver modifies the negotiation response information returned by the negotiation signaling according to the parameter; and receives an information query response message that is played by the another driver according to the shared information query signaling. With reference to the second aspect, or the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in the seventh possible implementation manner of the second aspect, the driver is further configured to: When receiving the forwarding parameter query signaling sent by the controller, the corresponding forwarding parameter response information is generated according to the parameter information of the transponder stored by the controller, and the forwarding parameter response information is fed back to the controller. A third aspect provides a forwarding control method based on a software-defined network SD, where the SDN network includes a forwarder that implements packet forwarding, and a controller that performs forwarding control on the forwarder; The network further includes at least one driver that implements drive control of the repeater; the forwarding control method includes: the first driver that is connected to the controller in the driver receives a first forwarding control message sent by the controller through the first control forwarding protocol The first driver converts the received first forwarding control signaling into a second forwarding control signaling conforming to a format requirement of the second control forwarding protocol; the first driver uses the second forwarding control signaling Sending to the corresponding forwarder by using the second control forwarding protocol; wherein the first control forwarding protocol is a control forwarding protocol supported by the controller; The protocol is a control forwarding protocol supported by the repeater. With reference to the third aspect, in a first possible implementation manner of the third aspect, the forwarding control method further includes: the driver configuring itself to correspond to a transponder served by the transponder according to the parameter information of the transponder served by the driver a virtual forwarder, and the virtual forwarder is connected to the controller as the first driver. With reference to the third aspect, or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the first driver converts the received first forwarding control signaling into a second The second forwarding control signaling required to control the format of the forwarding protocol includes: when the repeater includes multiple, the first driver according to the preset mapping relationship between the first control forwarding protocol and the second control forwarding protocol, The first forwarding control signaling is converted into a plurality of second forwarding control signalings corresponding to different repeaters. With reference to the third aspect, or the first possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the forwarding control method further includes: the first driver according to the transponder stored by the first The parameter information determines whether the forwarding rule corresponding to the received first forwarding control signaling conforms to the function of the corresponding forwarder; if the forwarding rule corresponding to the first forwarding control signaling does not conform to the function of the corresponding forwarder, the first driver Returning a control failure message to the controller, otherwise performing the conversion of the received first forwarding control signaling into a second forwarding control signaling conforming to the format requirement of the second control forwarding protocol. With reference to the third aspect, or the first possible implementation manner of the third aspect, in the fourth possible implementation manner of the third aspect, the forwarding control method further includes: the driver according to the parameter information of the transponder stored by the driver Generating parameter configuration signaling, and transmitting the parameter configuration signaling to a corresponding repeater to configure and/or modify parameters of the corresponding repeater. With the third aspect, or the first possible implementation manner of the third aspect, in the fifth possible implementation manner of the third aspect, the forwarding control method further includes: the driver is connected to the connected device by using a preset interface protocol Another driver having the same transponder transmits control signaling, and/or receives control signaling sent by the other driver; wherein the driver sends control signaling to the other driver, including at least one of the following: Transmitting parameter modification negotiation signaling to the another driver when the driver has a repeater parameter modification requirement; transmitting shared information query signaling to the another driver; the driver receiving the control sent by the another driver The signaling includes at least one of the following: receiving the negotiation response information returned by the another driver according to the parameter modification negotiation signaling; and receiving an information query response message played by the another driver according to the shared information query signaling. In combination with the third aspect, or the first possible implementation of the third aspect, the sixth possible aspect in the third aspect In an implementation manner, the forwarding control method further includes: when receiving the forwarding parameter query signaling sent by the controller, the driver generates corresponding forwarding parameter response information according to the parameter information of the forwarder stored by the driver, and the The forwarding parameter response information is fed back to the controller. A fourth aspect, a driver is provided; the driver is applied to a software-defined network SD, the SDN network includes a forwarder that implements packet forwarding, and a controller that performs forwarding control on the forwarder according to a forwarding rule; The driver includes: a signaling receiving unit, configured to: when the driver is connected to the controller as the first driver, receive the first forwarding control signaling sent by the controller through the first control forwarding protocol; and the signaling conversion unit is configured to: The first forwarding control signaling received by the signaling receiving unit is converted into a second forwarding control signaling that meets the format requirement of the second control forwarding protocol; the signaling sending unit is configured to use the second forwarding control signaling The first control forwarding protocol is a control forwarding protocol supported by the controller, and the second control forwarding protocol is a control forwarding protocol supported by the forwarder. With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the driver further includes: a self-configuring unit, configured to configure itself to forward the service according to the parameter information of the forwarder of the driver service Corresponding virtual forwarder, and establishing the virtual forwarder as the first driver to establish a connection with the controller. With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the signaling is performed when the driver is connected as a first driver to multiple forwarders The converting unit is specifically configured to: convert the first forwarding control signaling into multiple second forwarding control signals corresponding to different repeaters according to a preset mapping relationship between the first control forwarding protocol and the second control forwarding protocol The signaling sending unit is configured to send the multiple second forwarding control signalings generated by the signaling conversion unit to the corresponding forwarders by using a corresponding second control forwarding protocol. With reference to the fourth aspect, or the fourth possible implementation manner of the fourth aspect, in a third possible implementation manner of the fourth aspect, the driver further includes: a signaling determining unit, configured to: according to the transponder stored by itself The parameter information is used to determine whether the forwarding rule corresponding to the received first forwarding control signaling conforms to the function of the corresponding forwarder; if the forwarding rule corresponding to the first forwarding control signaling does not meet the function of the corresponding forwarder, the controller is Returning the control failure message; otherwise, triggering the signaling conversion unit and/or the signaling unit. With reference to the fourth aspect, or the fourth possible implementation manner of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the driver further includes: a parameter configuration unit, configured to perform parameters of the forwarder according to the self The information generation parameter configures signaling, and sends the parameter configuration signaling to a corresponding repeater to configure and/or modify parameters of the corresponding repeater. With reference to the fourth aspect, or the fourth possible implementation manner of the fourth aspect, in a fifth possible implementation manner of the fourth aspect, the driver further includes: an information interworking unit, configured to connect to by using a preset interface protocol The other driver of the same transponder sends control signaling, and/or receives control signaling sent by the other driver; wherein, the sending the control signaling to the another driver includes at least one of the following: Transmitting parameter modification negotiation signaling to the other driver when the driver has a repeater parameter modification requirement; transmitting shared information query signaling to the another driver; receiving the control letter sent by the another driver The command includes at least one of the following: receiving the negotiation response information returned by the another driver according to the parameter modification negotiation signaling; and receiving an information query response message that is performed by the another driver according to the shared information query signaling. With reference to the fourth aspect, or the fourth possible implementation manner of the fourth aspect, in a sixth possible implementation manner of the fourth aspect, the driver further includes: a parameter query unit, configured to receive the forwarding sent by the controller When the parameter query signaling, the corresponding forwarding parameter response information is generated according to the parameter information of the transponder stored by itself, and the forwarding parameter response information is fed back to the controller. As can be seen from the foregoing technical solutions, the embodiment of the present application implements format conversion of forwarding control signaling between the controller and the forwarder by using a driver. When the controller needs to perform forwarding rule control on the forwarder, only the controller and the corresponding driver are needed. After the connection is established, the first forwarding control signaling generated by the controller may be sent to the corresponding driver, and then the first forwarding control signaling is converted by the driver into a second forwarding control message that meets the requirements of the forwarding and forwarding protocol of the forwarder. And sending the second forwarding control signaling to the forwarder to control the execution of the forwarding service. Therefore, the present application does not require the controller to have a built-in plug-in mechanism, which can implement signaling conversion between any controller and the repeater, and solves the problem that the application range of the prior art is limited. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that it is common in the art. For the technicians, other drawings can be obtained based on these drawings without paying for creative labor.
图 1为本申请实施例提供的一种基于 SDN网络的转发控制方法的信号流图; 图 2A为现有技术中 SDN网络的一种结构示意图; 图 2B为本申请实施例提供的基于图 2A所示结构的一种 SDN网络的结构示意 图; FIG. 1 is a signal flow diagram of a forwarding control method based on an SDN network according to an embodiment of the present application; 2A is a schematic structural diagram of an SDN network in the prior art; FIG. 2B is a schematic structural diagram of an SDN network based on the structure shown in FIG. 2A according to an embodiment of the present application;
图 2C为本申请实施例提供的基于图 2A所示结构的另一种 SDN网络的结构示意 图; 图 2D为本申请实施例提供的基于图 2A所示结构的又一种 SDN网络的结构示意 图;  2C is a schematic structural diagram of another SDN network according to the structure shown in FIG. 2A according to an embodiment of the present disclosure; FIG. 2D is a schematic structural diagram of another SDN network based on the structure shown in FIG. 2A according to an embodiment of the present application;
图 3为本申请实施例提供的一种基于图 2B所示 SDN网络的转发控制方法的信 号流图; 图 4为本申请实施例提供的一种基于图 2D所示 SDN网络的转发控制方法的信 号流图; 图 5为本申请实施例提供的另一种基于 SDN网络的转发控制方法的信号流图; 图 6A为本申请实施例提供的另一种 SDN网络的结构示意图; 图 6B为本申请实施例提供的一种基于图 6A所示 SDN网络的转发控制方法的信 号流图; 图 7为本申请实施例提供的一种软件定义网络 SDN的网络结构示意图; 图 8为本申请实施例提供的一种应用于 SDN网络的转发控制方法的流程图; 图 9为本申请实施例提供的另一种应用于 SDN网络的转发控制方法的流程图; 图 10为本申请实施例提供的又一种应用于 SDN网络的转发控制方法的流程图; 图 11为本申请实施例提供的一种应用于 SDN网络的驱动器的结构示意图; 图 12为本申请实施例提供的另一种应用于 SDN网络的驱动器的结构示意图; 图 13为本申请实施例提供的又一种应用于 SDN网络的驱动器的结构示意图。 具体实施方式 为实现本申请的目的, 本申请提供了一种转发控制方法、 驱动器及 SDN网络。 为了使本领域技术人员更好地理解本申请方案,下面将结合本申请实施例中的附 图, 对本申请实施例中的技术方案进行清除、 完整地描述。 参见图 1, 为本申请实施例一提供的一种基于 SDN网络的转发控制方法的信号 流图。 本实施例中的 SDN网络除了包括现有技术中的实现报文转发的转发器, 和根 据转发规则对所述转发器执行转发控制的控制器,还包括至少一个实现对转发器的驱 动控制的驱动器。 该转发控制方法的具体流程如下: 步骤 S101 : 控制器根据转发规则生成第一转发控制信令; 步骤 S102: 控制器将第一转发控制信令通过第一控制转发协议发送至所述驱动 器中与控制器连接的第一驱动器; 步骤 S103 : 第一驱动器将接收到的第一转发控制信令转换为符合第二控制转发 协议的格式要求的第二转发控制信令; 步骤 S104: 第一驱动器将所述第二转发控制信令通过第二控制转发协议发送至 相应的转发器。 上述实施例一中,第一控制转发协议为控制器所支持的控制转发协议; 第二控制 转发协议为转发器所支持的控制转发协议。例如,假设控制器支持网络交换模型协议 OpenFlow, 转发器支持统一平台工具(One Platform Kit, OnePK)协议; 当控制器欲 控制转发器执行某种动作 (假设为第一转发动作), 则控制器根据上述转发规则 (即 上述要求转发器执行第一转发动作)生成第一转发控制信令; 其中, 由于控制器仅支 持 OpenFlow协议, 故其生成的第一转发控制信令亦仅符合 OpenFlow协议的格式要 求。 进而控制器通过 OpenFlow协议将该第一转发控制信令发送至与其连接的第一驱 动器。 该第一驱动器接收到第一转发控制信令后, 将其转换为符合 OnePK协议的格 式要求的第二转发控制信令, 并将该第二转发控制信令通过 OnePK协议发送至相应 的转发器。 从而, 支持 OnePK协议的转发器可成功解析上述第二转发控制信令, 并 根据该第二转发控制信令完成控制器要求的第一转发动作。 由上述实施例一可见,对于实现通过同一个控制器控制支持不同协议的不同转发 器,本申请实施例通过驱动器将控制器生成的第一转发控制信令经过格式转换后,转 发至对应的转发器, 不再需要控制器支持内置插件机制, 因此, 本申请实施例可以应 用于任意转发器, 应用范围大大增加。 另外, 本申请实施例中, 通过改变不同类型的 驱动器、控制器和转发器三者之间的连接关系, 即可实现驱动器、转发器和控制器的 复用, 不需要针对每一个控制器、 每一个转发器设置一个驱动器, 对 SDN网络及相 关设备的改动量小, 成本低。 实际应用中, 一个控制器可能需要对支持不同协议的多个转发器进行转发控制; 如图 2A, 为现有 SDN网络的一种系统结构示意图, 控制器 C1需要对至少 3个转发 器 (如图 2A所示的转发器 Rl、 转发器 R2和转发器 R3 ) 进行转发控制; 为便于描 述, 控制器 Cl、 转发器 Rl、 转发器 R2和转发器 R3所支持的控制转发协议分别标 号为 Pl、 P2.1、 P2.2禾 P P2.3。 为实现对图 2A所示系统的转发控制, 本申请提供了如 图 3和图 4所示的两种具体实施方式; 需要说明的是, 图 3、 图 4及下文相关文字所 述描述的实施例仅是本申请一部分实施例, 而不是全部的实施例。基于本申请中的实 施例, 本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例, 都属于本申请保护的范围。 FIG. 3 is a signal flow diagram of a forwarding control method based on the SDN network shown in FIG. 2B according to an embodiment of the present disclosure; FIG. 4 is a forwarding control method based on the SDN network shown in FIG. 2D according to an embodiment of the present application; FIG. 5 is a schematic diagram of a signal flow diagram of another SDN network-based forwarding control method according to an embodiment of the present disclosure; FIG. 6A is a schematic structural diagram of another SDN network according to an embodiment of the present application; FIG. 7 is a schematic diagram of a network structure of a software-defined network SDN according to an embodiment of the present disclosure; FIG. 8 is a schematic diagram of a network structure of a software-defined network SDN according to an embodiment of the present disclosure; A flow chart of a forwarding control method applied to an SDN network is provided. FIG. 9 is a flowchart of another forwarding control method applied to an SDN network according to an embodiment of the present disclosure; A flowchart of a forwarding control method applied to an SDN network; FIG. 11 is a schematic structural diagram of a driver applied to an SDN network according to an embodiment of the present disclosure; A schematic view of another configuration applied to the driver SDN network; FIG. 13 is a schematic view of a further application structure applied to the driver SDN network according to an embodiment. DETAILED DESCRIPTION OF THE INVENTION To achieve the purpose of the present application, the present application provides a forwarding control method, a driver, and an SDN network. In order to enable a person skilled in the art to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Referring to FIG. 1, a signal flow diagram of a forwarding control method based on an SDN network according to Embodiment 1 of the present application is provided. The SDN network in this embodiment includes, in addition to the forwarder that implements packet forwarding in the prior art, and the controller that performs forwarding control on the forwarder according to the forwarding rule, and at least one device that implements drive control on the forwarder. driver. The specific process of the forwarding control method is as follows: Step S101: The controller generates first forwarding control signaling according to the forwarding rule. Step S102: The controller sends the first forwarding control signaling to the driver by using the first control forwarding protocol. a first driver connected to the controller; Step S103: The first driver converts the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol; Step S104: the first driver will The second forwarding control signaling is sent to the corresponding forwarder by using the second control forwarding protocol. In the first embodiment, the first control forwarding protocol is a control forwarding protocol supported by the controller; and the second control forwarding protocol is a control forwarding protocol supported by the repeater. For example, suppose the controller supports the network switching model protocol OpenFlow, and the repeater supports the One Platform Kit (OnePK) protocol; when the controller wants to control the repeater to perform some action (assuming the first forwarding action), the controller The first forwarding control signaling is generated according to the foregoing forwarding rule, that is, the first forwarding operation is performed by the forwarder. The first forwarding control signaling generated by the controller only supports the OpenFlow protocol. format requirement. The controller then sends the first forwarding control signaling to the first driver connected thereto through the OpenFlow protocol. After receiving the first forwarding control signaling, the first driver converts the second forwarding control signaling into a second forwarding control signaling conforming to the format requirement of the OnePK protocol, and sends the second forwarding control signaling to the corresponding forwarder through the OnePK protocol. . Therefore, the forwarder supporting the OnePK protocol can successfully parse the second forwarding control signaling, and complete the first forwarding action required by the controller according to the second forwarding control signaling. It can be seen from the foregoing embodiment that, in order to implement different transponders that support different protocols by the same controller, the first forwarding control signaling generated by the controller is format-converted by the driver, and then forwarded to the corresponding forwarding. The controller does not need to support the built-in plug-in mechanism. Therefore, the embodiment of the present application can be applied to any transponder, and the application range is greatly increased. In addition, in the embodiment of the present application, by changing the connection relationship between different types of drivers, controllers, and repeaters, multiplexing of the driver, the repeater, and the controller can be realized, and it is not required for each controller. Each transponder is equipped with a driver, which has a small amount of changes to the SDN network and related equipment, and low cost. In practical applications, a controller may need to perform forwarding control on multiple transponders supporting different protocols. As shown in FIG. 2A, a system structure diagram of an existing SDN network, controller C1 needs to have at least three transponders (such as The repeater R1, the repeater R2 and the repeater R3 shown in FIG. 2A perform forwarding control; for convenience of description, the control forwarding protocols supported by the controller C1, the repeater R1, the repeater R2, and the repeater R3 are respectively labeled as Pl. , P2.1, P2.2 and P P2.3. To implement the forwarding control of the system shown in FIG. 2A, the present application provides two specific embodiments as shown in FIG. 3 and FIG. 4; it should be noted that the implementation of the description described in FIG. 3, FIG. 4 and the related text below The examples are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
参见图 3,为本申请实施例二提供的另一种基于图 2B所示的 SDN网络的转发控 制方法的信号流图。 为实现图 2A中通过一个控制器 C1控制 3个转发器 Rl、 R2和 R3 , 本申请实施例二中的 SDN网络在图 2A所示结构的基础上, 增加 3个驱动器, 分别为: 实现协议 P1和 P2.1之间的信令格式转换的驱动器 D1、实现协议 P1和 P2.2 之间的信令格式转换的驱动器 D2和实现协议 P1和 P2.3之间的信令格式转换的驱动 器 D3 (图 2B所示); 相应的, 本申请实施例二提供的转发控制方法具体包括如下步 骤:  FIG. 3 is a signal flow diagram of another forwarding control method based on the SDN network shown in FIG. 2B according to Embodiment 2 of the present application. To implement the control of the three transponders R1, R2, and R3 through a controller C1 in FIG. 2A, the SDN network in the second embodiment of the present application adds three drivers based on the structure shown in FIG. 2A, respectively: A driver D1 for signaling format conversion between P1 and P2.1, a driver D2 for implementing signaling format conversion between protocols P1 and P2.2, and a driver for implementing signaling format conversion between protocols P1 and P2.3 D3 (shown in FIG. 2B); correspondingly, the forwarding control method provided in Embodiment 2 of the present application specifically includes the following steps:
S201 : 每个驱动器分别向控制器发送各自的注册消息; 其中,所述注册消息中至少包含相应的驱动器所支持的一种或多种转发器的类型 标识; 例如, 驱动器 D1发送的注册消息中应包含驱动器 D1转发器 R1的类型标识, 表示驱动器 D1可以实现控制器 C1 向转发器 R1 的控制信令中转; 类似的, 驱动器 D2发送的注册消息中至少包含转发器 R2的类型标识,驱动器 D3发送的注册消息中 至少包含转发器 R3的类型标识。 实际应用中, 上述类型标识可采用以下四项中的至少一种: 转发器型号、转发器 所支持的控制转发协议类型(如 OpenFlow/ FORCES/ OnePK等)、 TTP (Table Typing Pattern, 流表类型模板) 标识, 以及 DM (Negotiable Datapath Model, 可协商数据 路径模型) 标识。 S201: Each driver sends a respective registration message to the controller, where the registration message includes at least one type identifier of one or more types of transponders supported by the corresponding driver; for example, the registration message sent by the driver D1 The type identifier of the forwarder R1 of the driver D1 should be included, indicating that the driver D1 can implement the control signaling relay of the controller C1 to the repeater R1; similarly, the registration message sent by the driver D2 includes at least the type identifier of the repeater R2, and the driver D3 The sent registration message contains at least the type identifier of the repeater R3. In practical applications, the above type identifier may adopt at least one of the following four types: a repeater model, a control forwarding protocol type supported by the repeater (such as OpenFlow/FORCES/OnePK, etc.), a TTP (Table Typing Pattern, a flow table type). Template) ID, and DM (Negotiable Datapath Model) ID.
另外, 本申请实施例中, 驱动器向控制器发送注册消息, 至少可以通过如下两种 方式中的任一种来实现:  In addition, in the embodiment of the present application, the driver sends the registration message to the controller, which can be implemented by at least one of the following two methods:
1 ) 每个驱动器在启动时, 主动向控制器发送相应的注册消息; 2) 控制器在启动时, 通过发送广播消息或预配置地址来请求相应的驱动器返回 注册消息。 1) Each drive initiates a corresponding registration message to the controller when it starts up; 2) When the controller starts, it requests the corresponding drive to return by sending a broadcast message or a pre-configured address. Registration message.
S202: 每个转发器分别连接到控制器, 并向控制器上报自身对应的类型标识; S203 : 控制器根据转发规则生成第一转发控制信令; S202: Each transponder is respectively connected to the controller, and reports the corresponding type identifier to the controller; S203: the controller generates the first forwarding control signaling according to the forwarding rule;
S204:控制器根据接收到的注册消息及每个转发器的类型标识,确定与上述转发 规则的控制对象(被控转发器)的类型相匹配的至少一个驱动器, 并与所确定的驱动 器建立连接; 为与其他驱动器区别开来, 下文以 "第一驱动器"指代此处所确定的与被控转发 器类型相匹配的驱动器。 本申请实施例中,驱动器既可以是控制器的远程设备, 也可以是运行于控制器系 统的本地模块。其中, 当驱动器采用远程设备时, 控制器可以通过信令协商的方式与 确定的第一驱动器控制器建立连接,其包括但不限于如下所述步骤: 控制器向第一驱 动器发送连接控制信令, 当接收到第一驱动器返回的应答消息时, 连接完成。 当驱动 器采用控制器系统的本地模块时, 则控制器可以通过模块加载的方式,将第一驱动器 加载为控制器自身的内部模块, 实现控制器与第一驱动器的连接。 需要说明的是, 当需要对某个转发器执行转发控制时,控制器分别执行上述步骤S204: The controller determines, according to the received registration message and the type identifier of each transponder, at least one driver that matches the type of the control object (controlled transponder) of the forwarding rule, and establishes a connection with the determined driver. In order to distinguish it from other drives, the following "first drive" refers to the drive identified here that matches the type of controlled repeater. In the embodiment of the present application, the driver may be a remote device of the controller or a local module running on the controller system. Wherein, when the driver adopts the remote device, the controller may establish a connection with the determined first driver controller by means of signaling negotiation, including but not limited to the following steps: the controller sends the connection control signaling to the first driver. When the response message returned by the first drive is received, the connection is completed. When the driver adopts the local module of the controller system, the controller can load the first driver into the internal module of the controller by means of module loading, and realize the connection between the controller and the first driver. It should be noted that when the forwarding control needs to be performed on a certain forwarder, the controller performs the above steps separately.
S203和 S204; 但两个步骤的执行顺序不限, 即除上文所述的先执行步骤 S203后执 行步骤 S204之外, 还可以先执行步骤 S204再执行步骤 S203 , 还可以同时执行步骤 S203和 S204所述的动作。 S203 and S204; but the execution order of the two steps is not limited, that is, in addition to the step S204 after the step S203 is performed first, the step S204 may be performed before the step S203, and the step S203 may be performed simultaneously. The action described in S204.
S205 :控制器将第一转发控制信令通过第一控制转发协议发送至所述驱动器中与 控制器连接的第一驱动器; S205: The controller sends the first forwarding control signaling to the first driver connected to the controller in the driver by using the first control forwarding protocol.
S206:第一驱动器将接收到的第一转发控制信令转换为符合第二控制转发协议的 格式要求的第二转发控制信令; S206: The first driver converts the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol.
S207:第一驱动器与对应于上述转发规则的被控转发器连接, 并将所述第二转发 控制信令通过相应的第二控制转发协议发送至被控转发器。  S207: The first driver is connected to the controlled repeater corresponding to the foregoing forwarding rule, and sends the second forwarding control signaling to the controlled forwarder by using a corresponding second control forwarding protocol.
例如, 根据上述转发规则, 控制器 C1需要控制转发器 R1执行第一转发动作, 则控制器 C1生成对应于第一转发动作的第一转发控制信令 (相当于步骤 S203 ); 同 时, 控制器 C1 以控制转发协议类型为匹配元素, 可以确定支持协议 P2.1 的转发器 R1和实现协议 P1和 P2.1之间的信令格式转换的驱动器 D1是相匹配的, 故控制器 C1将驱动器 D1作为所述第一驱动器, 并与驱动器 D1的连接 (相当于步骤 S204); 进而控制器 CI通过协议 PI将上述第一转发控制信令发送至第一驱动器 (即驱动器 D1 ) (相当于步骤 S205 ); 驱动器 D1接收到上述第一转发控制信令后, 将其转换为 符合协议 P2.1的格式要求的第二转发控制信令(相当于步骤 S206),并与被控转发器 (即转发器 R1 ) 建立连接, 通过协议 P2.1 将上述第二转发控制信令发送至转发器 R1 (相当于步骤 S207); 从而转发器 R1即可在第二转发控制信令的控制下执行控制 器 C1要求的第一转发动作。 由上述实施例二可见, 当需要对不同的转发器进行转发控制时, 只需控制器根据 类型标识选择并连接相应的驱动器, 即可实现控制信令的格式转换及转发; 且同一个 驱动器可以被支持相应的协议的其他控制器或其他转发器所复用。因此,实际应用中, 只需针对 SDN网络系统中可能涉及的各种控制转发协议, 分别设置用于两两协议之 间的信令格式转换的驱动器, 即可实现 SDN网络中的任一控制器对任一转发器的转 发控制。 For example, according to the foregoing forwarding rule, the controller C1 needs to control the repeater R1 to perform the first forwarding action, and the controller C1 generates the first forwarding control signaling corresponding to the first forwarding action (corresponding to step S203); C1 controls the forwarding protocol type as a matching element, and can determine that the transponder R1 supporting the protocol P2.1 and the driver D1 implementing the signaling format conversion between the protocols P1 and P2.1 are matched, so the controller C1 will drive D1 as the first driver, and the connection with the driver D1 (corresponding to step S204); The controller CI sends the first forwarding control signaling to the first driver (ie, the driver D1) through the protocol PI (corresponding to step S205); after receiving the first forwarding control signaling, the driver D1 converts the first forwarding control signaling into a match. The second forwarding control signaling required by the format of the protocol P2.1 (corresponding to step S206), and establishing a connection with the controlled forwarder (ie, the repeater R1), and sending the second forwarding control signaling by using the protocol P2.1 To the repeater R1 (corresponding to step S207); thus the repeater R1 can perform the first forwarding action required by the controller C1 under the control of the second forwarding control signaling. It can be seen from the foregoing embodiment 2 that when forwarding control is required for different transponders, only the controller needs to select and connect the corresponding driver according to the type identifier, so that format conversion and forwarding of control signaling can be realized; and the same driver can be It is multiplexed by other controllers or other transponders that support the corresponding protocol. Therefore, in practical applications, only the drivers for the signaling format conversion between the two protocols may be separately set for various control forwarding protocols that may be involved in the SDN network system, so that any controller in the SDN network can be implemented. Forward control for either forwarder.
在本申请的其他实施例中, 如图 2C所示, 驱动器 D4既支持协议 P1和 P2.2之 间的信令格式转换,又支持协议 P1和 P2.3之间的信令格式转换; 因此,相对于图 2B 所示的结构, 采用驱动器 D4能够使驱动器总个数减少 1个。 基于上述原理, 可毫无 疑问的推知,采用同时支持多种控制转发协议之间信令格式转换的驱动器, 能够减少 SDN网络中驱动器的个数, 从而简化 SDN网络的结构; 相应的转发控制方法可以参 照图 3所示信号流图及上文相关文字叙述。 特别的, 对于类似图 2C所示的 SDN网络, 驱动器 D4可以根据第一转发控制信 令中规定的被控转发器的类型标识,确定向哪种控制转发协议转换, 以及将转换得到 的第二转发控制信令发送至哪个转发器。 另一方面, 当控制器需要同时控制多个转发器时, 可在其生成的第一转发控制信 令中增加对应的多个被控转发器的类型标识,同时将支持每种被控转发器所对应的转 发控制协议的驱动器作为第一驱动器;该第一驱动器根据第一转发控制信令中的被控 转发器的类型标识,确定第二控制转发协议的类型及个数, 并将转换得到的多条支持 不同第二控制转发协议的第二转发控制信令发送至对应的被控转发器。 如对于图 2C 所示的 SDN网络, 控制器 C1向驱动器 D4发送同时具有转发器 R2和 R3的类型标 识的第一转发控制信令, 驱动器 D4根据其中的类型标识, 确定第二控制转发协议包 括协议 P2.2和 P2.3 ,进而将该第一转发控制信令转换为至少两条第二转发控制信令, 其中一条符合协议 P2.2的格式要求,用于控制转发器 R2, 另一条符合协议 P2.3的格 式要求, 用于控制转发器 R3。 图 4所示为本申请实施例三提供的又一种应用于 SDN网络的转发控制方法的信 号流图, 以实现通过一个控制器控制多个转发器。 仍以图 2A所示结构为例, 本实施 例三中的 SDN网络在图 2A的接触上, 增加 1个驱动器 D5, 如图 2D所示; 相应的, 本申请实施例三提供的转发控制方法具体包括如下步骤: In other embodiments of the present application, as shown in FIG. 2C, the driver D4 supports both the signaling format conversion between the protocols P1 and P2.2 and the signaling format conversion between the protocols P1 and P2.3; With respect to the structure shown in Fig. 2B, the driver D4 can reduce the total number of drivers by one. Based on the above principle, it can be inferred that the driver supporting the signaling format conversion between multiple control forwarding protocols can reduce the number of drivers in the SDN network, thereby simplifying the structure of the SDN network; corresponding forwarding control method Refer to the signal flow diagram shown in Figure 3 and the related text above. In particular, for an SDN network similar to that shown in FIG. 2C, the driver D4 may determine which control forwarding protocol to convert to, and the second to be converted, according to the type identifier of the controlled repeater specified in the first forwarding control signaling. Which transponder is sent to the forwarding control signaling. On the other hand, when the controller needs to control multiple transponders at the same time, the type identifier of the corresponding multiple controlled transponders may be added in the first forwarding control signaling generated by the controller, and each controlled transponder will be supported at the same time. The corresponding drive of the forwarding control protocol is used as the first driver; the first driver determines the type and number of the second control forwarding protocol according to the type identifier of the controlled forwarder in the first forwarding control signaling, and converts the obtained A plurality of second forwarding control signalings supporting different second control forwarding protocols are sent to the corresponding controlled forwarders. As for the SDN network shown in FIG. 2C, the controller C1 transmits to the driver D4 the first forwarding control signaling having the type identifier of the repeaters R2 and R3, and the driver D4 determines, according to the type identifier therein, that the second control forwarding protocol includes The protocols P2.2 and P2.3 further convert the first forwarding control signaling into at least two second forwarding control signalings, one of which conforms to the format requirement of the protocol P2.2, and is used to control the forwarding device R2, and the other In accordance with the agreement P2.3 The type requirement is used to control the repeater R3. FIG. 4 is a signal flow diagram of another forwarding control method applied to an SDN network according to Embodiment 3 of the present application, to implement control of multiple repeaters by one controller. As shown in FIG. 2A, the SDN network in the third embodiment adds one driver D5 to the contact of FIG. 2A, as shown in FIG. 2D. Correspondingly, the forwarding control method provided in Embodiment 3 of the present application is provided. Specifically, the following steps are included:
S301 :驱动器根据其服务的转发器的参数信息,将自身配置为与所述转发器相对 应的虚拟转发器; 参照图 2D, 驱动器 D5用于实现控制器 C1与转发器 Rl、 R2和 R3三者中的至 少一者之间的信令格式转换, 即驱动器 D5服务的转发器至少包括转发器 Rl、 R2和 R3三者。 因此, 驱动器根据转发器 Rl、 R2和 R3的参数信息, 将自身配置为对应于 Rl、 R2和 R3的虚拟转发器 R0 (相应的, 转发器 Rl、 R2和 R3等均称为物理转发 器)。 可选的, 上述参数信息能够表征转发器的能力、 性能及配置情况等属性, 包括但 不限于以下信息: 转发器的控制地址信息 (如 IP地址)、 物理端口地址、 带宽及与周 边网络的拓扑连接信息 (如连接对端的 IP/MAC地址)。  S301: The driver configures itself as a virtual forwarder corresponding to the forwarder according to the parameter information of the forwarder of the service thereof. Referring to FIG. 2D, the driver D5 is configured to implement the controller C1 and the forwarders R1, R2, and R3. The signaling format conversion between at least one of the persons, that is, the transponder served by the driver D5 includes at least three of the repeaters R1, R2 and R3. Therefore, the driver configures itself as a virtual repeater R0 corresponding to R1, R2, and R3 according to the parameter information of the repeaters R1, R2, and R3 (correspondingly, the repeaters R1, R2, and R3 are referred to as physical repeaters) . Optionally, the foregoing parameter information can be used to describe attributes such as capabilities, performance, and configuration of the repeater, including but not limited to the following information: control address information (such as IP address), physical port address, bandwidth, and surrounding network of the repeater. Topology connection information (such as the IP/MAC address of the peer).
S302: 上述配置得到的虚拟转发器与控制器建立连接; 相应于图 1所示实施例, 本实施例中, 虚拟转发器即相当于图 1对应实施例中的 第一驱动器, 用于实现控制器与上述被控转发器之间的信令格式转换。 S302: The virtual forwarder obtained by the above configuration is connected to the controller. Corresponding to the embodiment shown in FIG. 1 , in this embodiment, the virtual forwarder is equivalent to the first driver in the corresponding embodiment of FIG. 1 for implementing control. The signaling format conversion between the device and the above-mentioned controlled repeater.
由于上述驱动器被配置为虚拟转发器, 故其可以按照转发器的启动流程, 与控制 器建立连接, 该流程包括但不限于如下所述步骤: 虚拟转发器向控制器发送连接控制 信令, 当接收到控制器返回的应答消息时, 连接完成。  Since the above driver is configured as a virtual forwarder, it can establish a connection with the controller according to the startup process of the repeater, and the process includes but is not limited to the following steps: The virtual forwarder sends connection control signaling to the controller, when When the response message returned by the controller is received, the connection is completed.
本实施例中, 通过步骤 S301中的虚拟化配置, 驱动器对控制器表现为一个转发 器, 即物理转发器对于控制器是不可见的, 也即能够实现对控制器屏蔽转发层的拓扑 样式、 不同物理转发器之间的差异性等, 从而当转发器发送动态增删或能力修改时, 只需要在驱动器处相应修改虚拟转发器的配置,就可以实现动态调整所服务的转发器 的配置情况。  In this embodiment, by the virtualization configuration in step S301, the driver pair controller acts as a repeater, that is, the physical forwarder is invisible to the controller, that is, the topology pattern of the forwarding layer of the controller is shielded, The difference between different physical transponders, etc., so that when the transponder sends the dynamic addition, deletion or capability modification, the configuration of the transponder served by the dynamic adjustment can be dynamically adjusted only by modifying the configuration of the virtual transponder at the drive.
S303 : 控制器根据转发规则生成第一转发控制信令;  S303: The controller generates first forwarding control signaling according to the forwarding rule.
S304:控制器将第一转发控制信令通过第一控制转发协议发送至第一驱动器(即 上述虚拟转发器); S305:第一驱动器将接收到的第一转发控制信令转换为符合第二控制转发协议的 格式要求的第二转发控制信令; S304: The controller sends the first forwarding control signaling to the first driver (that is, the virtual forwarder) through the first control forwarding protocol. S305: The first driver converts the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol.
S306:第一驱动器与对应于上述转发规则的被控转发器连接, 并将所述第二转发 控制信令通过相应的第二控制转发协议发送至被控转发器。  S306: The first driver is connected to the controlled repeater corresponding to the foregoing forwarding rule, and sends the second forwarding control signaling to the controlled forwarder by using a corresponding second control forwarding protocol.
例如, 在上述虚拟转发器 R0与控制器 C1连接的前提下, 根据上述转发规则, 需要控制转发器 R1执行第一转发动作, 则控制器 C1生成对应于第一转发动作的第 一转发控制信令(相当于步骤 S303 ), 并将其通过协议 P1发送至虚拟转发器 R0 (相 当于步骤 S304); 虚拟转发器 R0接收到上述第一转发控制信令后, 根据该第一转发 控制信令中规定的被控转发器 R1的类型标识, 将第一转发控制信令转换为相应的符 合协议 P2.1的格式要求的第二转发控制信令(相当于步骤 S305 ), 并与转发器 R1连 接, 通过协议 P2.1 将转换得到的第二转发控制信令发送至转发器 R1 (相当于步骤 S306);从而转发器 R1即可在第二转发控制信令的控制下执行控制器 C1要求的第一 转发动作。  For example, on the premise that the virtual forwarder R0 is connected to the controller C1, according to the foregoing forwarding rule, the forwarder R1 needs to be controlled to perform the first forwarding operation, and the controller C1 generates a first forwarding control signal corresponding to the first forwarding action. Order (corresponding to step S303), and send it to the virtual forwarder R0 through the protocol P1 (corresponding to step S304); after receiving the first forwarding control signaling, the virtual forwarder R0 is configured according to the first forwarding control signaling The type identifier of the controlled repeater R1 specified in the first forwarding control signaling is converted into a corresponding second forwarding control signaling conforming to the format requirement of the protocol P2.1 (corresponding to step S305), and the repeater R1 Connect, send the converted second forwarding control signaling to the repeater R1 through the protocol P2.1 (corresponding to step S306); thus, the repeater R1 can execute the controller C1 request under the control of the second forwarding control signaling The first forwarding action.
由上述实施例三可见,本申请通过将驱动器配置为与其服务的转发器相对应的虚 拟转发器, 一方面使得驱动器具有极高的复用率, 对 SDN网络及相关设备的改动量 小;另一方面,实现或部署控制器时,不需要考虑下层转发器的拓扑样式及硬件差异, 同时实现或部署转发器时, 也不需要考虑上层控制器的差异性, 使得对控制器、转发 器乃至整个 SDN网络的部署更加灵活、 易实现。 同样的, 本实施例中, 不再需要控 制器支持内置插件机制, 可以应用于任意转发器, 应用范围大大增加。  As can be seen from the third embodiment, the present application configures the driver as a virtual repeater corresponding to the transponder served by the driver, and on the one hand, the driver has a very high multiplexing rate, and the amount of modification to the SDN network and related devices is small; On the one hand, when implementing or deploying a controller, there is no need to consider the topology style and hardware difference of the lower layer repeater. When implementing or deploying the repeater, there is no need to consider the difference of the upper layer controller, so that the controller, the repeater and even the controller The deployment of the entire SDN network is more flexible and easy to implement. Similarly, in this embodiment, the controller does not need to support the built-in plug-in mechanism, and can be applied to any transponder, and the application range is greatly increased.
可选的, 本申请实施例中, 驱动器执行转发控制信令的格式转换时, 根据相应的 第一控制转发协议和第二控制转发协议之间的预设映射关系,对第一转发控制信令中 包含的转发控制流规则进行重新封装,从而得到相应的第二转发控制信令。进一步的, 通过在驱动器中设置多种控制转发协议之间的直接或间接映射关系,即可实现控制信 令格式的自由转换。  Optionally, in the embodiment of the present application, when the driver performs the format conversion of the forwarding control signaling, the first forwarding control signaling is performed according to a preset mapping relationship between the corresponding first control forwarding protocol and the second control forwarding protocol. The forwarding control flow rule included in the packet is re-encapsulated to obtain a corresponding second forwarding control signaling. Further, the free conversion of the control signaling format can be realized by setting a direct or indirect mapping relationship between multiple control forwarding protocols in the drive.
另外, 本申请实施例中, 虚拟转发器 R0除了根据第一转发控制信令中规定的多 种类型标识,将第一转发控制信令转换为符合不同协议格式要求的第二转发控制信令 夕卜,还可以自动对第一转发控制信令进行分解映射, 从而将第一转发控制信令规定的 多条报文的转发分配至多个转发器执行, 实现转发器的负载均衡, 提高转发效率。例 如, 控制器 C1 通过 OpenFlow协议向虚拟转发器发送如下控制信令 (即 Flow-mod 消息),表示将所有源 IP为 192.168.1.0-192.168.1.255的报文进行 VLAN( Virtual Local Area Network, 虚拟局域网) 封装, 并从虚拟转发器 R0端口 1转发出去: match(src IP = 192.168.1.0, mask = 255.255.255.0), actions(Push-tag[VLAN ID=l],output[l]); In addition, in the embodiment of the present application, the virtual forwarder R0 converts the first forwarding control signaling into the second forwarding control signaling that meets the requirements of different protocol formats, according to the multiple types of identifiers specified in the first forwarding control signaling. In addition, the first forwarding control signaling is automatically decomposed and mapped, so that the forwarding of multiple packets specified by the first forwarding control signaling is distributed to multiple forwarders to implement load balancing of the forwarder and improve forwarding efficiency. For example, the controller C1 sends the following control signaling (ie, a Flow-mod message) to the virtual forwarder through the OpenFlow protocol, indicating that all the packets with the source IP address of 192.168.1.0-192.168.1.255 are VLAN (Virtual Local Area Network, virtual). LAN) encapsulated and forwarded from virtual forwarder R0 port 1: Match(src IP = 192.168.1.0, mask = 255.255.255.0), actions(Push-tag[VLAN ID=l], output[l]) ;
虚拟转发器 R0将接收到的 Flow-mod消息映射到转发器 R1和 R2, 转换后的控 制信令及功能分别为:  The virtual forwarder R0 maps the received Flow-mod message to the repeaters R1 and R2. The converted control signaling and functions are:
对转发器 R1的控制信令:  Control signaling for repeater R1:
match (src IP = 192.168.1.0, mask = 255.255.255.127), actions(Push-tag[VLAN ID=l],output[3]), 用于将所有源 IP为 192.168.1.0-192.168.1.127的报文进行 VLAN封 装, 并从转发器 R1端口 3转发出去;  Match (src IP = 192.168.1.0, mask = 255.255.255.127), actions(Push-tag[VLAN ID=l], output[3]), used to report all source IPs to 192.168.1.0-192.168.1.127 The VLAN is encapsulated and forwarded from the forwarder R1 port 3;
对转发器 R2的控制信令:  Control signaling for repeater R2:
match (src IP = 192.168.1.128, mask = 255.255.255.127), actions(Push-tag[VLAN Match (src IP = 192.168.1.128, mask = 255.255.255.127), actions(Push-tag[VLAN
ID=l],output[2]),用于将所有源 IP为 192.168.1.128- 192.168.1.255的报文进行 VLAN 封装, 并从转发器 R2端口 2转发出去。 ID=l], output[2]), used to encapsulate all packets with source IP address 192.168.1.128-192.168.1.255 and forward them out from forwarder R2 port 2.
参见图 5, 本申请实施例四提供的另一种基于 SDN网络的转发控制方法, 除了 可以通过驱动器实现对静态的协议消息格式的转换功能外,还可以实现对转发器的参 数配置、 修改、 查询, 以及根据转发器的参数信息判断控制器发送的控制信令的有效 性等功能, 具体控制流程如下所述:  Referring to FIG. 5, another SDN network-based forwarding control method provided in Embodiment 4 of the present application can implement parameter conversion and modification of a transponder in addition to a function of converting a static protocol message format through a driver. The query, and the function of determining the validity of the control signaling sent by the controller according to the parameter information of the repeater, the specific control flow is as follows:
S401 : 驱动器接收并存储其服务的转发器的参数信息;  S401: The driver receives and stores parameter information of a transponder of the service thereof;
实际应用中, 转发器的参数信息包括转发器各端口的转发队列带宽、 优先级、 DSCP (Differentiated services code point, 差分服务码), 是否开启 IP报文分片、重组、 GRE/VxLAN 隧道支持、 BFD/LLDP (Bidirectional Forwarding Detection/Link Layer Discovery Protocol, 双向转发检测 /链路层发现协议)支持等硬件能力; 逻辑端口与物 理端口之间的映射关系等; 其来源包括用户手动输入的参数信息、应用程序自动输入 的参数信息等。  In the actual application, the parameter information of the forwarder includes the forwarding queue bandwidth of the port of the forwarder, the priority, the differentiated service code (DSCP), the IP packet fragmentation, the reassembly, the GRE/VxLAN tunnel support, BFD/LLDP (Bidirectional Forwarding Detection/Link Layer Discovery Protocol) support hardware capabilities; mapping between logical ports and physical ports; sources include user-entered parameter information, Parameter information automatically entered by the application, etc.
S402: 驱动器根据自身所存储的参数信息, 生成参数配置信令;  S402: The driver generates parameter configuration signaling according to the parameter information stored by the driver.
S403 : 驱动器将上述参数配置信令发送至相应的转发器, 以实现对相应的转发器 的参数的配置或修改;  S403: The driver sends the parameter configuration signaling to the corresponding forwarder to implement configuration or modification of parameters of the corresponding forwarder.
本实施例中, 对转发器的参数配置或修改, 可以是对每个转发器单独配置 /修改, 也可以是对所有转发器或同一型号的转发器同一配置 /修改。  In this embodiment, the parameter configuration or modification of the repeater may be separately configured/modified for each repeater, or may be the same configuration/modification for all repeaters or repeaters of the same model.
S404: 当控制器需要获取转发器的能力、性能等信息时, 控制器生成相应的转发 参数查询信令, 并将其发送至驱动器;  S404: When the controller needs to obtain information about the capability, performance, and the like of the repeater, the controller generates corresponding forwarding parameter query signaling, and sends the same to the driver.
S405: 驱动器根据接收到的转发参数查询信令, 查询自身存储的转发器的参数信 息, 将查询结果编辑为相应的转发参数应答信息, 反馈至控制器; S405: The driver queries the forwarding parameter of the forwarder according to the received forwarding parameter query signaling. Information, edit the query result to the corresponding forwarding parameter response information, and feed back to the controller;
S406: 当控制器需要对转发器执行转发控制时, 生成相应的第一转发控制信令, 并将其发送至与其连接的驱动器;  S406: When the controller needs to perform forwarding control on the forwarder, generate corresponding first forwarding control signaling, and send the same to the driver connected thereto;
S407: 驱动器根据自身存储的转发器的参数信息,判断接收到的第一转发控制信 令所对应的转发规则是否符合相应转发器的功能, 如果符合, 则执行步骤 S408, 否 则执行步骤 S409;  S407: The driver determines, according to the parameter information of the transponder stored by the driver, whether the forwarding rule corresponding to the received first forwarding control signal conforms to the function of the corresponding transponder, if yes, step S408 is performed, otherwise step S409 is performed;
S408:驱动器将接收到的第一转发控制信令转换为符合第二控制转发协议的格式 要求的第二转发控制信令, 并将该第二转发控制信令发送至相应的转发器;  S408: The driver converts the received first forwarding control signaling into a second forwarding control signaling that meets the format requirement of the second control forwarding protocol, and sends the second forwarding control signaling to the corresponding forwarder.
S409: 驱动器向控制器返回控制失败消息。  S409: The drive returns a control failure message to the controller.
例如,控制器发送的第一转发控制信令要求转发器执行 VxLAN( Virtual Extensible For example, the first forwarding control signaling sent by the controller requires the repeater to perform VxLAN (Virtual Extensible
LAN, 虚拟扩展局域网)隧道封装动作, 而驱动器根据其存储的相应转发器的参数信 息判断得知该转发器未开启 VxLAN隧道支持(即该转发器不支持 VxLAN隧道处理, 不能执行控制器要求的转发动作), 此时, 驱动器不再向转发器转发控制信令, 而是 向控制器返回控制失败消息, 以通知控制器相应转发器不能执行其要求的转发动作。 LAN, virtual extended local area network (LAN) tunnel encapsulation action, and the drive judges that the transponder does not enable VxLAN tunnel support according to the parameter information of the corresponding transponder stored therein (ie, the transponder does not support VxLAN tunnel processing, and cannot perform controller requirements) Forwarding action) At this point, the driver no longer forwards control signaling to the forwarder, but returns a control failure message to the controller to inform the controller that the corresponding forwarder is unable to perform its required forwarding action.
由以上实施例四可见, 本申请在驱动器上存储转发器的参数信息 (步骤 S401 ) 后, 可以通过执行步骤 S402 S403 实现动态配置或修改转发器的参数, 通过执行步 骤 S404 S405实现控制器对转发器的参数查询, 通过执行步骤 S406 S409实现转发 控制信令可执行性判断,使得控制器能够及时掌握其生成的第一控制信令是否被成功 执行, 以便合理安排相关的后续控制动作。 另外, 本申请实施例中, 当支持不同控制转发协议的多个控制器分别通过一个驱 动器连接到同一个转发器时,连接于该转发器的不同驱动器之间可以通过预设接口协 议互相发送控制信令, 实现不同驱动器之间的信息(如转发器的负载信息、 统计信息 等) 共享。  It can be seen from the above fourth embodiment that after storing the parameter information of the repeater on the driver (step S401), the method can dynamically configure or modify the parameters of the forwarder by performing steps S402 to S403, and implement controller forwarding by performing steps S404 and S405. The parameter query of the device implements the execution control judgment of the forwarding control signaling by performing steps S406 to S409, so that the controller can timely grasp whether the generated first control signaling is successfully executed, so as to reasonably arrange related subsequent control actions. In addition, in the embodiment of the present application, when multiple controllers supporting different control forwarding protocols are respectively connected to the same transponder through one driver, different drivers connected to the transponder can send and control each other through a preset interface protocol. Signaling, sharing information between different drives (such as loader information, statistics, etc.).
以图 6A所示 SDN网络结构为例 (图 6A中, 控制器 C1通过驱动器 D1连接到 转发器 Rl、控制器 C2通过驱动器 D2连接到转发器 Rl, 且控制器 Cl、 C2和转发器 R1所支持的控制转发协议分别标号为 P1.1、 P1.2和 P2.1 ),在自身未存储某一转发器 参数(为便于描述, 假设该转发器参数为 X) 的情况下, 当驱动器 D1需要获取 X的 当前值时,可以生成对应的共享信息查询信令, 并将素数共享信息查询信令发送至连 接于转发器 R1的其他驱动器 (即驱动器 D2); 驱动器 D2接收到上述共享信息查询 信令后, 如果自身存储有 X, 则生成包含有 X的当前值的信息查询应答消息, 并将 该信息查询应答消息返回至驱动器 Dl,从而实现了转发器参数 X在驱动器 Dl和 D2 之间的共享。 Taking the SDN network structure shown in FIG. 6A as an example (in FIG. 6A, the controller C1 is connected to the repeater R1 through the driver D1, the controller C2 is connected to the repeater R1 through the driver D2, and the controllers C1, C2 and the repeater R1 are The supported control forwarding protocols are labeled as P1.1, P1.2, and P2.1, respectively, and if a certain transponder parameter is not stored by itself (for convenience of description, assuming that the repeater parameter is X), when the driver D1 When the current value of the X needs to be obtained, the corresponding shared information query signaling may be generated, and the prime shared information query signaling is sent to another driver connected to the repeater R1 (ie, the driver D2); the driver D2 receives the shared information query. After signaling, if X is stored by itself, an information query response message containing the current value of X is generated, and The information inquiry response message is returned to the drive D1, thereby realizing the sharing of the repeater parameter X between the drivers D1 and D2.
仍以图 6A所示 SDN网络结构为例, 本申请实施例五还提供了一种转发控制方 法,以阐述多个驱动器连接于同一转发器的情况下需要修改该转发器参数时不同驱动 器之间的互通流程。 参见图 6B, 本实施例五提供的转发控制方法包括如下步骤: Still taking the SDN network structure shown in FIG. 6A as an example, the fifth embodiment of the present application further provides a forwarding control method to illustrate that when multiple drivers are connected to the same transponder, it is necessary to modify the transponder parameters between different drivers. Interworking process. Referring to FIG. 6B, the forwarding control method provided in the fifth embodiment includes the following steps:
S501 : 当驱动器 D1对转发器 R1有参数修改需求时, 驱动器 D1根据该参数修 改需求生成对应的参数修改协商信令; S501: When the driver D1 has a parameter modification requirement for the repeater R1, the driver D1 generates a corresponding parameter modification negotiation signaling according to the parameter modification requirement;
S502: 驱动器 D1与连接到转发器 R1上的其他驱动器(即驱动器 D2)通过相互 之间的协商接口建立连接, 并将上述参数修改协商信令发送至所述其他驱动器(即驱 动器 D2);  S502: the driver D1 and the other drivers connected to the repeater R1 (ie, the driver D2) establish a connection through the mutual negotiation interface, and send the parameter modification negotiation signaling to the other driver (ie, the drive D2);
S503 : 接收到上述参数修改协商信令的驱动器 D2, 判断是否允许该参数协商信 令所对应的参数修改, 如果允许, 则执行步骤 S504;  S503: The driver D2 that receives the parameter modification negotiation signaling, determines whether the parameter modification corresponding to the parameter negotiation signal is allowed, and if so, performs step S504;
S504: 允许参数修改的驱动器生成用于表征允许参数修改的协商应答消息, 反馈 至驱动器 D1 ;  S504: The driver that allows the parameter modification generates a negotiation response message for characterizing the parameter modification, and feeds back to the driver D1;
例如, 驱动器 D2接收到上述参数修改协商信令后, 根据自身的配置等信息, 判 定允许参数修改, 则向驱动器 D1 返回协商应答消息, 以将该判定结果通知驱动器 Dl。  For example, after receiving the parameter modification negotiation signaling, the driver D2 determines the permission parameter modification according to the configuration information of the user, and returns a negotiation response message to the driver D1 to notify the driver D1 of the determination result.
S505: 在接收到与转发器 R1连接的所有其他驱动器反馈的协商应答消息后, 驱 动器 D1根据上述参数修改需求生成相应的参数配置信令, 并将该参数配置信令发送 至转发器 Rl, 以控制转发器 R1执行相应的参数修改动作。  S505: After receiving the negotiation response message fed back by all other drivers connected to the repeater R1, the driver D1 generates corresponding parameter configuration signaling according to the parameter modification requirement, and sends the parameter configuration signaling to the repeater R1 to The control repeater R1 performs a corresponding parameter modification action.
本申请实施例中, 对于驱动器 D1来说, 只存在一个其他驱动器, 即驱动器 D2, 故当 Dl接收到 D2返回的协商应答消息时, 就可以向转发器 R1发送参数配置信令。 另外, 如果上述 SDN网络中除 D1和 D2外, 还存在另一驱动器 D3与转发器 R1连 接, 即驱动器 D1来说, 存在两个其他驱动器, 即驱动器 D2和 D3 ; 这种情况下, D1向 D2和 D3发送参数修改协商信令后,只有在既接收到 D2返回的协商应答消息, 又接收到 D3返回的协商应答消息的情况下, D1才向转发器 R1发送参数配置信令, 如果 D1只接收到 D2返回的协商应答消息, 或只接收到 D3返回的协商应答消息, 则不向转发器 R1发送参数配置信令。  In the embodiment of the present application, for the driver D1, there is only one other driver, that is, the driver D2. Therefore, when D1 receives the negotiation response message returned by D2, it can send parameter configuration signaling to the repeater R1. In addition, if the above SDN network has D1 and D2, there is another driver D3 connected to the repeater R1, that is, for the driver D1, there are two other drivers, namely, the drivers D2 and D3; in this case, the D1 direction After D2 and D3 send the parameter modification negotiation signaling, D1 sends the parameter configuration signaling to the repeater R1 only if both the negotiation response message returned by D2 and the negotiation response message returned by D3 are received. Only the negotiation response message returned by D2 is received, or only the negotiation response message returned by D3 is received, and the parameter configuration signaling is not sent to the repeater R1.
由上述技术方案可知, 本申请实施例中, 当且仅当与转发器 R1连接的所有驱动 器均允许参数修改时, 具有参数修改需求的驱动器 D1才通过向转发器 R1发送参数 配置信令, 来控制转发器 R1执行相应的参数修改动作, 可以避免参数的变化对某些 不允许修改的驱动器的影响。 可选的, 为实现将被修改的参数信息同步到 SDN网络中的其他设备上, 本实施 例在步骤 S504之后, 还包括以下步骤: It can be seen from the foregoing technical solutions that, in the embodiment of the present application, if all the drivers connected to the repeater R1 allow parameter modification, the driver D1 having the parameter modification requirement sends the parameter configuration signaling to the repeater R1. Control the repeater R1 to perform corresponding parameter modification actions, which can avoid parameter changes to certain The effect of the modified drive is not allowed. Optionally, in order to synchronize the parameter information to be modified to other devices in the SDN network, the embodiment further includes the following steps after step S504:
S506:允许参数修改的驱动器根据参数修改协商信令中规定的参数修改方式修改 自身存储的参数信息;  S506: The driver that allows the parameter modification to modify the parameter information stored by itself according to the parameter modification manner specified in the parameter modification negotiation signaling;
可选的, 本实施例还包括以下步骤:  Optionally, the embodiment further includes the following steps:
S507: 在驱动器对自身存储的参数信息进行修改后, 向与其连接的控制器发送参 数修改通知。  S507: After the driver modifies the parameter information stored by the driver, sends a parameter modification notification to the controller connected thereto.
例如, 允许相应的参数修改的驱动器 D2在执行步骤 S506后, 向控制器 C2发送 参数修改通知, 以告知控制器 C2相应的参数信息已被修改。  For example, the driver D2 that allows the corresponding parameter modification sends a parameter modification notification to the controller C2 after performing step S506 to inform the controller C2 that the corresponding parameter information has been modified.
可见, 通过发送上述参数修改通知将被修改的参数信息同步到每个控制器, 可以 保证同一参数在整个 SDN网络中所有设备上的一致性。 特别的, 如果接收到上述参数修改协商信令的驱动器不允许驱动器 D1请求的参 数修改,则该驱动器可以不向驱动器 D1返回任何消息,或者该驱动器执行以下步骤:  It can be seen that by transmitting the above parameter modification notification, the modified parameter information is synchronized to each controller, and the consistency of the same parameter on all devices in the entire SDN network can be ensured. In particular, if the driver receiving the above parameter modification negotiation signaling does not allow the parameter modification requested by the driver D1, the drive may not return any message to the drive D1, or the drive performs the following steps:
S508: 不允许参数修改的驱动器向驱动器 D1返回修改失败消息。  S508: The drive whose parameter modification is not allowed to return a modification failure message to the drive D1.
例如, 驱动器 D2在接收到驱动器 D1发送的参数修改协商信令后, 根据自身的 相关配置信息, 判定不允许该参数修改协商信令中请求的参数修改, 则驱动器 D2或 者不向驱动器 D1返回任何响应消息, 或者返回修改失败消息。 对于驱动器 Dl, 若 未接收到任何来自驱动器 D2的消息, 或者接收到来自驱动器 D2的修改失败消息, 则驱动器 D1可以判定驱动器 D2不允许参数修改。 进一步的, 与上述步骤 S505相对应的, 当具有参数修改需求的驱动器未接收到 与转发器 R1连接的所有其他驱动器反馈的协商应答消息 (即至少有一个其他驱动器 未返回消息, 或者返回修改失败消息) 时, 执行如下步骤:  For example, after receiving the parameter modification negotiation signaling sent by the driver D1, the driver D2 determines that the parameter modification requested in the negotiation signaling is not allowed according to the relevant configuration information of the driver D2, and the driver D2 does not return any to the driver D1. Respond to the message, or return a modification failure message. For the driver D1, if no message is received from the driver D2, or a modification failure message from the driver D2 is received, the driver D1 can determine that the driver D2 does not allow parameter modification. Further, corresponding to the above step S505, when the driver having the parameter modification requirement does not receive the negotiation response message fed back by all other drivers connected to the repeater R1 (ie, at least one other drive does not return a message, or the modification fails to be returned) When the message), perform the following steps:
具有参数修改需求的驱动器向其他驱动器发送修改撤销信息,以禁止或撤销所述 其他驱动器修改自身存储的参数信息。  The drive with the parameter modification requirement sends modification revocation information to other drives to prohibit or revoke the other drive to modify the parameter information stored by itself.
以连接于转发器 R1的 3个驱动器 Dl、 D2和 D3为例,对于驱动器 D1发送的参 数修改协商信令,驱动器 D2允许修改,并向 D1返回协商应答消息, D3不允许修改, 并向 D1返回修改失败消息; 则驱动器 D1至少向返回协商应答信息的 D2发送修改 撤销信息; 若驱动器 D2已执行步骤 S506, 则在接收到上述修改撤销信息后, 驱动器 D2将被修改的参数信息恢复为原参数信息, 同理, 若驱动器 D2已执行步骤 S507, 则在接收到上述修改撤销信息后, 驱动器 D2通过再次向控制器 C2发送通知信息, 以通知该控制器 C2被修改的参数信息恢复为原参数信息。 Taking the three drivers D1, D2 and D3 connected to the repeater R1 as an example, for the parameter modification negotiation signaling sent by the driver D1, the driver D2 allows modification, and returns a negotiation response message to D1, D3 does not allow modification, and D1 is not allowed. Returning the modification failure message; then the driver D1 sends a modification to at least D2 that returns the negotiation response information. If the driver D2 has performed the step S506, the driver D2 restores the modified parameter information to the original parameter information. Similarly, if the driver D2 has performed step S507, the information is received. After modifying the revocation information, the driver D2 sends the notification information to the controller C2 again to notify the controller C2 that the modified parameter information is restored to the original parameter information.
另外, 在本申请其他实施例中, 为减少驱动器对相关存储设备的数据读写次数、 减轻驱动器的工作负担, 当且仅当具有参数修改需求的驱动器执行步骤 S505后, 通 过向每个其他驱动器发送修改触发消息, 来触发其执行步骤 S506和 S507, 从而可以 避免参数信息被修改后再撤销造成的驱动器负担。  In addition, in other embodiments of the present application, in order to reduce the number of data read and write operations of the drive to the relevant storage device, and reduce the workload of the drive, if and only if the drive having the parameter modification requirement performs step S505, it passes each of the other drives. The modification trigger message is sent to trigger it to perform steps S506 and S507, so that the driver burden caused by the parameter information being modified and then revoked can be avoided.
由上述实施例五可见, 本申请实施例, 一方面利用驱动器实现支持不同控制转发 协议的控制器和转发器之间的信令格式转换, 从而不再需要控制器支持内置插件机 制, 应用范围大大增加; 另一方面能够实现驱动器之间的, 提供对转发器参数配置、 修改、 查询、 共享等功能, 能够简化 SDN网络对转发器的能力要求, 易于转发器实 现, 利于对转发器的转发性能的优化。 另一方面,对应于上文方法实施例,本申请实施例六还提供了一种软件定义网络 It can be seen from the foregoing embodiment 5 that, in the embodiment of the present application, the signaling format conversion between the controller and the repeater supporting different control forwarding protocols is implemented by using the driver, so that the controller does not need to support the built-in plug-in mechanism, and the application scope is large. On the other hand, it can realize the functions of configuring, modifying, querying, and sharing the parameters of the repeater between the drivers, which can simplify the capability of the SDN network to the repeater, and is easy to implement by the repeater, which is beneficial to the forwarding performance of the repeater. Optimization. On the other hand, corresponding to the above method embodiment, the sixth embodiment of the present application further provides a software defined network.
SDN, 如图 7所示的 SDN网络示意图, 该软件定义网络 SDN包括: 控制器 710、 转 发器 720和至少一个驱动器 730。 其中, 控制器 710用于: 根据转发规则生成第一转发控制信令, 并将第一转发控 制信令通过第一控制转发协议发送至驱动器 730中与控制器连接的第一驱动器。 驱动器 730用于: 在作为第一驱动器与控制器 710连接后,将接收到的第一转发 控制信令转换为符合第二控制转发协议的格式要求的第二转发控制信令,并将所述第 二转发控制信令通过第二控制转发协议发送至相应的转发器 720。 上述第一控制转发协议为控制器所支持的控制转发协议;上述第二控制转发协议 为转发器所支持的控制转发协议。 由上述实施例六可见,对于实现通过同一个控制器控制支持不同协议的不同转发 器,本申请实施例通过驱动器将控制器生成的第一转发控制信令经过格式转换后,转 发至相应的转发器, 不再需要控制器支持内置插件机制, 因此, 本申请实施例可以应 用于任意类型的控制器与转发器之间的控制信令转换, 应用范围大大增加。 另外, 本 申请实施例中, 通过改变不同类型的驱动器、 控制器和转发器三者之间的连接关系, 即可实现驱动器、转发器和控制器的复用, 不需要针对每一个控制器、 每一个转发器 设置一个驱动器, 对 SDN网络及相关设备的改动量小, 成本低。 在本申请一个可选的实施方式中,控制器 710还用于: 确定与对应于上述转发规 则的转发器的类型相匹配的至少一个驱动器作为所述第一驱动器,并与所述第一驱动 器建立连接。 在本申请另一个可选的实施方式中,驱动器 730还用于: 根据其服务的转发器的 参数信息,将自身配置为与所述转发器相对应的虚拟转发器, 并将所述虚拟转发器作 为所述第一驱动器与所述控制器建立连接。 SDN, as shown in the SDN network diagram shown in FIG. 7, the software definition network SDN includes: a controller 710, a repeater 720, and at least one driver 730. The controller 710 is configured to: generate first forwarding control signaling according to the forwarding rule, and send the first forwarding control signaling to the first driver connected to the controller in the driver 730 by using the first control forwarding protocol. The driver 730 is configured to: after being connected to the controller 710 as the first driver, convert the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol, and The second forwarding control signaling is sent to the corresponding repeater 720 through the second control forwarding protocol. The first control forwarding protocol is a control forwarding protocol supported by the controller; the second control forwarding protocol is a control forwarding protocol supported by the repeater. It can be seen from the foregoing embodiment that the first forwarding control signaling generated by the controller is format-converted by the driver and forwarded to the corresponding forwarding by using the driver to implement different forwarding devices that support different protocols by the same controller. The controller does not need to support the built-in plug-in mechanism. Therefore, the embodiment of the present application can be applied to control signaling conversion between any type of controller and a repeater, and the application range is greatly increased. In addition, in the embodiment of the present application, by changing the connection relationship between different types of drivers, controllers, and repeaters, multiplexing of the driver, the repeater, and the controller can be realized, and it is not required for each controller. Every transponder Set up a drive, the amount of changes to the SDN network and related equipment is small, and the cost is low. In an optional implementation manner of the present application, the controller 710 is further configured to: determine, as the first driver, at least one driver that matches a type of a repeater corresponding to the forwarding rule, and the first driver establish connection. In another optional implementation manner of the present application, the driver 730 is further configured to: configure itself as a virtual forwarder corresponding to the forwarder according to parameter information of the forwarder of the service, and forward the virtual The device establishes a connection with the controller as the first driver.
在本申请另一个可选的实施方式中, 驱动器 730还用于: 根据其服务的转发器的 参数信息,将自身配置为与所述转发器相对应的虚拟转发器, 并将所述虚拟转发器作 为所述第一驱动器与所述控制器建立连接。  In another optional implementation manner of the present application, the driver 730 is further configured to: configure itself as a virtual forwarder corresponding to the forwarder according to parameter information of the forwarder that it serves, and forward the virtual The device establishes a connection with the controller as the first driver.
在本申请另一个可选的实施方式中,在驱动器 730作为所述第一驱动器与控制器 710连接, 且该驱动器 730同时与多个转发器 720连接的情况下, 驱动器 730具体用 于: 根据第一控制转发协议和第二控制转发协议之间的预设映射关系,将所述第一转 发控制信令转换为对应于不同转发器的多条第二转发控制信令,并将其分别发送至相 应的转发器。 在本申请另一个可选的实施方式中,在驱动器 730作为所述第一驱动器与控制器 710连接的情况下, 驱动器 730还用于: 根据自身存储的转发器的参数信息, 判断接 收到的第一转发控制信令所对应的转发规则是否符合相应转发器的功能;如果第一转 发控制信令所对应的转发规则不符合相应转发器的功能,则向控制器返回控制失败消 息,否则执行所述将接收到的第一转发控制信令转换为符合第二控制转发协议的格式 要求的第二转发控制信令。  In another optional implementation manner of the present application, in a case where the driver 730 is connected to the controller 710 as the first driver, and the driver 730 is simultaneously connected to the plurality of transponders 720, the driver 730 is specifically configured to: a preset mapping relationship between the first control forwarding protocol and the second control forwarding protocol, converting the first forwarding control signaling into multiple second forwarding control signaling corresponding to different repeaters, and sending the respective To the corresponding transponder. In another optional implementation manner of the present application, in a case where the driver 730 is connected to the controller 710 as the first driver, the driver 730 is further configured to: determine, according to the parameter information of the transponder stored by itself, the received Whether the forwarding rule corresponding to the first forwarding control signaling conforms to the function of the corresponding forwarder; if the forwarding rule corresponding to the first forwarding control signaling does not conform to the function of the corresponding forwarder, returning a control failure message to the controller, otherwise executing And converting the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol.
在本申请另一个可选的实施方式中, 驱动器 730还用于: 根据自身存储的转发器 的参数信息生成参数配置信令, 并将所述参数配置信令发送至相应的转发器, 以配置 和 /或修改相应的转发器的参数。  In another optional implementation manner of the present application, the driver 730 is further configured to: generate parameter configuration signaling according to parameter information of the transponder stored by itself, and send the parameter configuration signaling to a corresponding transponder to configure And / or modify the parameters of the corresponding transponder.
在本申请另一个可选的实施方式中, 驱动器 730还用于: 当对其服务的转发器具 有参数修改需求时, 向与所述转发器连接的其他驱动器发送参数修改协商信令, 并在 接收到其他驱动器返回的协商应答消息后,通过向相应的转发器发送所述参数配置信 令来修改相应的参数。  In another optional implementation manner of the present application, the driver 730 is further configured to: when the transponder serving the parameter has a parameter modification requirement, send parameter modification negotiation signaling to another driver connected to the repeater, and After receiving the negotiation response message returned by the other driver, the corresponding parameter is modified by sending the parameter configuration signaling to the corresponding forwarder.
在本申请另一个可选的实施方式中, 驱动器 730还用于: 当接收到控制器 710发 送的转发参数查询信令时,根据自身存储的转发器的参数信息生成相应的转发参数应 答信息, 并将所述转发参数应答信息反馈至控制器 710。 In another optional implementation manner of the present application, the driver 730 is further configured to: when receiving the forwarding parameter query signaling sent by the controller 710, generate corresponding forwarding parameters according to the parameter information of the transponder stored by the controller 710. Answering the information, and feeding back the forwarding parameter response information to the controller 710.
本申请提供的 SDN网络实施例中, 驱动器既可以是控制器的远程设备, 也可以 是运行于控制器系统的本地模块。其中, 当驱动器采用远程设备时, 控制器可以通过 信令协商的方式与确定的第一驱动器控制器建立连接, 其包括但不限于如下所述步 骤:控制器向第一驱动器发送连接控制信令,当接收到第一驱动器返回的应答消息时, 连接完成。当驱动器采用控制器系统的本地模块时, 则控制器可以通过模块加载的方 式, 将第一驱动器加载为控制器自身的内部模块, 实现控制器与第一驱动器的连接。 另一方面, 参见图 8, 本申请实施例七提供了另一种基于 SDN网络的转发控制 方法; 其中, 该 SDN网络至少包括: 实现报文转发的转发器、 对所述转发器进行转 发控制的控制器, 以及至少一个实现对转发器的驱动控制的驱动器; 相应的, 该转发 控制方法包括如下步骤:  In the SDN network embodiment provided by the present application, the driver may be either a remote device of the controller or a local module running on the controller system. Wherein, when the driver adopts the remote device, the controller may establish a connection with the determined first driver controller by means of signaling negotiation, including but not limited to the following steps: the controller sends the connection control signaling to the first driver When the response message returned by the first drive is received, the connection is completed. When the driver adopts the local module of the controller system, the controller can load the first driver into the internal module of the controller by means of module loading, and realize the connection between the controller and the first driver. On the other hand, referring to FIG. 8, the seventh embodiment of the present application provides another forwarding control method based on an SDN network. The SDN network includes at least: a forwarder that implements packet forwarding, and performs forwarding control on the forwarder. a controller, and at least one driver that implements drive control of the repeater; correspondingly, the forwarding control method comprises the following steps:
S801 :所述驱动器中与控制器连接的第一驱动器接收控制器通过第一控制转发协 议发送的第一转发控制信令;  S801: The first driver connected to the controller in the driver receives the first forwarding control signaling sent by the controller by using the first control forwarding protocol.
S802:所述第一驱动器将接收到的第一转发控制信令转换为符合第二控制转发协 议的格式要求的第二转发控制信令;  S802: The first driver converts the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol.
S803:所述第一驱动器将所述第二转发控制信令通过第二控制转发协议发送至相 应的转发器。  S803: The first driver sends the second forwarding control signaling to a corresponding forwarder by using a second control forwarding protocol.
其中, 所述第一控制转发协议为控制器所支持的控制转发协议; 所述第二控制转 发协议为转发器所支持的控制转发协议。  The first control forwarding protocol is a control forwarding protocol supported by the controller; and the second control forwarding protocol is a control forwarding protocol supported by the repeater.
由上述实施例七可见,本申请通过驱动器实现控制器与转发器之间的信令格式转 换,在控制器不内置任何协议转换插件的情况下, 就可以实现控制器与转发器之间的 多对多控制, 因此, 相对于现有技术, 本申请实施例的应用范围大大增加。 另外, 应 用本实施例, 通过改变不同类型的驱动器、控制器和转发器三者之间的连接关系, 即 可实现驱动器、转发器和控制器的复用, 不需要针对每一个控制器、 每一个转发器设 置一个驱动器, 对 SDN网络及相关设备的改动量小, 成本低。 参见图 9, 本申请实施例八提供了另一种转发控制方法, 该方法基于一种具有控 制器、 转发器和驱动器的 SDN网络; 该方法至少包括如下步骤:  It can be seen from the above-mentioned embodiment that the present invention implements the signaling format conversion between the controller and the repeater through the driver. In the case that the controller does not have any protocol conversion plug-in built in, the controller and the repeater can be realized. For a multi-control, therefore, the scope of application of the embodiments of the present application is greatly increased relative to the prior art. In addition, with the embodiment, by changing the connection relationship between different types of drivers, controllers, and repeaters, multiplexing of the driver, the repeater, and the controller can be realized, and it is not required for each controller, each A transponder sets up a drive, which has a small amount of changes to the SDN network and related equipment, and low cost. Referring to FIG. 9, the eighth embodiment of the present application provides another forwarding control method, which is based on an SDN network with a controller, a repeater and a driver. The method includes at least the following steps:
S901 : 驱动器根据其服务的转发器的参数信息,将自身配置为与其服务的转发器 相对应的虚拟转发器,并将所述虚拟转发器作为所述第一驱动器与所述控制器建立连 接; S902:所述驱动器中与控制器连接的第一驱动器接收控制器通过第一控制转发协 议发送的第一转发控制信令; S901: The driver configures itself as a virtual forwarder corresponding to the forwarder of the service according to the parameter information of the forwarder of the service, and establishes a connection between the virtual forwarder and the controller as the first driver; S902: The first driver connected to the controller in the driver receives the first forwarding control signaling sent by the controller by using the first control forwarding protocol.
S903 :所述第一驱动器将接收到的第一转发控制信令转换为符合第二控制转发协 议的格式要求的第二转发控制信令;  S903: The first driver converts the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol.
S904:所述第一驱动器将所述第二转发控制信令通过第二控制转发协议发送至相 应的转发器。  S904: The first driver sends the second forwarding control signaling to a corresponding forwarder by using a second control forwarding protocol.
上述实施例八中, 通过将驱动器被配置为虚拟转发器, 从而利用这一个驱动器就 可以实现多个控制器与多个转发器之间的信令格式转换, 对 SDN网络及相关设备的 改动量小, 成本低。 另外, 被配置为虚拟转发器后, 该驱动器对控制器表现为一个转 发器,可以对控制器屏蔽下层转发器的拓扑样式及硬件等方面的差异, 简化控制器的 控制流程; 同时, 还可以对转发器屏蔽上层控制器的差异性, 从而实现或部署转发器 时, 不需要考虑上层控制器的具体类型、 性能等属性, 降低 SDN网络对下层转发器 的基本性能要求, 便于实现转发器性能的优化和扩展。  In the foregoing embodiment 8, by configuring the driver as a virtual transponder, the signaling format conversion between the plurality of controllers and the plurality of transponders can be realized by using the one driver, and the modification amount of the SDN network and related devices is implemented. Small, low cost. In addition, after being configured as a virtual repeater, the driver acts as a repeater to the controller, which can shield the controller from differences in topology style and hardware of the lower layer repeater, and simplify the control flow of the controller; Shielding the difference between the upper-layer controllers of the transponders, so that when implementing or deploying the transponders, it is not necessary to consider the specific types and performance attributes of the upper-layer controllers, and reduce the basic performance requirements of the SDN network for the lower-layer repeaters, which facilitates the performance of the repeater. Optimization and expansion.
参见图 10, 本申请实施例九提供的另一种转发控制方法, 同样基于一种具有控 制器、 转发器和驱动器的 SDN网络; 该方法至少包括如下步骤:  Referring to FIG. 10, another forwarding control method provided in Embodiment 9 of the present application is also based on an SDN network having a controller, a repeater, and a driver. The method includes at least the following steps:
S1001 : 所述驱动器中与控制器连接的第一驱动器接收控制器通过第一控制转发 协议发送的第一转发控制信令;  S1001: The first driver connected to the controller in the driver receives the first forwarding control signaling sent by the controller by using the first control forwarding protocol;
S1002: 所述第一驱动器根据自身存储的转发器的参数信息, 判断接收到的第一 转发控制信令所对应的转发规则是否符合相应转发器的功能, 如果符合, 则执行步骤 S1004, 否则执行步骤 S1003 ;  S1002: The first driver determines whether the forwarding rule corresponding to the received first forwarding control signaling conforms to the function of the corresponding forwarder according to the parameter information of the forwarder that is stored by itself, and if yes, performs step S1004, otherwise executes Step S1003;
S1003 : 所述第一驱动器向控制器返回控制失败消息;  S1003: the first driver returns a control failure message to the controller;
本实施例中, 在进行格式转换之前, 第一驱动器首先对第一转发控制信令的可执 行性进行判断, 并在判断结果为不可执行时, 向控制器返回控制失败消息, 以便控制 器合理安排相关的后续控制动作。  In this embodiment, before performing format conversion, the first driver first determines the enforceability of the first forwarding control signaling, and returns a control failure message to the controller when the determination result is unexecutable, so that the controller is reasonable. Arrange relevant follow-up control actions.
S1004: 所述第一驱动器将接收到的第一转发控制信令转换为符合第二控制转发 协议的格式要求的第二转发控制信令;  S1004: The first driver converts the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol.
可选的, 本申请实施例中, 第一驱动器根据第一控制转发协议和第二控制转发协 议之间的预设映射关系,将第一转发控制信令转换为对应的第二转发控制信令。实际 应用中,可以在一个驱动器中设置多种控制转发协议之间的直接或间接映射关系, 从 而通过该驱动器实现多种控制信令之间的自由转换。  Optionally, in the embodiment of the present application, the first driver converts the first forwarding control signaling into a corresponding second forwarding control signaling according to a preset mapping relationship between the first control forwarding protocol and the second control forwarding protocol. . In practical applications, direct or indirect mapping between multiple control forwarding protocols can be set in one drive, thereby enabling free conversion between multiple control signaling through the driver.
S1005 : 所述第一驱动器将所述第二转发控制信令通过第二控制转发协议发送至 相应的转发器。 S1005: The first driver sends the second forwarding control signaling to the second control forwarding protocol to The corresponding transponder.
进一步的, 对于一个驱动器或虚拟转发器同时服务多个转发器、或者控制器发送 的第一转发控制信令需要同时控制多个转发器等实际应用情况,本申请实施例中,第 一驱动器根据上述预设映射关系,将所述第一转发控制信令转换为符合不同类型的第 二控制转发协议的格式要求的第二转发控制信令, 并分别将其发送至对应的转发器。  Further, for a driver or a virtual forwarder to serve multiple forwarders at the same time, or the first forwarding control signaling sent by the controller needs to control the actual application of multiple forwarders, etc., in the embodiment of the present application, the first driver is based on And the first forwarding control signaling is converted into the second forwarding control signaling that meets the format requirements of the second control forwarding protocol of different types, and is respectively sent to the corresponding forwarder.
可选的, 在上述实施例七〜九任一项的基础上, 还可通过如下步骤实现动态配置 或修改转发器的参数:  Optionally, on the basis of any one of the foregoing Embodiments 7-14, the following steps may be used to dynamically configure or modify the parameters of the forwarder:
驱动器根据自身存储的转发器的参数信息生成参数配置信令,并将所述参数配置 信令发送至相应的转发器, 以配置和 /或修改相应的转发器的参数。  The driver generates parameter configuration signaling according to the parameter information of the transponder stored by itself, and sends the parameter configuration signaling to the corresponding transponder to configure and/or modify the parameters of the corresponding transponder.
特别的, 在多个驱动器服务于同一转发器的情况下, 当某个驱动器对其服务的转 发器具有参数修改需求时,该驱动器向连接于同一转发器的其他驱动器发送参数修改 协商信令, 并在接收到所有其他驱动器返回的协商应答消息后,通过向相应的转发器 发送所述参数配置信令来修改相应的参数; 相反的,若上述具有参数修改需求的驱动 器未接收到任何其他驱动器返回的协商应答消息,或者只接收到部分其他转发器返回 的协商应答消息, 说明至少有一个其他驱动器不允许参数修改, 此时为保证 SDN网 络中相关参数信息的一致性,该具有参数修改需求的驱动器不向转发器发送参数配置 信令。  In particular, in the case where multiple drivers serve the same transponder, when a driver has a parameter modification requirement for the transponder served by the driver, the driver sends parameter modification negotiation signaling to other drivers connected to the same transponder. And after receiving the negotiation response message returned by all other drivers, modifying the corresponding parameter by sending the parameter configuration signaling to the corresponding forwarder; conversely, if the above driver having the parameter modification requirement does not receive any other driver The returned negotiation response message, or only the negotiation response message returned by some other transponders, indicates that at least one other driver does not allow parameter modification. In this case, to ensure the consistency of related parameter information in the SDN network, the parameter modification requirement is required. The driver does not send parameter configuration signaling to the repeater.
可选的, 在上述实施例七〜九任一项的基础上, 还可通过如下步骤实现控制器对 转发器的参数查询:  Optionally, on the basis of any one of the foregoing seven to nine embodiments, the controller may further perform parameter query on the forwarder by using the following steps:
驱动器接收控制器发送的转发参数查询信令,并根据自身存储的转发器的参数信 息生成对应的转发参数应答信息, 将所述转发参数应答信息反馈至控制器。  The driver receives the forwarding parameter query signaling sent by the controller, and generates corresponding forwarding parameter response information according to the parameter information of the transponder stored by the controller, and feeds back the forwarding parameter response information to the controller.
上述参数查询过程不需要访问对应的转发器, 控制器只需与驱动器通信, 即可获 取到每个转发器的参数信息。 另一方面, 参见图 11, 本申请实施例十还提供了一种应用于软件定义网络 S D 的驱动器; 其中, 该 SDN网络包括实现报文转发的转发器, 和根据转发规则对所述 转发器执行转发控制的控制器; 该驱动器至少包括:  The above parameter query process does not need to access the corresponding transponder, and the controller only needs to communicate with the driver to obtain the parameter information of each transponder. On the other hand, referring to FIG. 11, Embodiment 10 of the present application further provides a driver applied to a software-defined network SD, where the SDN network includes a forwarder that implements packet forwarding, and the repeater according to a forwarding rule. a controller that performs forwarding control; the driver includes at least:
信令接收单元 101, 用于当所述驱动器作为第一驱动器与控制器连接时, 接收控 制器通过第一控制转发协议发送的第一转发控制信令; 信令转换单元 102, 用于将信令接收单元 101接收到的第一转发控制信令转换为 符合第二控制转发协议的格式要求的第二转发控制信令; 信令发送单元 103, 用于将所述第二转发控制信令通过第二控制转发协议发送至 相应的转发器; 其中,所述第一控制转发协议为控制器所支持的控制转发协议; 所述第二控制转 发协议为转发器所支持的控制转发协议。 在本申请一个可选的实施方式中,信令转换单元 102具体用于: 根据第一控制转 发协议和第二控制转发协议之间的预设映射关系,将所述第一转发控制信令转换为对 应于不同转发器的多条第二转发控制信令; 相应的, 信令发送单元 1032具体用于, 将所述信令转换单元生成的多条第二转 发控制信令分别通过相应的第二控制转发协议发送至相应的转发器。 参见图 12, 本申请实施例十一提供的应用于软件定义网络 S D的驱动器, 除包 括如上文实施例十所述的信令接收单元 101、 信令转换单元 102和信令发送单元 103 夕卜, 还包括以下单元中的至少一个: The signaling receiving unit 101 is configured to: when the driver is connected to the controller as the first driver, receive the first forwarding control signaling sent by the controller by using the first control forwarding protocol; and the signaling conversion unit 102 is configured to send the signal And causing, by the receiving unit 101, the first forwarding control signaling to be converted into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol; The signaling sending unit 103 is configured to send the second forwarding control signaling to the corresponding forwarder by using a second control forwarding protocol, where the first control forwarding protocol is a control forwarding protocol supported by the controller; The second control forwarding protocol is a control forwarding protocol supported by the repeater. In an optional implementation manner of the present application, the signaling conversion unit 102 is specifically configured to: convert the first forwarding control signaling according to a preset mapping relationship between the first control forwarding protocol and the second control forwarding protocol Correspondingly, the signaling sending unit 1032 is specifically configured to: pass the multiple second forwarding control signaling generated by the signaling converting unit to the corresponding first The second control forwarding protocol is sent to the corresponding forwarder. Referring to FIG. 12, a driver applied to a software-defined network SD according to Embodiment 11 of the present application includes the signaling receiving unit 101, the signaling conversion unit 102, and the signaling sending unit 103 as described in Embodiment 10 above. , also includes at least one of the following units:
自我配置单元 104, 用于根据所述驱动器服务的转发器的参数信息, 将自身配置 为与其服务的转发器相对应的虚拟转发器,并将所述虚拟转发器作为所述第一驱动器 与所述控制器建立连接。  The self-configuring unit 104 is configured to configure itself as a virtual forwarder corresponding to the transponder served by the transponder according to the parameter information of the transponder served by the driver, and use the virtual transponder as the first driver and the The controller establishes a connection.
信令判断单元 105, 用于根据自身存储的转发器的参数信息, 判断接收到的第一 转发控制信令所对应的转发规则是否符合相应转发器的功能;如果第一转发控制信令 所对应的转发规则不符合相应转发器的功能, 则向控制器返回控制失败消息; 否则, 触发所述信令转换单元和 /或信令发送单元。  The signaling determining unit 105 is configured to determine, according to the parameter information of the forwarder that is stored by itself, whether the forwarding rule corresponding to the received first forwarding control signaling conforms to the function of the corresponding forwarder; if the first forwarding control signaling corresponds to If the forwarding rule does not comply with the function of the corresponding forwarder, the control failure message is returned to the controller; otherwise, the signaling conversion unit and/or the signaling sending unit are triggered.
参数配置单元 106, 用于根据自身存储的转发器的参数信息生成参数配置信令, 并将所述参数配置信令发送至相应的转发器, 以配置和 /或修改相应的转发器的参数。  The parameter configuration unit 106 is configured to generate parameter configuration signaling according to parameter information of the transponder stored by itself, and send the parameter configuration signaling to a corresponding transponder to configure and/or modify parameters of the corresponding transponder.
信令协商单元 107, 用于当所述驱动器对其服务的转发器具有参数修改需求时, 向与所述转发器连接的其他驱动器发送参数修改协商信令,并在接收到其他驱动器返 回的协商应答消息后, 触发所述参数配置单元, 以修改相应转发器的参数。  The signaling negotiation unit 107 is configured to: when the driver has a parameter modification requirement for the transponder served by the driver, send parameter modification negotiation signaling to other drivers connected to the repeater, and receive negotiation of returning by other drivers. After the message is acknowledged, the parameter configuration unit is triggered to modify the parameters of the corresponding forwarder.
参数查询单元 108, 用于接收控制器发送的转发参数查询信令, 根据自身存储的 转发器的参数信息生成对应于所述转发参数查询信令的转发参数应答信息,并将所述 转发参数应答信息反馈至控制器。  The parameter querying unit 108 is configured to receive the forwarding parameter query signaling sent by the controller, generate forwarding parameter response information corresponding to the forwarding parameter query signaling according to the parameter information of the forwarder stored by the controller, and send the forwarding parameter response Information is fed back to the controller.
为了描述的方便, 描述以上驱动器时以功能分为各种单元分别描述。 当然, 在实 施本发明时可以把各单元的功能在同一个或多个软件和 /或硬件中实现。 参见图 13,本申请实施例十二还提供了一种应用于软件定义网络 S D的驱动器, 其包括: 处理器 201和存储器 202; 其中, 存储器 202中存储有处理器 201能够执行 的操作指令, 处理器 201读取存储器 202内的操作指令, 以实现以下功能: 与控制器 连接并接收控制器通过第一控制转发协议发送的第一转发控制信令;将接收到的第一 转发控制信令转换为符合第二控制转发协议的格式要求的第二转发控制信令;将所述 第二转发控制信令通过第二控制转发协议发送至相应的转发器。 For the convenience of description, the above drivers are described as being divided into various units by function. Of course, the functions of the various units may be implemented in one or more software and/or hardware in the practice of the invention. Referring to FIG. 13 , the embodiment 12 of the present application further provides a driver applied to the software-defined network SD, which includes: a processor 201 and a memory 202; wherein the memory 202 stores an operation instruction that the processor 201 can execute, The processor 201 reads the operation instructions in the memory 202 to implement the following functions: connecting with the controller and receiving the first forwarding control signaling sent by the controller through the first control forwarding protocol; the first forwarding control signaling to be received Converting to the second forwarding control signaling conforming to the format requirement of the second control forwarding protocol; sending the second forwarding control signaling to the corresponding forwarder by using the second control forwarding protocol.
在一个可选的实施方式中,处理器 201还用于:根据所服务的转发器的参数信息, 将自身配置为与其服务的转发器相对应的虚拟转发器, 以实现与所述控制器建立连 接。  In an optional implementation manner, the processor 201 is further configured to configure itself as a virtual forwarder corresponding to the transponder served by the transponder according to the parameter information of the served transponder to implement establishment with the controller. connection.
在另一个可选的实施方式中,存储器 202还用于存储本驱动器所服务的转发器的 参数信息; 相应的, 处理器 201还用于: 根据存储器 202存储的转发器的参数信息, 判断接收到的第一转发控制信令所对应的转发规则是否符合相应转发器的功能;如果 符合, 则执行上述将第一转发控制信令转换为第二转发控制信令的功能, 否则向控制 器返回控制失败消息。  In another optional implementation, the memory 202 is further configured to store parameter information of the transponder served by the driver. Correspondingly, the processor 201 is further configured to: determine, according to the parameter information of the transponder stored by the memory 202, Whether the forwarding rule corresponding to the first forwarding control signaling is consistent with the function of the corresponding forwarding device; if yes, performing the above function of converting the first forwarding control signaling into the second forwarding control signaling, otherwise returning to the controller Control failure message.
在另一个可选的实施方式中, 处理器 201还用于: 根据存储器 202存储的转发器 的参数信息生成参数配置信令, 并将所述参数配置信令发送至相应的转发器, 以配置 和 /或修改相应的转发器的参数。  In another optional implementation manner, the processor 201 is further configured to: generate parameter configuration signaling according to the parameter information of the forwarder stored in the memory 202, and send the parameter configuration signaling to a corresponding forwarder to configure And / or modify the parameters of the corresponding transponder.
在另一个可选的实施方式中, 处理器 201还用于: 当对其服务的转发器具有参数 修改需求时, 向与所述转发器连接的其他驱动器发送参数修改协商信令, 并在接收到 其他驱动器返回的协商应答消息后, 生成并发送对应的参数配置信令, 以修改对应转 发器的参数。  In another optional implementation manner, the processor 201 is further configured to: when the transponder for the serving device has a parameter modification requirement, send the parameter modification negotiation signaling to the other driver connected to the repeater, and receive After the negotiation response message returned by the other driver, the corresponding parameter configuration signaling is generated and sent to modify the parameters of the corresponding transponder.
在另一个可选的实施方式中, 处理器 201还用于: 接收控制器发送的转发参数查 询信令,根据自身存储的转发器的参数信息生成对应于所述转发参数查询信令的转发 参数应答信息, 并将所述转发参数应答信息反馈至控制器。 本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部 分互相参见即可, 每个实施例重点说明的都是与其他实施例的不同之处。尤其, 对于 装置或系统实施例而言, 由于其基本相似于方法实施例, 所以描述得比较简单, 相关 之处参见方法实施例的部分说明即可。以上所描述的装置及系统实施例仅仅是示意性 的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作为单 元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分 布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实 施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下, 即可以理解并 实施。 In another optional implementation manner, the processor 201 is further configured to: receive the forwarding parameter query signaling sent by the controller, and generate, according to the parameter information of the forwarder stored by the controller, a forwarding parameter corresponding to the forwarding parameter query signaling. Answering the information, and feeding back the forwarding parameter response information to the controller. The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for a device or system embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment. The apparatus and system embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie Can be located in one place, or it can be divided Spread onto multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序 模块。 一般地, 程序模块包括执行特定任务或实现特定抽象数据类型的例程、 程序、 对象、 组件、 数据结构等等。 也可以在分布式计算环境中实践本申请, 在这些分布式 计算环境中, 由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环 境中, 程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。  The application can be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. The present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including storage devices.
需要说明的是, 在本文中, 诸如 "第一 "和 "第二"等之类的关系术语仅仅用来 将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体 或操作之间存在任何这种实际的关系或者顺序。 而且, 术语 "包括" 、 "包含"或者 其任何其他变体意在涵盖非排他性的包含, 从而使得包括一系列要素的过程、 方法、 物品或者设备不仅包括那些要素, 而且还包括没有明确列出的其他要素, 或者是还包 括为这种过程、 方法、 物品或者设备所固有的要素。 在没有更多限制的情况下, 由语 句 "包括一个…… " 限定的要素, 并不排除在包括所述要素的过程、 方法、物品或者 设备中还存在另外的相同要素。  It should be noted that, in this context, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these There is any such actual relationship or order between entities or operations. Furthermore, the terms "comprising", "comprising" or "comprising" or "comprising" or "comprising" or "the" Other elements, or elements that are inherent to such a process, method, item, or device. In the absence of further restrictions, the terms "comprising a ..." are not intended to exclude the presence of the same elements in the process, method, article, or device.
以上所述仅是本申请的具体实施方式, 应当指出, 对于本技术领域的普通技术人 员来说, 在不脱离本申请原理的前提下, 还可以做出若干改进和润饰, 这些改进和润 饰也应视为本申请的保护范围。  The above description is only a specific embodiment of the present application, and it should be noted that those skilled in the art can also make some improvements and retouching without departing from the principle of the application, and these improvements and retouchings are also It should be considered as the scope of protection of this application.

Claims

权 利 要 求 Rights request
1、 一种基于软件定义网络 SDN的转发控制方法, 所述 SDN网络包括实现 报文转发的转发器, 和根据转发规则对所述转发器执行转发控制的控制器; 其特 征在于, 所述 SDN网络还包括至少一个实现对转发器的驱动控制的驱动器; 所述转发控制方法包括: 所述控制器根据转发规则生成第一转发控制信令,并将第一转发控制信令通 过第一控制转发协议发送至所述驱动器中与控制器连接的第一驱动器; 所述第一驱动器将接收到的第一转发控制信令转换为符合第二控制转发协 议的格式要求的第二转发控制信令,并将所述第二转发控制信令通过第二控制转 发协议发送至相应的转发器; 其中, 所述第一控制转发协议为控制器所支持的控制转发协议; 所述第二控 制转发协议为转发器所支持的控制转发协议。 A forwarding control method based on a software-defined network SDN, where the SDN network includes a forwarder that implements packet forwarding, and a controller that performs forwarding control on the forwarder according to a forwarding rule; The network further includes at least one driver that implements drive control on the repeater; the forwarding control method includes: the controller generates first forwarding control signaling according to the forwarding rule, and forwards the first forwarding control signaling by using the first control The protocol is sent to the first driver connected to the controller in the driver; the first driver converts the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol, And sending the second forwarding control signaling to the corresponding forwarder by using the second control forwarding protocol; wherein, the first control forwarding protocol is a control forwarding protocol supported by the controller; and the second control forwarding protocol is The control forwarding protocol supported by the repeater.
2、 根据权利要求 1所述的转发控制方法, 其特征在于, 在所述控制器发送 第一转发控制指令之前, 所述转发控制方法还包括: 控制器确定与所述转发规则对应的转发器的类型相匹配的至少一个驱动器 作为所述第一驱动器, 并与所述第一驱动器建立连接。 The forwarding control method according to claim 1, wherein before the controller sends the first forwarding control instruction, the forwarding control method further includes: the controller determining a repeater corresponding to the forwarding rule The at least one driver of the matching type acts as the first driver and establishes a connection with the first driver.
3、 根据权利要求 2所述的转发控制方法, 其特征在于, 所述控制器确定与 所述转发规则对应的转发器的类型相匹配的至少一个驱动器作为所述第一驱动 器, 包括: 控制器根据每个驱动器发送的注册消息和转发器发送的自身的类型标识确 定与所述转发规则对应的转发器的类型相匹配的驱动器,并将所确定的驱动器作 为所述第一驱动器; 其中,所述注册消息包括相应的驱动器所支持的一种或多种转发器的类型标 识; 所述类型标识包括以下至少一种: 转发器型号、 控制转发协议类型、 流表类 型模板 TTP和可协商数据路径模型 DM。 The forwarding control method according to claim 2, wherein the controller determines at least one driver that matches the type of the repeater corresponding to the forwarding rule as the first driver, and includes: a controller Determining, according to the registration message sent by each driver and the type identifier of the transponder, the type of the transponder corresponding to the forwarding rule, and determining the driver as the first driver; The registration message includes a type identifier of one or more types of repeaters supported by the corresponding driver; the type identifier includes at least one of the following: a repeater model, a control forwarding protocol type, a flow table type template TTP, and a negotiable data path. Model DM.
4、 根据权利要求 2所述的转发控制方法, 其特征在于, 所述控制器与第一 驱动器建立连接, 包括: 控制器通过模块加载或信令协商的方式与所述第一驱动器建立连接。 The forwarding control method according to claim 2, wherein the establishing a connection between the controller and the first driver comprises: establishing, by the controller, a connection with the first driver by means of module loading or signaling negotiation.
5、 根据权利要求 1所述的转发控制方法, 其特征在于, 在所述控制器发送 第一转发控制指令之前, 所述转发控制方法还包括: 所述驱动器根据其服务的转发器的参数信息,将自身配置为与其服务的转发 器相对应的虚拟转发器; 所述虚拟转发器作为第一驱动器, 与所述控制器建立连接。 The forwarding control method according to claim 1, wherein before the controller sends the first forwarding control instruction, the forwarding control method further includes: the parameter information of the forwarder of the driver according to the service Configuring itself as a virtual forwarder corresponding to the transponder it serves; the virtual repeater acts as a first driver to establish a connection with the controller.
6、 根据权利要求 1~5任一项所述的转发控制方法, 其特征在于, 所述第一 驱动器将接收到的第一转发控制信令转换为符合第二控制转发协议的格式要求 的第二转发控制信令, 包括: 当所述转发器包括多个时,所述第一驱动器根据第一控制转发协议和第二控 制转发协议之间的预设映射关系,将所述第一转发控制信令转换为对应于不同转 发器的多条第二转发控制信令。 The forwarding control method according to any one of claims 1 to 5, wherein the first driver converts the received first forwarding control signaling into a format that meets a format requirement of the second control forwarding protocol. The second forwarding control signaling includes: when the repeater includes multiple, the first driver performs the first forwarding control according to a preset mapping relationship between the first control forwarding protocol and the second control forwarding protocol. The signaling is converted into a plurality of second forwarding control signalings corresponding to different transponders.
7、 根据权利要求 1~5任一项所述的转发控制方法, 其特征在于, 还包括: 所述第一驱动器根据自身存储的转发器的参数信息,判断接收到的第一转发 控制信令所对应的转发规则是否符合相应转发器的功能; 如果第一转发控制信令所对应的转发规则不符合相应转发器的功能,则第一 驱动器向控制器返回控制失败消息,否则执行所述将接收到的第一转发控制信令 转换为符合第二控制转发协议的格式要求的第二转发控制信令。 The forwarding control method according to any one of claims 1 to 5, further comprising: determining, by the first driver, the received first forwarding control signaling according to the parameter information of the forwarder stored by the first driver Whether the corresponding forwarding rule conforms to the function of the corresponding forwarder; if the forwarding rule corresponding to the first forwarding control signaling does not conform to the function of the corresponding forwarder, the first driver returns a control failure message to the controller, otherwise executing the The received first forwarding control signaling is converted into a second forwarding control signaling that meets the format requirements of the second control forwarding protocol.
8、 根据权利要求 1~5任一项所述的转发控制方法, 其特征在于, 还包括: 所述驱动器根据自身存储的转发器的参数信息生成参数配置信令,并将所述 参数配置信令发送至相应的转发器, 以配置和 /或修改相应的转发器的参数。 The forwarding control method according to any one of claims 1 to 5, further comprising: the driver generating parameter configuration signaling according to parameter information of the transponder stored by the driver, and configuring the parameter configuration The order is sent to the corresponding repeater to configure and/or modify the parameters of the corresponding repeater.
9、 根据权利要求 1~5任一项所述的转发控制方法, 其特征在于, 还包括: 连接于同一转发器的不同驱动器之间通过预设接口协议发送和 /或接收控制 信令; 其中, 所述连接于同一转发器的不同驱动器之间通过预设接口协议发送和 / 或接收控制信令, 包括以下至少一项: 当连接于所述转发器的第二驱动器具有转发器参数修改需求时,所述第二驱 动器向连接于所述转发器的第三驱动器发送参数修改协商信令; 所述第三驱动器接收所述参数修改协商信令,并在允许所述参数修改协商信 令中请求的参数修改操作时, 向所述第二驱动器返回协商应答消息; 所述第二驱动器向所述第三驱动器发送共享信息查询信令; 所述第三驱动器接收所述共享信息查询信令,并根据所述共享信息查询信令 向所述第二驱动器返回对应的信息查询应答消息。 The forwarding control method according to any one of claims 1 to 5, further comprising: transmitting and/or receiving control signaling between different drivers connected to the same transponder through a preset interface protocol; Transmitting and/or receiving control signaling between different drivers connected to the same transponder through a preset interface protocol, including at least one of the following: when the second driver connected to the transponder has a transponder parameter modification requirement And the second driver sends parameter modification negotiation signaling to the third driver connected to the repeater; the third driver receives the parameter modification negotiation signaling, and in the parameter modification negotiation signaling is allowed And returning, by the second driver, a negotiation response message; the second driver sending the shared information query signaling to the third driver; the third driver receiving the shared information query signaling, And returning, according to the shared information query signaling, a corresponding information query response message to the second driver.
10、 根据权利要求 1~5任一项所述的转发控制方法, 其特征在于, 还包括: 当接收到控制器发送的转发参数查询信令时,所述驱动器根据自身存储的转 发器的参数信息生成相应的转发参数应答信息,并将所述转发参数应答信息反馈 至控制器。 The forwarding control method according to any one of claims 1 to 5, further comprising: when receiving the forwarding parameter query signaling sent by the controller, the driver according to the parameter of the transponder stored by the driver The information generates corresponding forwarding parameter response information, and feeds back the forwarding parameter response information to the controller.
11、 一种软件定义网络 SDN, 其特征在于, 包括控制器、 转发器和至少一 个驱动器; 所述控制器用于: 根据转发规则生成第一转发控制信令, 并将第一转发控制 信令通过第一控制转发协议发送至所述驱动器中与控制器连接的第一驱动器; 所述驱动器用于: 在作为所述第一驱动器与所述控制器连接后, 接收所述第 一转发控制信令,将接收到的第一转发控制信令转换为符合第二控制转发协议的 格式要求的第二转发控制信令,并将所述第二转发控制信令通过第二控制转发协 议发送至相应的转发器; 其中, 所述第一控制转发协议为控制器所支持的控制转发协议; 所述第二控 制转发协议为转发器所支持的控制转发协议。 A software-defined network SDN, comprising: a controller, a repeater, and at least one driver; the controller is configured to: generate first forwarding control signaling according to a forwarding rule, and pass the first forwarding control signaling Transmitting, by the first control forwarding protocol, a first driver connected to the controller in the driver; the driver is configured to: after the first driver is connected to the controller, receive the first forwarding control signaling Transmitting the received first forwarding control signaling into a second forwarding control signaling conforming to the format requirement of the second control forwarding protocol, and sending the second forwarding control signaling to the corresponding by using the second control forwarding protocol And the first control forwarding protocol is a control forwarding protocol supported by the controller; and the second control forwarding protocol is a control forwarding protocol supported by the repeater.
12、 根据权利要求 11所述的 SDN网络, 其特征在于, 所述控制器还用于: 确定与对应于所述转发规则的转发器的类型相匹配的至少一个驱动器作为 所述第一驱动器, 并与所述第一驱动器建立连接。 The SDN network according to claim 11, wherein the controller is further configured to: determine, as the first driver, at least one driver that matches a type of a repeater corresponding to the forwarding rule, And establishing a connection with the first driver.
13、 根据权利要求 11所述的 SDN网络, 其特征在于, 所述驱动器还用于: 根据其服务的转发器的参数信息,将自身配置为与其服务的转发器相对应的 虚拟转发器, 并将所述虚拟转发器作为所述第一驱动器与所述控制器建立连接。 The SDN network according to claim 11, wherein the driver is further configured to: configure itself as a virtual forwarder corresponding to a transponder served by the transponder according to the parameter information of the transponder it serves, and The virtual repeater is used as the first driver to establish a connection with the controller.
14、 根据权利要求 11 13任一项所述的 SDN网络, 其特征在于, 在作为所 述第一驱动器与所述控制器连接后, 所述驱动器具体用于: 当与多个转发器连接时,根据第一控制转发协议和第二控制转发协议之间的 预设映射关系,将所述第一转发控制信令转换为对应于不同转发器的多条第二转 发控制信令, 并将其分别发送至相应的转发器。 The SDN network according to any one of claims 11 to 13, wherein, after being connected to the controller as the first driver, the driver is specifically configured to: when connected to a plurality of transponders And converting, according to a preset mapping relationship between the first control forwarding protocol and the second control forwarding protocol, the first forwarding control signaling into multiple second forwarding control signaling corresponding to different repeaters, and Send to the corresponding forwarder separately.
15、 根据权利要求 11 13任一项所述的 SDN网络, 其特征在于, 在作为所 述第一驱动器与所述控制器连接后, 所述驱动器还用于: 根据自身存储的转发器的参数信息,判断接收到的第一转发控制信令所对应 的转发规则是否符合相应转发器的功能;如果第一转发控制信令所对应的转发规 则不符合相应转发器的功能, 则向控制器返回控制失败消息, 否则执行所述将接 收到的第一转发控制信令转换为符合第二控制转发协议的格式要求的第二转发 控制信令。 The SDN network according to any one of claims 11 to 13, wherein after being connected to the controller as the first driver, the driver is further configured to:: according to parameters of the transponder stored by itself And determining, according to the information, whether the forwarding rule corresponding to the received first forwarding control signaling conforms to the function of the corresponding forwarder; if the forwarding rule corresponding to the first forwarding control signaling does not meet the function of the corresponding forwarder, returning to the controller Controlling the failure message, otherwise performing the converting the first forwarding control signaling into the second forwarding control signaling conforming to the format requirement of the second control forwarding protocol.
16、 根据权利要求 11 13任一项所述的 SDN网络, 其特征在于, 所述驱动 器还用于: 根据自身存储的转发器的参数信息生成参数配置信令,并将所述参数配置信 令发送至相应的转发器, 以配置和 /或修改相应的转发器的参数。 The SDN network according to any one of claims 11 to 13, wherein the driver is further configured to: generate parameter configuration signaling according to parameter information of the transponder stored by itself, and configure the parameter configuration signaling Send to the appropriate repeater to configure and/or modify the parameters of the corresponding repeater.
17、 根据权利要求 16所述的 SDN网络, 其特征在于, 所述驱动器还用于: 通过预设接口协议向所连接的转发器相同的另一驱动器发送控制信令, 和 / 或, 接收所述另一驱动器发送的控制信令; 其中, 所述向所述另一驱动器发送控制信令, 包括以下至少一项: 当所述驱动器具有转发器参数修改需求时,向所述另一驱动器发送参数修改 协商信令; 向所述另一驱动器发送共享信息查询信令; 所述接收所述另一驱动器发送的控制信令, 包括以下至少一项: 接收所述另一驱动器根据所述参数修改协商信令返回的协商应答信息; 接收所述另一驱动器根据所述共享信息查询信令发挥的信息查询应答消息。 The SDN network according to claim 16, wherein the driver is further configured to: send control signaling to another driver that is the same as the connected repeater by using a preset interface protocol, and/or receive the And the control signaling sent by the other driver, where the sending the control signaling to the another driver includes at least one of: sending, when the driver has a transponder parameter modification requirement, to the another driver Parameter modification negotiation signaling; sending shared information query signaling to the another driver; receiving the control signaling sent by the another driver, comprising at least one of: receiving the another driver to modify according to the parameter Negotiating the negotiation response information returned by the signaling; receiving an information query response message played by the another driver according to the shared information query signaling.
18、 根据权利要求 11 13任一项所述的 SDN网络, 其特征在于, 所述驱动 器还用于: 当接收到控制器发送的转发参数查询信令时,根据自身存储的转发器的参数 信息生成相应的转发参数应答信息, 并将所述转发参数应答信息反馈至控制器。 The SDN network according to any one of claims 11 to 13, wherein the driver is further configured to: when receiving the forwarding parameter query signaling sent by the controller, according to the parameter information of the transponder stored by the controller Generating corresponding forwarding parameter response information, and feeding back the forwarding parameter response information to the controller.
19、一种基于软件定义网络 S D的转发控制方法, 所述 SDN网络包括实现 报文转发的转发器, 和对所述转发器进行转发控制的控制器; 其特征在于, 所述 SDN网络还包括至少一个实现对转发器的驱动控制的驱动器; 所述转发控制方法包括: 所述驱动器中与控制器连接的第一驱动器接收控制器通过第一控制转发协 议发送的第一转发控制信令; 所述第一驱动器将接收到的第一转发控制信令转换为符合第二控制转发协 议的格式要求的第二转发控制信令; A forwarding control method based on a software-defined network SD, wherein the SDN network includes a forwarder that implements packet forwarding, and a controller that performs forwarding control on the forwarder. The SDN network further includes At least one driver that implements drive control of the repeater; the forwarding control method includes: the first driver connected to the controller in the driver receives first forwarding control signaling sent by the controller through the first control forwarding protocol; Translating, by the first driver, the received first forwarding control signaling into a second forwarding control signaling that meets a format requirement of the second control forwarding protocol;
所述第一驱动器将所述第二转发控制信令通过第二控制转发协议发送至相 应的转发器; 其中, 所述第一控制转发协议为控制器所支持的控制转发协议; 所述第二控 制转发协议为转发器所支持的控制转发协议。 The first driver sends the second forwarding control signaling to the corresponding forwarder by using the second control forwarding protocol; wherein the first control forwarding protocol is a control forwarding protocol supported by the controller; The control forwarding protocol is a control forwarding protocol supported by the repeater.
20、 根据权利要求 19所述的转发控制方法, 其特征在于, 还包括: 所述驱动器根据其服务的转发器的参数信息,将自身配置为与其服务的转发 器相对应的虚拟转发器,并将所述虚拟转发器作为所述第一驱动器与所述控制器 建立连接。 The forwarding control method according to claim 19, further comprising: the driver configuring itself as a virtual transponder corresponding to the transponder served by the transponder according to the parameter information of the transponder it serves, and The virtual repeater is used as the first driver to establish a connection with the controller.
21、根据权利要求 19或 20所述的转发控制方法, 其特征在于, 所述第一驱 动器将接收到的第一转发控制信令转换为符合第二控制转发协议的格式要求的 第二转发控制信令, 包括: 当转发器包括多个时,第一驱动器根据第一控制转发协议和第二控制转发协 议之间的预设映射关系,将所述第一转发控制信令转换为对应于不同转发器的多 条第二转发控制信令。 The forwarding control method according to claim 19 or 20, wherein the first driver converts the received first forwarding control signaling into a second forwarding control that conforms to a format requirement of the second control forwarding protocol. The signaling includes: when the repeater includes multiple, the first driver converts the first forwarding control signaling to correspond to different according to a preset mapping relationship between the first control forwarding protocol and the second control forwarding protocol Multiple second forwarding control signaling of the repeater.
22、 根据权利要求 19或 20所述的转发控制方法, 其特征在于, 还包括: 所述第一驱动器根据自身存储的转发器的参数信息,判断接收到的第一转发 控制信令所对应的转发规则是否符合相应转发器的功能; The forwarding control method according to claim 19 or 20, further comprising: determining, by the first driver, the received first forwarding control signaling according to the parameter information of the forwarder stored by the first driver Whether the forwarding rule conforms to the function of the corresponding forwarder;
如果第一转发控制信令所对应的转发规则不符合相应转发器的功能,则第一 驱动器向控制器返回控制失败消息,否则执行所述将接收到的第一转发控制信令 转换为符合第二控制转发协议的格式要求的第二转发控制信令。  If the forwarding rule corresponding to the first forwarding control signaling does not meet the function of the corresponding forwarding device, the first driver returns a control failure message to the controller, otherwise, performing the converting the first forwarding control signaling to be consistent with the first The second forwarding control signaling required by the format of the control forwarding protocol.
23、 根据权利要求 19或 20所述的转发控制方法, 其特征在于, 还包括: 所述驱动器根据自身存储的转发器的参数信息生成参数配置信令,并将所述 参数配置信令发送至相应的转发器, 以配置和 /或修改相应的转发器的参数。 The forwarding control method according to claim 19 or 20, further comprising: the driver generating parameter configuration signaling according to the parameter information of the forwarder stored by the driver, and sending the parameter configuration signaling to Corresponding repeaters to configure and/or modify the parameters of the corresponding repeater.
24、 根据权利要求 19或 20所述的转发控制方法, 其特征在于, 还包括: 所述驱动器通过预设接口协议向所连接的转发器相同的另一驱动器发送控 制信令, 和 /或, 接收所述另一驱动器发送的控制信令; 其中, 所述驱动器向所述另一驱动器发送控制信令, 包括以下至少一项: 当所述驱动器具有转发器参数修改需求时,向所述另一驱动器发送参数修改 协商信令; 向所述另一驱动器发送共享信息查询信令; 所述驱动器接收所述另一驱动器发送的控制信令, 包括以下至少一项: 接收所述另一驱动器根据所述参数修改协商信令返回的协商应答信息; 接收所述另一驱动器根据所述共享信息查询信令发挥的信息查询应答消息。 The forwarding control method according to claim 19 or 20, further comprising: the driver transmitting control signaling to another driver of the same connected repeater through a preset interface protocol, and/or Receiving control signaling sent by the another driver; wherein the driver sends control signaling to the another driver, including at least one of the following: Transmitting parameter modification negotiation signaling to the other driver when the driver has a repeater parameter modification requirement; transmitting shared information query signaling to the another driver; the driver receiving the control sent by the another driver The signaling includes at least one of the following: receiving the negotiation response information returned by the another driver according to the parameter modification negotiation signaling; and receiving an information query response message played by the another driver according to the shared information query signaling.
25、 根据权利要求 19或 20所述的转发控制方法, 其特征在于, 还包括: 当接收到控制器发送的转发参数查询信令时,所述驱动器根据自身存储的转 发器的参数信息生成相应的转发参数应答信息,并将所述转发参数应答信息反馈 至控制器。 The forwarding control method according to claim 19 or 20, further comprising: when receiving the forwarding parameter query signaling sent by the controller, the driver generates corresponding according to the parameter information of the transponder stored by the driver Forwarding parameter response information and feeding back the forwarding parameter response information to the controller.
26、 一种驱动器, 应用于软件定义网络 S D, 所述 SDN网络包括实现报文 转发的转发器, 和根据转发规则对所述转发器执行转发控制的控制器; 其特征在 于, 包括: 信令接收单元, 用于当所述驱动器作为第一驱动器与控制器连接时, 接收控 制器通过第一控制转发协议发送的第一转发控制信令; 信令转换单元,用于将所述信令接收单元接收到的第一转发控制信令转换为 符合第二控制转发协议的格式要求的第二转发控制信令; 信令发送单元,用于将所述第二转发控制信令通过第二控制转发协议发送至 相应的转发器; 其中, 所述第一控制转发协议为控制器所支持的控制转发协议; 所述第二控 制转发协议为转发器所支持的控制转发协议。 26, a driver, is applied to a software-defined network SD, the SDN network includes a forwarder that implements packet forwarding, and a controller that performs forwarding control on the forwarder according to a forwarding rule; and the method includes: signaling a receiving unit, configured to: when the driver is connected to the controller as the first driver, receive the first forwarding control signaling sent by the controller by using the first control forwarding protocol; and the signaling conversion unit is configured to receive the signaling The first forwarding control signaling received by the unit is converted into the second forwarding control signaling that meets the format requirement of the second control forwarding protocol; the signaling sending unit is configured to forward the second forwarding control signaling by using the second control The protocol is sent to the corresponding forwarder; wherein the first control forwarding protocol is a control forwarding protocol supported by the controller; and the second control forwarding protocol is a control forwarding protocol supported by the forwarder.
27、 根据权利要求 26所述的驱动器, 其特征在于, 还包括: 自我配置单元, 用于根据所述驱动器服务的转发器的参数信息, 将自身配置 为与其服务的转发器相对应的虚拟转发器,并将所述虚拟转发器作为所述第一驱 动器与所述控制器建立连接。 The drive according to claim 26, further comprising: a self-configuring unit, configured to configure itself as a virtual forwarding corresponding to the transponder served by the transponder according to the parameter information of the transponder served by the driver And establishing a connection with the virtual forwarder as the first driver.
28、根据权利要求 26或 27所述的驱动器, 其特征在于, 当所述驱动器作为 第一驱动器与多个转发器连接时, 所述信令转换单元具体用于: 根据第一控制转 发协议和第二控制转发协议之间的预设映射关系,将所述第一转发控制信令转换 为对应于不同转发器的多条第二转发控制信令; 所述信令发送单元具体用于,将所述信令转换单元生成的多条第二转发控制 信令分别通过相应的第二控制转发协议发送至相应的转发器。 The driver according to claim 26 or 27, wherein, when the driver is connected as a first driver to a plurality of transponders, the signaling conversion unit is specifically configured to: according to the first control forwarding protocol and The second control forwarding protocol is configured to convert the first forwarding control signaling into multiple second forwarding control signalings corresponding to different repeaters; the signaling sending unit is specifically configured to: The plurality of second forwarding control signalings generated by the signaling conversion unit are respectively sent to the corresponding forwarders through corresponding second control forwarding protocols.
29、 根据权利要求 26或 27所述的驱动器, 其特征在于, 还包括: 信令判断单元, 用于根据自身存储的转发器的参数信息, 判断接收到的第一 转发控制信令所对应的转发规则是否符合相应转发器的功能;如果第一转发控制 信令所对应的转发规则不符合相应转发器的功能, 则向控制器返回控制失败消 息; 否则, 触发所述信令转换单元和 /或信令发送单元。 The driver according to claim 26 or 27, further comprising: a signaling determining unit, configured to determine, according to parameter information of the transponder stored by itself, the received first forwarding control signaling Whether the forwarding rule conforms to the function of the corresponding forwarder; if the forwarding rule corresponding to the first forwarding control signaling does not conform to the function of the corresponding forwarder, returning a control failure message to the controller; otherwise, triggering the signaling conversion unit and/or Or signaling unit.
30、 根据权利要求 26或 27所述的驱动器, 其特征在于, 还包括: 参数配置单元, 用于根据自身存储的转发器的参数信息生成参数配置信令, 并将所述参数配置信令发送至相应的转发器, 以配置和 /或修改相应的转发器的 参数。 The driver according to claim 26 or 27, further comprising: a parameter configuration unit, configured to generate parameter configuration signaling according to parameter information of the transponder stored by itself, and send the parameter configuration signaling Go to the appropriate repeater to configure and/or modify the parameters of the corresponding repeater.
31、 根据权利要求 26或 27所述的驱动器, 其特征在于, 还包括: 信息互通单元,用于通过预设接口协议向所连接的转发器相同的另一驱动器 发送控制信令, 和 /或, 接收所述另一驱动器发送的控制信令; 其中, 所述向所述另一驱动器发送控制信令, 包括以下至少一项: 当所述驱动器具有转发器参数修改需求时,向所述另一驱动器发送参数修改 协商信令; 向所述另一驱动器发送共享信息查询信令; 所述接收所述另一驱动器发送的控制信令, 包括以下至少一项: 接收所述另一驱动器根据所述参数修改协商信令返回的协商应答信息; 接收所述另一驱动器根据所述共享信息查询信令发挥的信息查询应答消息。 The driver according to claim 26 or 27, further comprising: an information interworking unit, configured to send control signaling to another driver that is the same as the connected repeater by using a preset interface protocol, and/or Receiving control signaling sent by the another driver, where the sending the control signaling to the another driver includes at least one of: when the driver has a transponder parameter modification requirement, to the other a driver sends a parameter modification negotiation signaling; and sends the shared information query signaling to the another driver; the receiving the control signaling sent by the another driver, comprising at least one of the following: receiving the another driver according to the Declaring the negotiation response information returned by the negotiation signaling; Receiving an information query response message played by the another driver according to the shared information query signaling.
32、 根据权利要求 26或 27所述的驱动器, 其特征在于, 还包括: 参数查询单元, 用于在接收到控制器发送的转发参数查询信令时, 根据自身 存储的转发器的参数信息生成相应的转发参数应答信息,并将所述转发参数应答 信息反馈至控制器。 The driver according to claim 26 or 27, further comprising: a parameter query unit, configured to generate, according to parameter information of the transponder stored by the controller, when receiving the forwarding parameter query signaling sent by the controller The corresponding parameter response information is forwarded, and the forwarding parameter response information is fed back to the controller.
PCT/CN2014/079671 2014-06-11 2014-06-11 转发控制方法、驱动器及sdn网络 forwarding control method, driver and sdn network WO2015188331A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201480034374.3A CN105379198A (en) 2014-06-11 2014-06-11 Forwarding control method, driver and SDN
PCT/CN2014/079671 WO2015188331A1 (en) 2014-06-11 2014-06-11 转发控制方法、驱动器及sdn网络 forwarding control method, driver and sdn network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/079671 WO2015188331A1 (en) 2014-06-11 2014-06-11 转发控制方法、驱动器及sdn网络 forwarding control method, driver and sdn network

Publications (1)

Publication Number Publication Date
WO2015188331A1 true WO2015188331A1 (en) 2015-12-17

Family

ID=54832709

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079671 WO2015188331A1 (en) 2014-06-11 2014-06-11 转发控制方法、驱动器及sdn网络 forwarding control method, driver and sdn network

Country Status (2)

Country Link
CN (1) CN105379198A (en)
WO (1) WO2015188331A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019075678A1 (en) * 2017-10-18 2019-04-25 深圳市云中飞网络科技有限公司 Information processing method and device, mobile terminal and non-volatile readable storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109818762B (en) * 2017-11-20 2022-03-08 中国电信股份有限公司 Method, adapter and system for realizing automatic registration of SDN controller
DE102019120827A1 (en) * 2018-08-10 2020-02-13 Oerlikon Textile Gmbh & Co. Kg Galette
CN111092765B (en) * 2019-12-19 2022-11-08 迈普通信技术股份有限公司 Intelligent driving method, system, electronic device and readable storage medium
WO2024065416A1 (en) * 2022-09-29 2024-04-04 富士通株式会社 Switch method and apparatus for repeater

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933425A (en) * 2006-10-10 2007-03-21 华为技术有限公司 Module and method for realizing equipment access interface, equipment access system and method
CN103051565A (en) * 2013-01-04 2013-04-17 中兴通讯股份有限公司 Framework system of grade software defined network software controller and implementation method thereof
CN103095565A (en) * 2012-10-18 2013-05-08 中兴通讯股份有限公司 Software definition network operating system and implement method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338163B (en) * 2013-07-16 2016-03-23 清华大学 Support the software defined network controller of dynamic elasticity scheduling of resource
CN103780517A (en) * 2014-01-20 2014-05-07 江苏省未来网络创新研究院 Driving system and driving method for cooperative work of controller and exchanger under different versions of OpenFlow

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933425A (en) * 2006-10-10 2007-03-21 华为技术有限公司 Module and method for realizing equipment access interface, equipment access system and method
CN103095565A (en) * 2012-10-18 2013-05-08 中兴通讯股份有限公司 Software definition network operating system and implement method thereof
CN103051565A (en) * 2013-01-04 2013-04-17 中兴通讯股份有限公司 Framework system of grade software defined network software controller and implementation method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019075678A1 (en) * 2017-10-18 2019-04-25 深圳市云中飞网络科技有限公司 Information processing method and device, mobile terminal and non-volatile readable storage medium

Also Published As

Publication number Publication date
CN105379198A (en) 2016-03-02

Similar Documents

Publication Publication Date Title
CN106936857B (en) Connection management method of hybrid cloud, SDN controller and hybrid cloud system
US11005752B2 (en) Packet transmission
US20140068045A1 (en) Network system and virtual node migration method
EP3327994B1 (en) Virtual network management
WO2016146077A1 (en) Dynamic route configuration method, device and system
TW201824827A (en) Message mirroring method based on SDN and network flow monitoring management system
US9960998B2 (en) Forwarding packet in stacking system
EP2922254B1 (en) Method for establishing control channel, forwarding point and controller
WO2015149604A1 (en) Load balancing method, apparatus and system
WO2014206105A1 (en) Virtual switch method, relevant apparatus, and computer system
WO2015117385A1 (en) Network virtualization processing method, device and system
WO2015188331A1 (en) 转发控制方法、驱动器及sdn网络 forwarding control method, driver and sdn network
WO2017128953A1 (en) Server virtualization network sharing apparatus and method
WO2015180154A1 (en) Network control method and apparatus
JP5866083B1 (en) Control method, control apparatus and processor in software definition network
WO2023056722A1 (en) Distributed firewall definition method and system
CN104301129A (en) Dynamic host configuration method and system in software defined network
US9537751B2 (en) Divided hierarchical network system based on software-defined networks
CN114745255B (en) Hardware chip, DPU, server, communication method and related device
WO2023123899A1 (en) Network slice access method, apparatus and system, and storage medium
WO2021098727A1 (en) Network deployment method and system
WO2015100593A1 (en) Message transmission method, apparatus and communication system
Uddin et al. SDN-based service automation for IoT
EP2924925A1 (en) Communication system, virtual-network management device, communication node, and communication method and program
CN102710518B (en) The method and system that NAT penetrates are realized under wide area network

Legal Events

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

Ref document number: 14894365

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: 14894365

Country of ref document: EP

Kind code of ref document: A1