WO2015157947A1 - Software defined network based networking method and device - Google Patents

Software defined network based networking method and device Download PDF

Info

Publication number
WO2015157947A1
WO2015157947A1 PCT/CN2014/075524 CN2014075524W WO2015157947A1 WO 2015157947 A1 WO2015157947 A1 WO 2015157947A1 CN 2014075524 W CN2014075524 W CN 2014075524W WO 2015157947 A1 WO2015157947 A1 WO 2015157947A1
Authority
WO
WIPO (PCT)
Prior art keywords
identifier
forwarding device
network
network forwarding
controller
Prior art date
Application number
PCT/CN2014/075524
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 CN201480000561.XA priority Critical patent/CN105264839B/en
Priority to PCT/CN2014/075524 priority patent/WO2015157947A1/en
Publication of WO2015157947A1 publication Critical patent/WO2015157947A1/en

Links

Definitions

  • the embodiments of the present invention relate to communication technologies, and in particular, to a networking method and device based on a software-defined network. Background technique
  • SDN Software Defined Network
  • the network control layer in the SDN is extracted by the control functions in the network forwarding devices such as the original switch and router, and is implemented by an independent controller.
  • the controller is the core component of SDN.
  • the controller exists in the form of a software platform and enjoys centralized control. Its algorithms, logic and rules are configurable. After receiving the command from the controller, the network forwarding device updates the local rules and completes the data forwarding.
  • the controller address is manually configured to the network forwarding device, and the network forwarding device sends a connection request to the controller specified by the address, after being negotiated with the controller. , establish the connection relationship of the control plane.
  • the networking mode of the prior art is implemented based on the manual mode, and the automatic networking based on the software-defined network cannot be realized. In the case of a large network size, not only is the implementation complicated, but also a large amount of labor is consumed. Summary of the invention
  • the embodiment of the invention provides a networking method and device based on a software-defined network, and implements an automatic networking based on a software-defined network.
  • an embodiment of the present invention provides a networking method based on a software-defined network, including:
  • the network scheduling device generates an identifier pair for the source controller and the network forwarding device to perform networking;
  • the network scheduling device transmits the first identifier in the identifier pair to the source controller, Sending the second identifier of the identifier pair to the network forwarding device, the first identifier and the second identifier have a matching relationship, so that the source controller and the network forwarding device are The matching relationship between the first identifier and the second identifier is performed on the network.
  • the network scheduling device sends a first identifier of the identifier pair to a source controller, where the identifier is aligned After the second identifier is sent to the network forwarding device, the method further includes:
  • the network scheduling device receives the release control right request information sent by the source controller; wherein, after the source controller and the network forwarding device are successfully networked, the source controller has control on the network forwarding device Right
  • the network scheduling device selects a target controller and the network forwarding device to perform networking in the registered controller according to the state information of the software-defined network;
  • the network scheduling device receives a networking success notification message sent by the target controller, and sends release control right response information to the source controller.
  • the network scheduling device generates a network forwarding device and a source controller for networking Before the identifier pair, it also includes:
  • the network scheduling device receives identifier request information sent by the network forwarding device, where the identifier request information includes an identifier of the network forwarding device;
  • the network scheduling device selects, according to the state information of the software-defined network, the source controller and the network forwarding device to perform networking in the registered controller.
  • the method before the network scheduling device receives the identifier request information sent by the network forwarding device, the method further includes:
  • the network scheduling device obtains the legal network forwarding device identifier list, where the legal network forwarding device identifier list is used to authenticate the network forwarding device; Receiving, by the network scheduling device, a registration request sent by the source controller, and sending a registration success response to the source controller;
  • the network scheduling device receives a registration request sent by the target controller, and sends a registration success response to the target controller.
  • the network scheduling device generates a source controller and The network forwarding device performs the identifier pair of the networking, including any of the following:
  • the network scheduling device generates the identifier pair according to a preset encryption algorithm.
  • the network scheduling device The first identifier is sent to the source controller, and before the second identifier in the identifier pair is sent to the network forwarding device, the method further includes:
  • the network scheduling device generates a connection address of the network forwarding device, where the connection address belongs to the same network segment as the default address of the source controller;
  • the network scheduling device sends the second identifier in the identifier pair to the network forwarding device, including:
  • the network scheduling device transmits a connection address of the network forwarding device and a second identifier in the identifier pair to a network forwarding device.
  • the method further includes:
  • the second identifier sent by the network scheduling device broadcasting, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes the second identifier
  • the identifier and the address information of the network forwarding device after receiving the source controller, after determining that the first identifier and the second identifier satisfy the matching relationship, sending, according to the address information of the network forwarding device
  • the first source controller matching information, the first source controller matching information includes the first identifier and address information of the source controller, and determining the first identifier sent by the source controller
  • the second identifier satisfies the matching relationship, and establishes a connection with the source controller according to the address information of the source controller; or Receiving, by the source controller, the first identifier sent by the network scheduling device, and broadcasting, by the control plane of the software-defined network, second source controller matching information, where the second source controller matching information includes the first The identifier and the address information of the source control are sent
  • an embodiment of the present invention provides a networking method based on a software-defined network, including:
  • the network forwarding device receives a second identifier in the identifier pair sent by the network scheduling device; the identifier pair includes a first identifier and the second identifier, and the first identifier is the network scheduling device An identifier sent by the source controller, the first identifier and the second identifier having a matching relationship;
  • the network forwarding device broadcasts, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes the second identifier and address information of the network forwarding device;
  • the first source controller matching information includes the first identifier and address information of the source controller
  • the method further includes: the network forwarding device receiving, by the source controller, a second source controller that is broadcasted by a control plane of the software-defined network Information, the second source controller matching information includes the first identifier and address information of the source controller;
  • the network forwarding device determines that the first identifier and the second identifier satisfy the a matching relationship, the second network forwarding device matching information is sent to the source controller according to the address information of the source controller, where the second network forwarding device matching information includes the second identifier and the network forwarding device The address information, so that the source controller establishes a connection with the network forwarding device according to the matching relationship between the first identifier and the second identifier and the address information of the network forwarding device.
  • the network forwarding device receives the second identifier in the identifier pair sent by the network scheduling device Before the character, it also includes:
  • the network forwarding device sends identifier request information to the network scheduling device, where the identifier request information includes an identifier of the network forwarding device, so that the network scheduling device authenticates the network forwarding device.
  • the source controller is configured according to the source controller
  • the working state triggers a control right handover to the network forwarding device
  • the source controller sends a release control right request message to the network scheduling device
  • the network scheduling device sends the first identifier to the target controller
  • the method further includes:
  • first target controller matching information that is broadcast by the target controller on a control plane of the software-defined network, where the first target controller matching information includes the first identifier and the target Address information of the controller;
  • the network forwarding device Transmitting, by the network forwarding device, third network forwarding device matching information to the target controller according to the address information of the target controller, where the third network forwarding device matching information includes the second identifier and the network Forwarding the address information of the device, so that the target controller establishes a connection with the network forwarding device according to the matching relationship between the first identifier and the second identifier and the address information of the network forwarding device.
  • the address information of the target controller includes a default address of the target controller;
  • the address information of the source controller includes a default address of the source controller;
  • the address information of the network forwarding device includes a default address of the network forwarding device or a connection allocated by the network scheduling device to the network forwarding device.
  • an embodiment of the present invention provides a networking method based on a software-defined network, including:
  • the source controller receives the first identifier in the pair of identifiers sent by the network scheduling device; the identifier pair includes the first identifier and the second identifier, and the second identifier is the network scheduling device An identifier sent by the network forwarding device, where the first identifier and the second identifier have a matching relationship;
  • the source controller broadcasts second source controller matching information on a control plane of the software defined network, the second source controller matching information including the first identifier and the source controlled address
  • the source controller receives, by the network forwarding device, a second network forwarding device that is sent according to the address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship.
  • Information, the second network forwarding device matching information includes the second identifier and address information of the network forwarding device;
  • the method further includes: the source controller receiving, by the network forwarding device, a first network forwarding device that is broadcasted by a control plane of the software-defined network Information, the first network forwarding device matching information includes a second identifier and address information of the network forwarding device;
  • the source controller determines that the first identifier and the second identifier satisfy the matching relationship
  • the source controller sends first source controller matching information to the network forwarding device according to address information of the network forwarding device, where the first source controller matching information includes the first identifier and the source Address information of the controller, so that the network forwarding device establishes and matches the matching relationship between the first identifier and the second identifier and the address information of the source control The connection of the source controller.
  • the method further includes:
  • the source controller triggers a control right switchover of the network forwarding device according to an operating state of the source controller
  • the source controller receives the release control right response information sent by the network scheduling device after the target controller establishes a connection with the network forwarding device.
  • the method further includes:
  • the source controller triggers a control right switchover of the network forwarding device according to an operating state of the source controller
  • the source controller determines a target controller, and sends the first identifier to the target controller, so that the target controller establishes a match according to a matching relationship between the first identifier and the second identifier
  • the connection of the network forwarding device
  • the source controller receives a notification message that the target controller sent by the target controller successfully establishes a connection with the network forwarding device;
  • the source controller releases control of the network forwarding device.
  • the address information of the target controller includes a default address of the target controller
  • the address information of the source controller includes a default address of the source controller
  • the address information of the network forwarding device includes a default address of the network forwarding device or a connection address allocated by the network scheduling device to the network forwarding device, where the connection address belongs to the same network as the default address of the source controller. segment.
  • the present invention provides a networking method based on a software-defined network, including: the target controller receives the first identifier pair sent by the network scheduling device or the source controller.
  • An identifier, the identifier pair includes a first identifier and a second identifier, where the second identifier is an identifier sent by the network scheduling device to a network forwarding device, where the first identifier is a source controller
  • the target controller broadcasts first target controller matching information on a control plane of the software defined network, the first target controller matching information including the first identifier and address information of the target controller;
  • the third network forwarding device Receiving, by the target controller, the third network forwarding device that is sent according to the address information of the target controller after the network forwarding device determines that the first identifier and the second identifier satisfy the matching relationship Information, the third network forwarding device matching information includes the second identifier and address information of the network forwarding device;
  • the method further includes:
  • the target controller sends a networking success notification message to the source controller to cause the source controller to release control.
  • the address information of the target controller includes a default address of the target controller
  • the address information of the network forwarding device includes a default address of the network forwarding device or a connection address allocated by the network scheduling device to the network forwarding device, where the connection address belongs to the same network as the default address of the source controller. segment.
  • the present invention provides a network scheduling device, including:
  • a generating module configured to generate an identifier pair for networking between the source controller and the network forwarding device
  • An identifier sending module configured to send the first identifier in the identifier pair to source control Transmitting the second identifier in the identifier pair to the network forwarding device, the first identifier and the second identifier having a matching relationship, so that the source controller and the network forwarding device And performing networking according to the matching relationship between the first identifier and the second identifier.
  • the method further includes: a receiving module, configured to send, by the identifier sending module, the first identifier in the identifier pair to source control After transmitting the second identifier of the identifier pair to the network forwarding device, receiving the release control right request information sent by the source controller, where the source controller and the network forwarding device network After the success, the source controller has control over the network forwarding device;
  • a selection module configured to select, according to the state information of the software-defined network, a target controller and the network forwarding device to perform networking in the registered controller;
  • the identifier sending module is further configured to send the first identifier to the target controller, so that the target controller and the network forwarding device are configured according to the first identifier and the second identifier The matching relationship of the characters is organized;
  • the receiving module is further configured to: receive a network success notification message sent by the target controller, and send release control right response information to the source controller.
  • the receiving module is further configured to generate, in the generating module, a network forwarding device Receiving, by the source controller, the identifier request information sent by the network forwarding device, where the identifier request information includes the identifier of the network forwarding device;
  • the method further includes: an authentication module, configured to determine, according to the identifier of the network forwarding device and the legal network forwarding device identifier list, that the network forwarding device passes the authentication;
  • the selection module is further configured to select, according to the state information of the software-defined network, the source controller and the network forwarding device to perform networking in the registered controller.
  • the network forwarding device receives the second identifier sent by the network scheduling device, in a software definition
  • the control plane of the network broadcasts the first network forwarding device matching information, where the first network forwarding device matching information includes the second identifier and address information of the network forwarding device, and the receiving the source controller determines the first An identifier and the second identifier are full
  • the first source controller matching information sent according to the address information of the network forwarding device the first source controller matching information includes the first identifier and an address of the source controller Determining that the first identifier sent by the source controller and the second identifier satisfy the matching relationship, and establishing a connection with the source controller according to the address information of the source controller; or
  • the identifier and the address information of the source control are sent by the network forwarding device according to the address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship
  • the second network forwarding device matching information where the second network forwarding device matching information includes the second identifier and address information of the network forwarding device, and determining the second identifier sent by the network forwarding device
  • the first identifier satisfies the matching relationship, and establishes a connection with the network forwarding device according to the address information of the network forwarding device.
  • a sixth aspect of the present invention provides a network forwarding device, including:
  • a receiving module configured to receive a second identifier in an identifier pair sent by the network scheduling device; the identifier pair includes a first identifier and the second identifier, where the first identifier is the network scheduling An identifier sent by the device to the source controller, the first identifier and the second identifier having a matching relationship;
  • a broadcast module configured to broadcast, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes the second identifier and address information of the network forwarding device;
  • the receiving module is further configured to: receive, by the source controller, a first source that is sent according to address information of the network forwarding device after determining that the first identifier and the second identifier satisfy the matching relationship
  • the controller matches the information, where the first source controller matching information includes the first identifier and address information of the source controller;
  • a processing module configured to determine that the first identifier and the second identifier sent by the source controller meet the matching relationship, and establish, with the source controller, the source controller according to the address information of the source controller connection.
  • the receiving module The block is further configured to receive second source controller matching information that is broadcast by the source controller on a control plane of the software-defined network, where the second source controller matching information includes the first identifier and the source Address information of the controller;
  • the processing module is further configured to: determine that the first identifier and the second identifier meet the matching relationship, and send a second network forwarding device to the source controller according to address information of the source controller Matching information, the second network forwarding device matching information includes the second identifier and address information of the network forwarding device, so that the source controller is configured according to the first identifier and the second identifier
  • the matching relationship and the address information of the network forwarding device establish a connection with the network forwarding device.
  • the receiving module is further configured to: control, by the source controller, according to the source The working state of the device triggers a control right handover to the network forwarding device, the source controller sends a release control right request message to the network scheduling device, and the network scheduling device sends the first identifier to the target controller
  • the network forwarding device receives the first target controller matching information broadcast by the target controller on the control plane of the software-defined network.
  • the first target controller matching information includes the first identifier and address information of the target controller;
  • the processing module is further configured to: determine that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship;
  • a sending module configured to send third network forwarding device matching information to the target controller according to the address information of the target controller, where the third network forwarding device matching information includes the second identifier and The network forwarding device address information, so that the target controller establishes with the network forwarding device according to the matching relationship between the first identifier and the second identifier and the address information of the network forwarding device. Connection.
  • an embodiment of the present invention provides a controller, where the controller is a source controller, and includes:
  • a receiving module configured to receive a first identifier in an identifier pair sent by a network scheduling device; the identifier pair includes the first identifier and a second identifier, and the second identifier is the network scheduling An identifier sent by the device to the network forwarding device, where the first identifier and the second identifier have a matching relationship; a broadcast module, configured to broadcast second source controller matching information on a control plane of the software-defined network, where the second source controller matching information includes the first identifier and the source-controlled address
  • the receiving module is further configured to: receive, by the network forwarding device, a second network that is sent according to address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship Forwarding device matching information, where the second network forwarding device matching information includes the second identifier and address information of the network forwarding device;
  • a processing module configured to determine that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establish, according to address information of the network forwarding device, a network forwarding device connection.
  • the receiving module is further configured to: receive, by the network forwarding device, first network forwarding device matching information that is broadcasted by a control plane of the software-defined network, where the first network forwarding device matching information includes a second identifier and the Address information of the network forwarding device;
  • the processing module is further configured to determine that the first identifier and the second identifier satisfy the matching relationship
  • the first sending module is configured to send first source controller matching information to the network forwarding device according to the address information of the network forwarding device, where the first source controller matching information includes the first identifier And the address information of the source controller, so that the network forwarding device establishes with the source controller according to the matching relationship between the first identifier and the second identifier and the address information of the source control Connection.
  • the method further includes:
  • a first switching module configured to trigger a control right handover to the network forwarding device according to an operating state of the source controller after the processing module establishes a connection with the network forwarding device;
  • a second sending module configured to send a release control right request message to the network scheduling device, to enable the network scheduling device to send the first identifier to a target controller
  • the receiving module is further configured to: receive release control right response information sent by the network scheduling device after the target controller establishes a connection with the network forwarding device.
  • the method further includes:
  • a second switching module configured to trigger a control right handover to the network forwarding device according to an operating state of the source controller after the processing module establishes a connection with the network forwarding device;
  • a third sending module configured to determine a target controller, and send the first identifier to the target controller, so that the target controller performs a matching relationship according to the first identifier and the second identifier Establishing a connection with the network forwarding device;
  • the receiving module is further configured to: receive a notification message that the target controller sent by the target controller successfully establishes a connection with the network forwarding device;
  • the processing module is further configured to release control of the network forwarding device.
  • the present invention provides a controller, where the controller is a target controller, including: a receiving module, configured to receive a first identifier in an identifier pair sent by a network scheduling device or a source controller, The identifier pair includes a first identifier and a second identifier, where the second identifier is an identifier sent by the network scheduling device to the network forwarding device, where the first identifier is a source controller scheduling the network An identifier sent by the device, the first identifier and the second identifier have a matching relationship;
  • a broadcast module configured to broadcast, in a control plane of the software-defined network, first target controller matching information, where the first target controller matching information includes the first identifier and address information of the target controller;
  • the receiving module is further configured to: receive, by the network forwarding device, a third network that is sent according to the address information of the target controller after determining that the first identifier and the second identifier satisfy the matching relationship Forwarding device matching information, where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device;
  • a processing module configured to determine that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establish, according to address information of the network forwarding device, a network forwarding device connection.
  • the method further includes: a sending module, after the processing module establishes a connection with the network forwarding device,
  • the ninth aspect of the present invention provides a networking system based on a software-defined network, including: a network scheduling device, and network forwarding. Device, source controller, where:
  • the network scheduling device is configured to generate an identifier pair for networking between the source controller and the network forwarding device, and send the first identifier in the identifier pair to the source controller, where the identifier pair is The second identifier is sent to the network forwarding device, and the first identifier and the second identifier have a matching relationship;
  • the network forwarding device is configured to receive a second identifier of the identifier pair sent by the network scheduling device, and broadcast, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes The second identifier and the address information of the network forwarding device, after receiving the source controller, after determining that the first identifier and the second identifier satisfy the matching relationship, according to the network forwarding device First source controller matching information sent by the address information, the first source controller matching information includes the first identifier and address information of the source controller, and determining the number sent by the source controller An identifier and the second identifier satisfy the matching relationship, and establishing a connection with the source controller according to the address information of the source controller;
  • the source controller is configured to receive a first identifier in an identifier pair sent by the network scheduling device, and broadcast second source controller matching information on a control plane of the software-defined network, where the second source controller matching information includes The first identifier and the source controlled address information, after receiving the network forwarding device, after determining that the first identifier and the second identifier satisfy the matching relationship, according to the source controller
  • the second network forwarding device matching information sent by the address information, the second network forwarding device matching information includes the second identifier and address information of the network forwarding device, and determining the number sent by the network forwarding device
  • the second identifier and the first identifier satisfy the matching relationship, and establish a connection with the network forwarding device according to the address information of the network forwarding device.
  • the system further includes: a target controller;
  • the source controller is further configured to: trigger on the network according to an operating state of the source controller Controlling the switching of the control device, sending a release control right request message to the network scheduling device, and receiving the release control right response message sent by the network scheduling device after the target controller establishes a connection with the network forwarding device ;
  • the network scheduling device is further configured to: receive the release control right request information sent by the source controller; wherein, after the source controller and the network forwarding device are successfully networked, the source controller is configured to the network
  • the forwarding device has control, and according to the state information of the software-defined network, in the registered controller, the target controller is selected to be networked with the network forwarding device, and the first controller is sent to the target controller.
  • the target controller is configured to receive a first identifier in an identifier pair sent by the network scheduling device, and broadcast, in a control plane of the software-defined network, first target controller matching information, where the first target controller matches The information includes the first identifier and address information of the target controller, and the receiving, by the network forwarding device, after determining that the first identifier and the second identifier satisfy the matching relationship, according to the target
  • the third network forwarding device matching information sent by the address information of the controller where the third network forwarding device matching information includes the second identifier and the address information of the network forwarding device, and determining the location sent by the network forwarding device
  • the second identifier and the first identifier satisfy the matching relationship, establish a connection with the network forwarding device according to the address information of the network forwarding device, and send a networking success notification message to the network scheduling device. So that the network scheduling device sends a release control right response message to the source controller;
  • the network forwarding device is further configured to: receive first target controller matching information that is broadcast by the target controller on a control plane of the software-defined network, where the first target controller matching information includes the first identifier Determining, by the address information of the target controller, that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship, according to the address information of the target controller, to the The target controller sends a third network forwarding device matching information, where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device, so that the target controller is configured according to the first A matching relationship between the identifier and the second identifier and address information of the network forwarding device establishes a connection with the network forwarding device.
  • system further Including: target controller;
  • the source controller is further configured to: trigger a control right handover to the network forwarding device according to an operating state of the source controller, determine the target controller, and send the first identifier to the target controller So that the target controller establishes a connection with the network forwarding device according to a matching relationship between the first identifier and the second identifier, and receives the target controller sent by the target controller and The network forwarding device successfully establishes a connection notification message, and releases control of the network forwarding device;
  • the target controller is configured to receive a first identifier in an identifier pair sent by the source controller, and broadcast, in a control plane of the software-defined network, first target controller matching information, where the first target controller matches information Include the first identifier and the address information of the target controller, and after receiving the network forwarding device, after determining that the first identifier and the second identifier satisfy the matching relationship, according to the target control
  • the third network forwarding device matching information sent by the address information of the device, the third network forwarding device matching information includes the second identifier and address information of the network forwarding device, and determining the The second identifier and the first identifier satisfy the matching relationship, establish a connection with the network forwarding device according to the address information of the network forwarding device, and send a networking success notification message to the source controller, Taking the source controller to release control rights;
  • the network forwarding device is further configured to: receive first target controller matching information that is broadcast by the target controller on a control plane of the software-defined network, where the first target controller matching information includes the first identifier Determining, by the address information of the target controller, that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship, according to the address information of the target controller, to the The target controller sends a third network forwarding device matching information, where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device, so that the target controller is configured according to the first A matching relationship between the identifier and the second identifier and address information of the network forwarding device establishes a connection with the network forwarding device.
  • a network-defined network-based networking method and device are provided by the network scheduling device, where the network scheduling device generates an identifier pair for the source controller and the network forwarding device to perform networking, and the network scheduling device sets the first identifier of the identifier pair.
  • the symbol is sent to the source controller, and the second identifier in the identifier pair is sent to the network forwarding device, and the first identifier and the second identifier have a matching relationship, so that the source The controller and the network forwarding device perform networking according to the matching relationship between the first identifier and the second identifier.
  • it is not necessary to manually configure the controller address for the network forwarding device that is, no manual participation is required, and the implementation is simple.
  • Figure 1 is a schematic diagram of a system architecture of a software-defined network
  • FIG. 2 is a schematic flowchart of Embodiment 1 of a networking method based on a software-defined network according to the present invention
  • FIG. 3 is a schematic flowchart of Embodiment 2 of a networking method based on a software-defined network according to the present invention
  • FIG. 4 is a schematic diagram of a software-defined network according to the present invention.
  • FIG. 5 is a schematic flowchart of Embodiment 4 of a networking method based on a software-defined network according to the present invention;
  • FIG. 6 is a schematic diagram of initialization of a networking method based on a software-defined network according to the present invention;
  • FIG. 8 is a schematic diagram of Embodiment 2 of a control domain handover according to an embodiment of the present disclosure
  • Embodiment 9 is a schematic structural diagram of Embodiment 1 of a network scheduling device according to the present invention.
  • Embodiment 2 of a network scheduling device according to the present invention
  • FIG. 11 is a schematic structural diagram of Embodiment 1 of a network forwarding device according to the present invention.
  • Embodiment 12 is a schematic structural diagram of Embodiment 1 of a source controller according to the present invention.
  • Embodiment 13 is a schematic structural diagram of Embodiment 1 of an object controller according to the present invention.
  • Embodiment 3 of a network scheduling device is a schematic structural diagram of Embodiment 3 of a network scheduling device according to the present invention.
  • Embodiment 15 is a schematic structural diagram of Embodiment 2 of a network forwarding device according to the present invention.
  • Embodiment 16 is a schematic structural diagram of Embodiment 2 of a source controller according to the present invention.
  • Embodiment 17 is a schematic structural diagram of Embodiment 2 of an object controller according to the present invention.
  • FIG. 18 is a schematic diagram of a networking system based on a software-defined network according to the present invention. detailed description
  • Figure 1 is a schematic diagram of the system architecture of a software-defined network.
  • the software-defined network provided by this embodiment includes: a network scheduling device, multiple controllers C1-C3, and multiple network forwarding devices Sl-S4.
  • the network scheduling device and the plurality of controllers C1-C3 are located at the network control layer, and the network forwarding device is located at the network forwarding layer.
  • the network scheduling device may be a special type of controller, or a scheduling module or component integrated in the controller, mainly used for network authentication of the controller and the network forwarding device; generation and management of identifier pairs;
  • the status information of the network is distributed by identifiers, and the status information of the software-defined network includes network topology, service requirements, real-time network status, etc.; mapping storage of identifiers and device information;
  • Controllers C1-C3 in addition to the existing controller functions (topology discovery, device management, route calculation, policy management, quality of service (QoS) guarantee, etc.)
  • the network scheduling device applies an identifier, negotiates an identifier with the network forwarding device, and performs identifier matching.
  • each network forwarding device may specifically be a device having a forwarding function, such as a switch. In addition to the functions of the existing network forwarding device, it also negotiates identifiers with the controller and performs identifier matching and storage identification. Functions such as mapping of symbols and controller addresses.
  • the controller defines the core components of the network for the software.
  • the controller exists in the form of a software platform and enjoys centralized control.
  • the algorithm, logic and rules of the controller are configurable.
  • the network forwarding device After receiving the command from the controller, the network forwarding device updates the local rules and completes the data forwarding.
  • FIG. 2 is a schematic flowchart of Embodiment 1 of a networking method for a software-defined network according to the present invention.
  • the execution body of this embodiment is the network scheduling device in FIG. 1, and the network scheduling device may be composed of any software and/or hardware.
  • the method provided in this embodiment includes:
  • Step 201 The network scheduling device generates a network for the source controller and the network forwarding device to perform networking. Pair of identifiers;
  • Step 202 The network scheduling device sends a first identifier in the identifier pair to a source controller, and sends a second identifier in the identifier pair to a network forwarding device, where the first identifier is And the second identifier has a matching relationship, so that the source controller and the network forwarding device perform networking according to a matching relationship between the first identifier and the second identifier.
  • the network scheduling device generates an identifier pair for the source controller and the network forwarding device to perform networking.
  • the identifier pair includes a first identifier and a second identifier, the first identifier and the second identifier having a matching relationship.
  • the network scheduling device generates an identifier pair including the following possible implementation manners.
  • a possible implementation manner is: the network scheduling device generates an identifier pair according to a preset matching rule
  • the network scheduling device may customize the preset matching rule, and then generate an identifier pair according to the preset matching rule, and the identifier pair may specifically be a paired string sequence or the like.
  • Another possible implementation manner is: the network scheduling device generates the identifier pair according to a preset encryption algorithm.
  • the network scheduling device generates an identifier pair according to a preset encryption algorithm.
  • the default encryption algorithm can be DES, 3DES, RC2, RC4, IDEA, DSA, RSA, AES, BLOWFISH,
  • the identifier pair can be implemented as a key pair.
  • step 202 the network scheduling device sends the first identifier in the identifier pair to the source controller and the second identifier in the identifier pair to the network forwarding device.
  • the networking process may be initiated by the source controller by broadcasting the first identifier, or may be initiated by the network forwarding device by broadcasting the second identifier.
  • the source controller and the network forwarding device may perform networking according to a matching relationship between the first identifier and the second identifier.
  • the process of establishing a connection between the source controller and the network forwarding device does not need to specify the address of the other party in the controller or the network forwarding device, but resolves the address of the identifier through identifier negotiation, and initiates a specification definition to the address according to the parsed result.
  • Handshake request initiate connection.
  • the network scheduling device generates an identifier pair for the source controller and the network forwarding device to perform networking, and the network scheduling device will mark Sending the first identifier of the identifier pair to the source controller, and sending the second identifier of the identifier pair to the network forwarding device, the first identifier and the second identifier have a matching relationship, so that the source controller and the network
  • the forwarding device performs networking according to the matching relationship between the first identifier and the second identifier. In the case of a large network, it is not necessary to manually configure the controller address for the network forwarding device, that is, no manual participation is required, and the implementation is simple.
  • FIG. 3 is a schematic flowchart of Embodiment 2 of a networking method for a software-defined network according to the present invention.
  • the execution body of this embodiment is the network forwarding device in FIG. 1, and the network forwarding device may be composed of any software and/or hardware.
  • the method provided in this embodiment includes:
  • Step 301 The network forwarding device receives a second identifier in an identifier pair sent by the network scheduling device, where the identifier pair includes a first identifier and the second identifier, where the first identifier is An identifier sent by the network scheduling device to the source controller, where the first identifier and the second identifier have a matching relationship;
  • Step 302 The network forwarding device broadcasts first network forwarding device matching information on a control plane of the software-defined network, where the first network forwarding device matching information includes the second identifier and address information of the network forwarding device. ;
  • Step 303 The network forwarding device receives, after determining, by the source controller, that the first identifier and the second identifier meet the matching relationship, and sends the first information according to the address information of the network forwarding device.
  • Source controller matching information where the first source controller matching information includes the first identifier and address information of the source controller;
  • Step 304 The network forwarding device determines that the first identifier and the second identifier sent by the source controller meet the matching relationship, and establishes and performs according to the address information of the source controller. The connection of the source controller.
  • This embodiment mainly describes a process initiated by the network forwarding device to establish a connection with the source controller and perform networking.
  • the network forwarding device receives a second identifier in the pair of identifiers sent by the network scheduling device.
  • the network forwarding device broadcasts the first network forwarding device matching information on the control plane of the software-defined network, where the first network forwarding device matching information includes the second identifier. And the address information of the network forwarding device.
  • the source controller acquires the second identifier broadcast by the network forwarding device and the address information of the network forwarding device, determining whether the first identifier stored locally matches the second identifier, and when matching, the source controller stores the network. Forwarding the address information of the device, the source controller sends the first source controller matching information to the network forwarding device according to the address information, where the first source controller matching information includes the first identifier and the address information of the source controller.
  • the network forwarding device receives the first source controller matching information, and obtains the first identifier and the source controlled address information.
  • the network forwarding device determines whether the first identifier and the second identifier satisfy a matching relationship. When the matching, the network forwarding device stores the address information controlled by the source, and the network forwarding device controls the source information according to the source control. The device starts a handshake message and establishes a connection relationship.
  • the networking may also be initiated by the source controller.
  • the network forwarding device receives second source controller matching information broadcast by the source controller on a control plane of the software-defined network, where the second source controller matching information includes a first identifier; the network forwarding device determines the first identifier and the The second identifier satisfies the matching relationship, and sends the second network forwarding device matching information to the source controller, where the second network forwarding device matching information includes the second identifier and the address information of the source controller, so that the source controller is based on the first identifier.
  • the matching relationship with the second identifier establishes a connection with the network forwarding device.
  • the network forwarding device receives the second identifier in the identifier pair sent by the network scheduling device; and the network forwarding device broadcasts the first network forwarding device on the control plane of the software-defined network.
  • the first network forwarding device matching information includes a second identifier and address information of the network forwarding device; the network forwarding device receiving source controller determines, according to the network forwarding device, that the first identifier and the second identifier satisfy the matching relationship
  • the first source controller matching information sent by the address information, the first source controller matching information includes the first identifier and the address information of the source controller; the network forwarding device determines the first identifier and the second identifier sent by the source controller The symbol satisfies the matching relationship, and establishes a connection with the source controller according to the address information of the source controller.
  • Embodiment 4 is a schematic flowchart of Embodiment 3 of a networking method based on a software-defined network according to the present invention.
  • the execution body of this embodiment is the controller in FIG. 1.
  • the controller in this embodiment is Source controller, which can be any software and/or hardware group to make.
  • the method provided in this embodiment includes:
  • Step 401 The source controller receives a first identifier in an identifier pair sent by the network scheduling device; the identifier pair includes the first identifier and a second identifier, and the second identifier is An identifier sent by the network scheduling device to the network forwarding device, where the first identifier and the second identifier have a matching relationship;
  • Step 402 The source controller broadcasts second source controller matching information on a control plane of the software-defined network, where the second source controller matching information includes the first identifier and the source-controlled address information.
  • Step 403 The source controller receives, after determining that the first identifier and the second identifier satisfy the matching relationship, the network forwarding device sends the second information according to the address information of the source controller.
  • the network forwarding device matching information where the second network forwarding device matching information includes the second identifier and address information of the network forwarding device;
  • Step 404 The source controller determines that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establishes and is performed according to address information of the network forwarding device. The connection of the network forwarding device.
  • This embodiment mainly describes a process initiated by the source controller to establish a connection with the network forwarding device and perform networking.
  • the source controller receives the first identifier in the pair of identifiers sent by the network scheduling device.
  • the source controller broadcasts the second source controller matching information on the control plane of the software-defined network, and the second source controller matching information includes the first identifier. And source control address information.
  • the network forwarding device When the network forwarding device acquires the first identifier broadcasted by the source controller, determining whether the locally stored second identifier matches the first identifier, and when matching, the network forwarding device stores the address information of the source controller, and the network forwards The device sends the second network forwarding device matching information to the source controller according to the address information, where the second network forwarding device matching information includes the second identifier.
  • the source controller receives the second network forwarding device matching information that is sent by the network forwarding device and includes the second identifier and the address information of the network forwarding device.
  • the source controller determines whether the second identifier sent by the network forwarding device matches the first identifier. When matching, the source controller stores address information of the network forwarding device, and the source controller forwards according to the network. The address information of the device starts a handshake message with the network forwarding device to establish a connection relationship.
  • the networking may be initiated by the network forwarding device.
  • the source controller receives the first network forwarding device matching information that is broadcast by the network forwarding device on the control plane of the software-defined network, where the first network forwarding device matching information includes the second identifier and the address information of the network forwarding device; Determining that the first identifier and the second identifier satisfy the matching relationship; the source controller sends the first source controller matching information to the network forwarding device according to the address information of the network forwarding device, where the first source controller matching information includes the first identifier And address information of the source controller, so that the network forwarding device establishes a connection with the source controller according to the matching relationship between the first identifier and the second identifier and the address information controlled by the source.
  • the source controller receives the first identifier in the identifier pair sent by the network scheduling device; the identifier pair includes the first identifier and the second identifier, and the second
  • the identifier is an identifier sent by the network scheduling device to the network forwarding device, the first identifier and the second identifier have a matching relationship; the source controller broadcasts the second source controller matching information, the second source, on a control plane of the software-defined network
  • the controller matching information includes a first identifier and source controlled address information.
  • the source controller receives a second sent by the network forwarding device according to the address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship.
  • the network forwarding device matching information, the second network forwarding device matching information includes a second identifier and address information of the network forwarding device; the source controller determines that the second identifier sent by the network forwarding device matches the first identifier, according to the matching relationship, The network forwards the address information of the device to establish a connection with the network forwarding device.
  • manual configuration is not required, and the implementation is simple.
  • Embodiment 4 is a schematic flowchart of Embodiment 4 of a networking method based on a software-defined network according to the present invention.
  • the execution body of this embodiment is the controller in FIG. 1.
  • the controller in this embodiment is A target controller, which can be composed of any software and/or hardware.
  • the method provided in this embodiment includes:
  • Step 501 The target controller receives a first identifier in an identifier pair sent by a network scheduling device or a source controller, where the identifier pair includes a first identifier and a second identifier, where the second identifier is An identifier sent by the network scheduling device to the network forwarding device, where the first identifier is an identifier sent by the source controller to the network scheduling device, and the first identifier and the second identifier have a match relationship;
  • Step 502 The target controller broadcasts first target controller matching information on a control plane of the software-defined network, where the first target controller matching information includes the first identifier and address information of the target controller ;
  • Step 503 The target controller receives, after determining that the first identifier and the second identifier satisfy the matching relationship, the network forwarding device sends the third information according to the address information of the target controller.
  • the network forwarding device matching information where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device;
  • Step 504 The target controller determines that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establishes and is performed according to address information of the network forwarding device. The connection of the network forwarding device.
  • the application scenario of this embodiment is as shown in the embodiment of FIG. 1 , and details are not described herein again.
  • the source controller upgrades or the source controller needs load balancing
  • the network forwarding device is controlled by the source controller
  • the switch to the network forwarding device is controlled by the target controller.
  • the source controller when the source controller switches to the target controller, the source controller sends the first identifier stored locally to the network scheduling device, and then the target controller receives the identifier pair sent by the network scheduling device.
  • An identifier, and then the target controller establishes a connection with the network forwarding device according to the matching relationship between the first identifier and the second identifier, and the specific manner of establishing the connection may refer to the source controller according to the first identifier and the second The matching relationship of the identifiers establishes a connection with the network forwarding device.
  • the target controller receives the first identifier in the identifier pair sent by the network scheduling device or the source controller, and the identifier pair includes the first identifier and the second identifier.
  • a second identifier is an identifier sent by the network scheduling device to the network forwarding device, where the first identifier is an identifier sent by the source controller to the network scheduling device, and the first identifier and the second identifier have a matching relationship;
  • the controller broadcasts first target controller matching information on a control plane of the software defined network, the first target controller matching information includes a first identifier and address information of the target controller; and the target controller receives the network forwarding device in determining the first identifier And after the second identifier satisfies the matching relationship, according to the address information of the target controller
  • the third network forwarding device matching information, the third network forwarding device matching information includes a second identifier and address information of the network forwarding device; the target controller determines that the second identifier sent by the network forwarding device matches the first identifier, according to the matching relationship,
  • the network forwards the address information of the device to establish a connection with the network forwarding device. No manual configuration is required, so that the switching from the
  • a specific embodiment is used to specify the authentication of the controller and the network forwarding device by the network scheduling device, and the switching between the source controller and the target controller.
  • FIG. 6 is a schematic diagram of initialization of a networking method based on a software-defined network according to the present invention.
  • the internal composition structure of the network scheduling device is mainly shown, and the initialization process is completed by scheduling the connection and communication of each module inside the device through the network.
  • the initialization process involved in this embodiment is mainly a process in which the network scheduling device authenticates the controller and the network forwarding device, and assigns an identifier.
  • the authentication process of this embodiment mainly includes the following processes:
  • the network administrator registers the legal network forwarding device identifier with the network scheduling device through the upper-layer interface, and the network scheduling device writes the identifier of the legal network forwarding device to the legal network forwarding device identifier list in the database through the upper-layer interface; Receiving a registration request sent by the source controller, and sending a registration success response to the source controller; the network scheduling device receives the registration request sent by the target controller, and sends a registration success response to the target controller.
  • the controller of the embodiment is divided into a source controller and a target controller.
  • the source controller and the target are not distinguished.
  • the controller in the database of the network scheduling device, stores the identity of the registered controller.
  • the registration request is sent to the message scheduling module of the network scheduling device, and the network scheduling device stores the identifier of the controller in the database.
  • the network forwarding device When the network forwarding device is to join the networking, the network forwarding device sends an identifier request message to the message scheduling module of the network scheduling device, where the identifier request message includes the identifier of the network forwarding device.
  • the message scheduling module of the network scheduling device receives the identifier request information sent by the network forwarding device, obtains a legal network forwarding device identifier list, and determines that the network forwarding device passes the authentication according to the identifier of the network forwarding device and the legal network forwarding device identifier list. Specifically, when the identifier of the network forwarding device is in the legal network forwarding device identifier list, determining the network forwarding The equipment certification passed.
  • a message scheduling module of the network scheduling device after confirming that the network forwarding device is legal, the message scheduling module communicates with the identifier generating module, and the identifier generating module of the network scheduling device generates an identifier pair, including the first identifier and Second identifier.
  • the network scheduling device selects the source controller and the network forwarding device to perform networking according to the state information of the software-defined network in the registered controllers stored in the database.
  • the message scheduling module of the network scheduling component sends the first identifier in the identifier pair to the source controller, and sends the second identifier in the identifier pair to the network forwarding device.
  • the initialization process is completed, and after that, the network forwarding device and the source controller perform networking according to the matching relationship between the first identifier and the second identifier.
  • the network forwarding device and the source controller perform networking according to the matching relationship between the first identifier and the second identifier.
  • the initialization process provided by the embodiment of the present invention completes the network access authentication of the network forwarding device by introducing a network scheduling device, which can greatly reduce the network security threat brought by the unauthenticated network forwarding device.
  • the network scheduling device shown in FIG. 6 may further include an address generating module (not shown), and the address generating module identifies the first identifier in the identifier pair in the network scheduling device.
  • the symbol is sent to the source controller, and before the second identifier in the identifier pair is sent to the network forwarding device, the connection address of the network forwarding device is generated, and the connection address belongs to the same network segment as the default address of the source controller.
  • it is convenient to manage the address of the network forwarding device by setting the network forwarding device to the IP address of the same network segment as the source controller or the target controller.
  • the network scheduling device sends the second identifier in the identifier pair to the network forwarding device, including: the network scheduling device sends the connection address of the network forwarding device and the second identifier in the identifier pair to the network forwarding device. .
  • the source controller switches to the target controller, including two possible implementation modes, which are described in detail below.
  • FIG. 7 is a schematic diagram of Embodiment 1 of a control domain handover according to an embodiment of the present invention.
  • the switching between the source controller and the target controller is mainly controlled by the network scheduling device.
  • the controller including the network scheduling device scheduling includes a controller CI and a controller C2, the controller C1 is the source controller in the embodiment, and the controller C2 is the target controller in the embodiment, and is controlled before the switching.
  • the controller C1 has control over the network forwarding device S1 and the network forwarding device S2.
  • the controller C2 has control over the network forwarding device S2.
  • the control domain switching in this embodiment specifically includes the following steps:
  • the source controller triggers a control right handover to the network forwarding device S2 according to the working state of the source controller, and sends a release control right request message to the network scheduling device;
  • the network scheduling device receives the release control right request information sent by the source controller. Specifically, after the source controller and the network forwarding device S2 are successfully networked, the source controller has control right to the network forwarding device S2, and the network scheduling device according to The software defines the status information of the network, and in the registered controller, selects the target controller and the network forwarding device S2 to perform networking;
  • the network scheduling device sends a first identifier to the target controller, where the first identifier is a first identifier sent by the network scheduling device to the source controller;
  • the target controller receives the first identifier in the identifier pair sent by the network scheduling device, and the target controller broadcasts the first target controller matching information on the control plane of the software-defined network, where the first target controller matching information includes An identifier and address information of the target controller;
  • the network forwarding device S2 receives the first target controller matching information broadcast by the target controller on the control plane of the software-defined network, and the network forwarding device S2 determines that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship. ;
  • the network forwarding device S2 sends the third network forwarding device matching information to the target controller, where the third network forwarding device matching information includes the second identifier and the address information of the network forwarding device;
  • the target controller receives the third network forwarding device matching information sent by the network forwarding device S2 after determining that the first identifier and the second identifier satisfy the matching relationship, and the target controller determines the second identifier sent by the network forwarding device S2. And the first identifier satisfies a matching relationship;
  • the target controller and the network forwarding device S2 establish a connection by using a handshake message
  • the target controller sends a networking success notification message to the network scheduling device
  • the network scheduling device receives the networking success notification message sent by the target controller, and sends a release control right response message to the source controller;
  • the source controller receives the release control right response message sent by the network scheduling device after the target controller establishes a connection with the network forwarding device, and releases the control right to the network forwarding device S2.
  • the control domain switching provided by this embodiment, only the identifier information is transmitted between the source controller and the target controller, and the target controller broadcasts the obtained new identifier on the control plane to obtain the information of the switch that matches the matching, and constitutes The new control domain does not require manual reassignment of the controller address on the network forwarding device where the control domain switch occurs.
  • FIG. 8 is a schematic diagram of Embodiment 2 of a control domain handover according to an embodiment of the present invention.
  • the switching between the source controller and the target controller is mainly controlled by the source controller.
  • the controller including the network scheduling device scheduling includes a controller C1 and a controller C2.
  • the controller C1 is the source controller in the embodiment
  • the controller C2 is the target controller in the embodiment.
  • the controller C1 has control over the network forwarding device S1 and the network forwarding device S2.
  • the controller C2 has control over the network forwarding device S2.
  • the control domain switching in this embodiment specifically includes the following steps:
  • the source controller triggers a control right handover to the network forwarding device S2 according to the working state of the source controller, and sends a release control right request message to the target controller;
  • the source controller determines the target controller; specifically, the source controller negotiates with other controllers that can communicate at the controller plane, and confirms the controller (target controller) that agrees to receive the control of the network forwarding device S2. ;
  • the target controller receives the first identifier in the identifier pair sent by the source controller, and the target controller broadcasts the first target controller matching information on the control plane of the software-defined network, where the first target controller matching information includes An identifier and address information of the target controller;
  • the network forwarding device S2 receives the first target controller matching information broadcast by the target controller on the control plane of the software-defined network, and the network forwarding device S2 determines that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship. ;
  • the network forwarding device S2 sends the third network forwarding device matching information to the target controller according to the address information of the target controller, where the third network forwarding device matching information includes the second identifier and the address information of the network forwarding device;
  • the target controller receives the third network forwarding device matching information that is sent by the network forwarding device S2 according to the address information of the target controller after determining that the first identifier and the second identifier satisfy the matching relationship, and the target controller determines the network forwarding.
  • the second identifier sent by the device S2 satisfies a matching relationship with the first identifier;
  • the target controller establishes a connection by using a handshake message according to the address information of the network forwarding device and the network forwarding device S2;
  • the target controller sends a networking success notification message to the source controller
  • control domain switching In the control domain switching provided by this embodiment, only the identifier information is transmitted between the source controller and the target controller, and the target controller broadcasts the obtained new identifier on the control plane to obtain the information of the switch that matches the matching, and constitutes The new control domain does not require manual reassignment of the controller address on the network forwarding device where the control domain switch occurs.
  • the address information of the target controller includes a default address of the target controller; the address information of the source controller includes a default address of the source controller; and the address information of the network forwarding device includes a network forwarding device.
  • the connection address belongs to the same network segment as the default address of the source controller.
  • the default address of the target controller and the source controller may be an Internet Protocol (IP) address or a Medium Access Control (MAC) address.
  • IP Internet Protocol
  • MAC Medium Access Control
  • the default address of the network forwarding device may be an IP address or a MAC address, and the IP address or the MAC address may be an address when the network forwarding device is shipped.
  • the network scheduling device may generate a connection address of the network forwarding device, and the connection address belongs to the same network segment as the default address of the source controller.
  • the network forwarding device can be set to the IP address of the same network segment as the source controller or the target controller, and the network forwarding device directly communicates with the source controller or the target controller through the IP address.
  • FIG. 9 is a schematic structural diagram of Embodiment 1 of a network scheduling device according to the present invention.
  • the network scheduling device 90 provided in this embodiment includes: a generating module 901 and a sending module 902.
  • a generating module 901 configured to generate an identifier pair for networking between the source controller and the network forwarding device
  • the sending module 902 is configured to send the first identifier in the identifier pair to the source controller, and send the second identifier in the identifier pair to the network forwarding device, where the first identifier and the The second identifier has a matching relationship, so that the source controller and the network forwarding device perform networking according to the matching relationship between the first identifier and the second identifier.
  • the network scheduling device provided by this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar.
  • Embodiment 2 of a network scheduling device according to the present invention. This embodiment is implemented on the basis of the embodiment of FIG. 9, and the details are as follows:
  • the network scheduling device 90 provided in this embodiment further includes:
  • the receiving module 903 is configured to: after the identifier sending module sends the first identifier in the identifier pair to the source controller, and send the second identifier in the identifier pair to the network forwarding device, Receiving the release control right request information sent by the source controller; wherein, after the source controller and the network forwarding device are successfully networked, the source controller has control right to the network forwarding device;
  • the selecting module 904 is configured to select, according to the state information of the software-defined network, the target controller and the network forwarding device to perform networking in the registered controller.
  • the sending module 902 is further configured to send the first identifier to the target controller, so that the target controller and the network forwarding device are configured according to the first identifier and the second identifier.
  • the matching relationship is organized;
  • the receiving module 903 is further configured to: receive a networking success notification message sent by the target controller, and send release control right response information to the source controller.
  • the receiving module 903 is further configured to: before the generating module generates an identifier pair used by the network forwarding device and the source controller to perform networking, receiving identifier request information sent by the network forwarding device, where The identifier request information includes an identifier of the network forwarding device;
  • the method further includes: an authentication module 905, configured to determine, according to the identifier of the network forwarding device and the legal network forwarding device identifier list, that the network forwarding device passes the authentication;
  • the selection module 904 is further configured to select, according to the state information of the software-defined network, the source controller and the network forwarding device to perform networking in the registered controller.
  • the network forwarding device receives the second identifier sent by the network scheduling device, and broadcasts, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes The second identifier and the address information of the network forwarding device, after receiving the source controller, after determining that the first identifier and the second identifier satisfy the matching relationship, according to the network forwarding device First source control for sending address information
  • the first source controller matching information includes the first identifier and the address information of the source controller, and the first identifier and the second identifier sent by the source controller are determined. And satisfying the matching relationship, establishing a connection with the source controller according to the address information of the source controller; or
  • the identifier and the address information of the source control are sent by the network forwarding device according to the address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship
  • the second network forwarding device matching information where the second network forwarding device matching information includes the second identifier and address information of the network forwarding device, and determining the second identifier sent by the network forwarding device
  • the first identifier satisfies the matching relationship, and establishes a connection with the network forwarding device according to the address information of the network forwarding device.
  • FIG. 11 is a schematic structural diagram of Embodiment 1 of a network forwarding device according to the present invention.
  • the network forwarding device 110 provided in this embodiment includes: a receiving module 1101, a broadcasting module 1102, and a processing module 1103.
  • the receiving module 1101 is configured to receive a second identifier in an identifier pair sent by the network scheduling device, where the identifier pair includes a first identifier and the second identifier, where the first identifier is the network An identifier sent by the scheduling device to the source controller, the first identifier and the second identifier having a matching relationship;
  • the broadcast module 1102 is configured to broadcast, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes the second identifier and address information of the network forwarding device.
  • the receiving module 1101 is further configured to: receive, by the source controller, the first sent according to the address information of the network forwarding device after determining that the first identifier and the second identifier satisfy the matching relationship Source controller matching information, where the first source controller matching information includes the first identifier and address information of the source controller;
  • the processing module 1103 is configured to determine that the first identifier and the second identifier sent by the source controller meet the matching relationship, and establish, with the source controller, according to address information of the source controller. Connection.
  • the receiving module 1101 is further configured to: receive the source controller in the software setting a second source controller matching information broadcasted by the control plane of the network, where the second source controller matching information includes the first identifier and address information of the source controller;
  • the processing module 1103 is further configured to: determine that the first identifier and the second identifier satisfy the matching relationship, and send a second network forwarding to the source controller according to the address information of the source controller.
  • Device matching information, the second network forwarding device matching information includes the second identifier and address information of the network forwarding device, so that the source controller is configured according to the first identifier and the second identifier.
  • a matching relationship between the symbol and the address information of the network forwarding device establishing a connection with the network forwarding device.
  • the receiving module 1101 is further configured to: when the source controller triggers a control right handover to the network forwarding device according to an operating state of the source controller, where the source controller is to the network
  • the scheduling device sends a release control right request message, and after the network scheduling device sends the first identifier to the target controller, after the processing module establishes a connection with the source controller, the network forwarding device receives the Determining, by the target controller, first target controller matching information broadcasted by a control plane of the software-defined network, where the first target controller matching information includes the first identifier and address information of the target controller;
  • the processing module 1103 is further configured to: determine that the first identifier and the second identifier that are broadcast by the target controller meet the matching relationship;
  • the sending module is further configured to: send, according to the address information of the target controller, third network forwarding device matching information to the target controller, where the third network forwarding device matching information includes the a second identifier and address information of the network forwarding device, so that the target controller establishes a relationship according to a matching relationship between the first identifier and the second identifier and address information of the network forwarding device The connection of the network forwarding device.
  • the network forwarding device provided in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar.
  • FIG. 12 is a schematic structural diagram of Embodiment 1 of a source controller according to the present invention.
  • the source controller 120 provided in this embodiment includes: a receiving module 1201, a broadcasting module 1202, and a processing module 1203.
  • the receiving module 1201 is configured to receive a first identifier in an identifier pair sent by the network scheduling device; the identifier pair includes the first identifier and the second identifier, and the second identifier is the network An identifier sent by the scheduling device to the network forwarding device, where the first identifier and the second identifier have a matching relationship;
  • the broadcast module 1202 is configured to broadcast second source controller matching information on a control plane of the software-defined network, where the second source controller matching information includes the first identifier and the source-controlled address information;
  • the receiving module 1201 is further configured to: receive, after the network forwarding device determines that the first identifier and the second identifier satisfy the matching relationship, send the second information according to the address information of the source controller.
  • the network forwarding device matching information where the second network forwarding device matching information includes the second identifier and address information of the network forwarding device;
  • the processing module 1203 is configured to determine that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establish a network forwarding device according to the address information of the network forwarding device. Connection.
  • the receiving module 1201 is further configured to: receive, by the network forwarding device, first network forwarding device matching information that is broadcasted by a control plane of the software-defined network, where the first network forwarding device matching information includes a second An identifier and address information of the network forwarding device;
  • the processing module 1203 is further configured to determine that the first identifier and the second identifier satisfy the matching relationship
  • the first sending module is configured to send first source controller matching information to the network forwarding device according to the address information of the network forwarding device, where the first source controller matching information includes the first identifier And the address information of the source controller, so that the network forwarding device establishes with the source controller according to the matching relationship between the first identifier and the second identifier and the address information of the source control Connection.
  • the method further includes:
  • a first switching module configured to trigger a control right handover to the network forwarding device according to an operating state of the source controller after the processing module establishes a connection with the network forwarding device;
  • a second sending module configured to send a release control right request message to the network scheduling device, to enable the network scheduling device to send the first identifier to a target controller
  • the receiving module is further configured to: receive release control right response information sent by the network scheduling device after the target controller establishes a connection with the network forwarding device.
  • the method further includes:
  • a second switching module configured to establish a connection with the network forwarding device at the processing module After that, according to the working state of the source controller, triggering a control right handover to the network forwarding device;
  • a third sending module configured to determine a target controller, and send the first identifier to the target controller, so that the target controller performs a matching relationship according to the first identifier and the second identifier Establishing a connection with the network forwarding device;
  • the receiving module is further configured to: receive a notification message that the target controller sent by the target controller successfully establishes a connection with the network forwarding device;
  • the processing module is further configured to release control of the network forwarding device.
  • the source controller provided in this embodiment may be used to perform the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar.
  • FIG. 13 is a schematic structural diagram of Embodiment 1 of an object controller according to the present invention.
  • the target controller 130 provided in this embodiment includes:
  • the receiving module 1301 is configured to receive a first identifier in an identifier pair sent by the network scheduling device or the source controller, where the identifier pair includes a first identifier and a second identifier, where the second identifier is An identifier sent by the network scheduling device to the network forwarding device, where the first identifier is an identifier sent by the source controller to the network scheduling device, and the first identifier and the second identifier have a matching relationship ;
  • the broadcast module 1302 is configured to broadcast, in a control plane of the software-defined network, first target controller matching information, where the first target controller matching information includes the first identifier and address information of the target controller;
  • the receiving module 1301 is further configured to: receive, after the network forwarding device determines that the first identifier and the second identifier satisfy the matching relationship, send the third information according to the address information of the target controller.
  • the network forwarding device matching information where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device;
  • the processing module 1303 is configured to determine that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establish a network forwarding device according to the address information of the network forwarding device. Connection.
  • the method further includes: a sending module, after the processing module establishes a connection with the network forwarding device,
  • FIG. 14 is a schematic structural diagram of Embodiment 3 of a network scheduling device according to the present invention.
  • the network scheduling device 140 provided in this embodiment includes a processor 1401, a transmitter 1402, and a receiver 1403.
  • the processor 1401 is configured to generate an identifier pair used by the source controller and the network forwarding device to perform networking;
  • the transmitter 1402 is configured to send the first identifier in the identifier pair to the source controller, and send the second identifier in the identifier pair to the network forwarding device, the first identifier and The second identifier has a matching relationship, so that the source controller and the network forwarding device perform networking according to a matching relationship between the first identifier and the second identifier.
  • the transmitter 1402 sends the first identifier in the identifier pair to the source controller, and sends the second identifier in the identifier pair to the network forwarding device,
  • the receiver 1403 is configured to receive the release control right request information sent by the source controller, where the source controller forwards the network to the network after the source controller and the network forwarding device are successfully networked. Have control
  • the processor 1401 is further configured to select, according to the state information of the software-defined network, a target controller and the network forwarding device to perform networking in the registered controller;
  • the transmitter 1402 is further configured to send the first identifier to the target controller, so that the target controller and the network forwarding device are configured according to the first identifier and the second identifier. Matching relationships are performed on the network;
  • the receiver 1403 is further configured to receive a network success notification message sent by the target controller, and send release control right response information to the source controller.
  • processor 1401 before the processor 1401 generates an identifier pair for the network forwarding device and the source controller to perform networking,
  • the receiver 1403 is further configured to receive identifier request information sent by the network forwarding device, where the identifier request information includes an identifier of the network forwarding device.
  • the processor 1401 is further configured to: according to the identifier of the network forwarding device and a legal network Forwarding the device identification list, and determining that the network forwarding device passes the authentication;
  • the processor 1401 is further configured to select, according to the state information of the software-defined network, the source controller and the network forwarding device to perform networking in the registered controller.
  • the receiver 1403 receives the identifier request information sent by the network forwarding device.
  • the processor 1401 is further configured to obtain the legal network forwarding device identifier list, where the legal network forwarding device identifier list is used to authenticate the network forwarding device.
  • the receiver 1403 is further configured to receive a registration request sent by the source controller, and send a registration success response to the source controller.
  • the receiver 1403 is further configured to receive a registration request sent by the target controller, and send a registration success response to the target controller.
  • the processor 1401 is specifically configured to: generate the identifier pair according to a preset matching rule; or generate the identifier pair according to a preset encryption algorithm.
  • the processing The device 1401 is further configured to generate a connection address of the network forwarding device, where the connection address belongs to a same network segment as a default address of the source controller;
  • the transmitter 1402 is specifically configured to send a connection address of the network forwarding device and a second identifier of the identifier pair to a network forwarding device.
  • the network forwarding device receives the second identifier sent by the network scheduling device, and broadcasts, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes The second identifier and the address information of the network forwarding device, after receiving the source controller, after determining that the first identifier and the second identifier satisfy the matching relationship, according to the network forwarding device First source controller matching information sent by the address information, the first source controller matching information includes the first identifier and address information of the source controller, and determining the number sent by the source controller An identifier and the second identifier satisfy the matching relationship, and establishing a connection with the source controller according to address information of the source controller; or
  • the second network forwarding device matching information sent by the address information of the device includes: the second identifier and the address information of the network forwarding device, and determining, by the network forwarding device, The second identifier and the first identifier satisfy the matching relationship, and establish a connection with the network forwarding device according to the address information of the network forwarding device.
  • the network scheduling device provided in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar.
  • FIG. 15 is a schematic structural diagram of Embodiment 2 of a network forwarding device according to the present invention.
  • the network forwarding device 150 provided in this embodiment includes a receiver 1501, a transmitter 1502, and a processor 1503.
  • the receiver 1501 is configured to receive a second identifier in an identifier pair sent by a network scheduling device; the identifier pair includes a first identifier and the second identifier, and the first identifier is An identifier sent by the network scheduling device to the source controller, where the first identifier and the second identifier have a matching relationship;
  • the transmitter 1502 is configured to broadcast, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes the second identifier and address information of the network forwarding device.
  • the receiver 1501 is further configured to receive, by the source controller, a first source that is sent according to address information of the network forwarding device after determining that the first identifier and the second identifier satisfy the matching relationship.
  • the controller matches the information, where the first source controller matching information includes the first identifier and address information of the source controller;
  • the processor 1503 is configured to determine that the first identifier and the second identifier sent by the source controller meet the matching relationship, and establish and the source control according to the address information of the source controller. Connection.
  • the receiver 1501 is further configured to receive second source controller matching information that is broadcast by the source controller on a control plane of the software-defined network, where the second source controller matching information includes the first An identifier and address information of the source controller;
  • the processor 1503 is further configured to determine that the first identifier and the second identifier satisfy the matching relationship, and send a second to the source controller according to the address information of the source controller.
  • Network forwarding device matching information where the second network forwarding device matching information includes the second identifier and address information of the network forwarding device, so that the source controller is configured according to the first identifier and the first
  • the matching relationship between the two identifiers and the address information of the network forwarding device establishes a connection with the network forwarding device.
  • the sender 1502 is further configured to send identifier request information to the network scheduling device, where the identifier The request information includes an identifier of the network forwarding device, so that the network scheduling device authenticates the network forwarding device.
  • the source controller triggers a control right handover to the network forwarding device according to an operating state of the source controller, and the source controller sends a release control right request message to the network scheduling device, After the network scheduling device sends the first identifier to the target controller, after the processor 1503 establishes a connection with the source controller,
  • the receiver 1501 is further configured to receive first target controller matching information that is broadcast by the target controller on a control plane of the software-defined network, where the first target controller matching information includes the first identifier and Address information of the target controller;
  • the processor 1503 is further configured to determine that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship;
  • the transmitter 1502 is further configured to send third network forwarding device matching information to the target controller according to the address information of the target controller, where the third network forwarding device matching information includes the second identifier and The network forwarding device address information, so that the target controller establishes with the network forwarding device according to the matching relationship between the first identifier and the second identifier and the address information of the network forwarding device. Connection.
  • the address information of the target controller includes a default address of the target controller
  • the address information of the source controller includes a default address of the source controller
  • the address information of the network forwarding device includes a default address of the network forwarding device or a connection address allocated by the network scheduling device to the network forwarding device, where the connection address belongs to the same network as the default address of the source controller. segment.
  • FIG. 16 is a schematic structural diagram of Embodiment 2 of a source controller according to the present invention.
  • the source controller 160 provided in this embodiment includes a receiver 1601, a transmitter 1602, and a processor 1603.
  • the receiver 1601 is configured to receive a first identifier in an identifier pair sent by a network scheduling device; the identifier pair includes the first identifier and a second identifier, and the second identifier is An identifier sent by the network scheduling device to the network forwarding device, where the first identifier and the second identifier have a matching relationship;
  • the transmitter 1602 is configured to broadcast second source controller matching information on a control plane of the software-defined network, where the second source controller matching information includes the first identifier and the source-controlled address information;
  • the receiver 1601 is further configured to receive, by the network forwarding device, a second network that is sent according to address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship. Forwarding device matching information, where the second network forwarding device matching information includes the second identifier and address information of the network forwarding device;
  • the processor 1603 is configured to determine that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establish and forward the network according to address information of the network forwarding device. The connection of the device.
  • the receiver 1601 is further configured to receive first network forwarding device matching information that is broadcast by the network forwarding device on a control plane of the software-defined network, where the first network forwarding device matching information includes a second identifier. And the address information of the network forwarding device;
  • the processor 1603 is further configured to determine that the first identifier and the second identifier satisfy the matching relationship
  • the transmitter 1602 is further configured to send first source controller matching information to the network forwarding device according to the address information of the network forwarding device, where the first source controller matching information includes the first identifier and The address information of the source controller, so that the network forwarding device establishes a connection with the source controller according to a matching relationship between the first identifier and the second identifier and address information of the source control .
  • the processor 1603 is further configured to trigger a control right handover to the network forwarding device according to an operating state of the source controller. ;
  • the transmitter 1602 is further configured to send a release control request request to the network scheduling device. And causing the network scheduling device to send the first identifier to a target controller;
  • the receiver 1601 is further configured to receive release control right response information sent by the network scheduling device after the target controller establishes a connection with the network forwarding device.
  • the processor 1603 is further configured to trigger a control right handover to the network forwarding device according to an operating state of the source controller. ;
  • the transmitter 1602 is further configured to determine a target controller, and send the first identifier to the target controller, so that the target controller matches according to the first identifier and the second identifier. Establishing a connection with the network forwarding device;
  • the receiver 1601 is further configured to receive a notification message that the target controller sent by the target controller successfully establishes a connection with the network forwarding device;
  • the processor 1603 is further configured to release control of the network forwarding device.
  • the address information of the target controller includes a default address of the target controller
  • the address information of the source controller includes a default address of the source controller
  • the address information of the network forwarding device includes a default address of the network forwarding device or a connection address allocated by the network scheduling device to the network forwarding device, where the connection address belongs to the same network as the default address of the source controller. segment.
  • the source controller provided in this embodiment may be used to perform the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar.
  • FIG. 17 is a schematic structural diagram of Embodiment 2 of an object controller according to the present invention.
  • the target controller 170 provided in this embodiment includes a receiver 1701, a transmitter 1702, and a processor 1703.
  • the receiver 1701 is configured to receive a first identifier in an identifier pair sent by a network scheduling device or a source controller, where the identifier pair includes a first identifier and a second identifier, where the second identifier is An identifier sent by the network scheduling device to the network forwarding device, where the first identifier is an identifier sent by the source controller to the network scheduling device, and the first identifier and the second identifier have a match Relationship
  • the transmitter 1702 is configured to broadcast first target controller matching information on a control plane of the software-defined network, where the first target controller matching information includes the first identifier and address information of the target controller;
  • the receiver 1701 is further configured to receive, by the network forwarding device, a third network that is sent according to the address information of the target controller after determining that the first identifier and the second identifier satisfy the matching relationship. Forwarding device matching information, where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device;
  • the processor 1703 is configured to determine that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establish and forward the network according to address information of the network forwarding device. The connection of the device.
  • the method further includes:
  • the transmitter 1702 is further configured to send a network success notification message to the network scheduling device, so that the network scheduling device sends a release control right response message to the source controller; or
  • the transmitter 1702 is further configured to send a networking success notification message to the source controller, so that the source controller releases the control right.
  • the address information of the target controller includes a default address of the target controller
  • the address information of the network forwarding device includes a default address of the network forwarding device or a connection address allocated by the network scheduling device to the network forwarding device, where the connection address belongs to the same network as the default address of the source controller. segment.
  • the target controller provided in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and the details are not described herein again.
  • FIG. 18 is a schematic diagram of a networking system based on a software-defined network according to the present invention.
  • the system 180 of the present embodiment includes a network scheduling device 1801, a network forwarding device 1802, a source controller 1803, and a target controller 1804.
  • each device performs the following actions:
  • the network scheduling device 1801 is configured to generate an identifier pair for networking between the source controller and the network forwarding device, and send the first identifier in the identifier pair to the source controller, where the identifier is Transmitting the second identifier of the pair to the network forwarding device, where the first identifier and the second identifier have a matching relationship;
  • the network forwarding device 1802 is configured to receive an identifier pair sent by the network scheduling device. a second identifier, the first network forwarding device matching information is broadcasted on a control plane of the software-defined network, where the first network forwarding device matching information includes the second identifier and address information of the network forwarding device, and receiving the The first source controller matching information sent by the source controller according to the address information of the network forwarding device after determining that the first identifier and the second identifier satisfy the matching relationship, the first source control
  • the device matching information includes the first identifier and address information of the source controller, and determining that the first identifier and the second identifier sent by the source controller satisfy the matching relationship, according to the Address information of the source controller, establishing a connection with the source controller;
  • the source controller 1803 is configured to receive a first identifier in an identifier pair sent by the network scheduling device, and broadcast second source controller matching information on a control plane of the software-defined network, where the second source controller matches
  • the information includes the first identifier and the source controlled address information, and the receiving, by the network forwarding device, after determining that the first identifier and the second identifier satisfy the matching relationship, according to the source control
  • the second network forwarding device matching information sent by the address information of the device includes: the second identifier and the address information of the network forwarding device, and determining, by the network forwarding device, The second identifier and the first identifier satisfy the matching relationship, and establish a connection with the network forwarding device according to the address information of the network forwarding device.
  • the source controller 1803 is further configured to: trigger a control right handover to the network forwarding device according to an operating state of the source controller, send a release control right request message to the network scheduling device, and receive the network scheduling a release control right response message sent by the device after the target controller establishes a connection with the network forwarding device;
  • the network scheduling device 1801 is further configured to: receive the release control right request information sent by the source controller; wherein, after the source controller and the network forwarding device are successfully networked, the source controller is configured to The network forwarding device has control, and according to the state information of the software-defined network, in the registered controller, the target controller is selected to be networked with the network forwarding device, and the network controller is sent to the target controller.
  • the target controller 1804 is configured to receive the identifier sent by the network scheduling device Symbol alignment a first identifier, the first target controller matching information is broadcasted on a control plane of the software-defined network, the first target controller matching information including the first identifier and address information of the target controller, a receiving station a third network forwarding device matching information that is sent by the network forwarding device according to the address information of the target controller after determining that the first identifier and the second identifier satisfy the matching relationship, the third network The forwarding device matching information includes the second identifier and the address information of the network forwarding device, and determining that the second identifier sent by the network forwarding device and the first identifier satisfy the matching relationship, according to the Decoding the address information of the network forwarding device, establishing a connection with the network forwarding device, and sending a network success notification message to the network scheduling device, so that the network scheduling device send
  • the network forwarding device 1802 is further configured to: receive first target controller matching information that is broadcast by the target controller on a control plane of the software-defined network, where the first target controller matching information includes the first identifier And the address information of the target controller, determining that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship, according to the address information of the target controller,
  • the target controller sends third network forwarding device matching information, where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device, so that the target controller is configured according to the A matching relationship between the identifier and the second identifier and address information of the network forwarding device establishes a connection with the network forwarding device.
  • the source controller 1803 is further configured to: trigger a control right handover to the network forwarding device according to an operating state of the source controller, determine the target controller, and send the first to the target controller And an identifier, to enable the target controller to establish a connection with the network forwarding device according to a matching relationship between the first identifier and the second identifier, and receive the target controller sent by the target controller And a notification message that successfully establishes a connection with the network forwarding device, releasing control right of the network forwarding device;
  • the target controller 1804 is configured to receive a first identifier in an identifier pair sent by the source controller, and broadcast, in a control plane of the software-defined network, first target controller matching information, where the first target controller The matching information includes the first identifier and a ground of the target controller And the third network forwarding device matching information that is sent by the network forwarding device according to the address information of the target controller after determining that the first identifier and the second identifier satisfy the matching relationship,
  • the third network forwarding device matching information includes the second identifier and the address information of the network forwarding device, and determining that the second identifier sent by the network forwarding device and the first identifier meet the a matching relationship, establishing a connection with the network forwarding device according to the address information of the network forwarding device, and sending a networking success notification message to the source controller, so that the source controller releases the control right;
  • the network forwarding device 1802 is further configured to: receive first target controller matching information that is broadcast by the target controller on a control plane of the software-defined network, where the first target controller matching information includes the first identifier And the address information of the target controller, determining that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship, according to the address information of the target controller,
  • the target controller sends third network forwarding device matching information, where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device, so that the target controller is configured according to the A matching relationship between the identifier and the second identifier and address information of the network forwarding device establishes a connection with the network forwarding device.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the above-described method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Provided in the present invention are a software defined network (SDN) based networking method and device. The method comprises: a network scheduling device generates an identifier pair for networking by a source controller and a network forwarding device; the network scheduling device transmits a first identifier in the identifier pair to the source controller and transmits a second identifier in the identifier pair to the network forwarding device, the first identifier and the second identifier being in a matching relationship so that the source controller and the network forwarding device establish a network according to the matching relationship between the first identifier and the second identifier. The present invention realizes SDN based automatic networking.

Description

基于软件定义网络的组网方法及设备  Networking method and device based on software defined network
技术领域 Technical field
本发明实施例涉及通信技术, 尤其涉及一种基于软件定义网络的组网方 法及设备。 背景技术  The embodiments of the present invention relate to communication technologies, and in particular, to a networking method and device based on a software-defined network. Background technique
软件定义网络 (Software Defined Network, 简称 SDN) 是一种新型的网 络架构, 其核心技术是将网络转发层和网络控制层分离, 从而实现了网络流 量的灵活控制, 为核心网络及应用的创新提供了良好的平台。  Software Defined Network (SDN) is a new type of network architecture. Its core technology is to separate the network forwarding layer from the network control layer, thus achieving flexible control of network traffic and providing innovation for core networks and applications. A good platform.
SDN中的网络控制层由原有的交换机、 路由器等网络转发设备中的控制 功能抽取出来, 采用独立的控制器来实现。 该控制器为 SDN的核心部件, 该 控制器以软件平台的方式存在并享有集中的控制权, 其算法、 逻辑、 规则均 可配置。 网络转发设备在接收到控制器发来的指令后, 更新本地规则, 完成 数据转发。  The network control layer in the SDN is extracted by the control functions in the network forwarding devices such as the original switch and router, and is implemented by an independent controller. The controller is the core component of SDN. The controller exists in the form of a software platform and enjoys centralized control. Its algorithms, logic and rules are configurable. After receiving the command from the controller, the network forwarding device updates the local rules and completes the data forwarding.
目前, 在控制器与网络转发设备之间的组网互联方面, 通过手动对网络 转发设备配置控制器地址, 该网络转发设备向该地址指定的控制器发送连接 请求, 经与控制器握手协商后, 建立控制平面的连接关系。 现有技术的组网 方式基于手动方式实现, 无法实现基于软件定义网络的自动组网, 在网络规 模较大的情况下, 不仅实现复杂, 还消耗大量的人工。 发明内容  Currently, in the networking connection between the controller and the network forwarding device, the controller address is manually configured to the network forwarding device, and the network forwarding device sends a connection request to the controller specified by the address, after being negotiated with the controller. , establish the connection relationship of the control plane. The networking mode of the prior art is implemented based on the manual mode, and the automatic networking based on the software-defined network cannot be realized. In the case of a large network size, not only is the implementation complicated, but also a large amount of labor is consumed. Summary of the invention
本发明实施例提供一种基于软件定义网络的组网方法及设备, 实现了 基于软件定义网络的自动组网。  The embodiment of the invention provides a networking method and device based on a software-defined network, and implements an automatic networking based on a software-defined network.
第一方面, 本发明实施例提供一种基于软件定义网络的组网方法, 包 括:  In a first aspect, an embodiment of the present invention provides a networking method based on a software-defined network, including:
网络调度设备生成用于源控制器和网络转发设备进行组网的标识符 对;  The network scheduling device generates an identifier pair for the source controller and the network forwarding device to perform networking;
所述网络调度设备将所述标识符对中的第一标识符发送给源控制器, 将所述标识符对中的第二标识符发送给网络转发设备, 所述第一标识符和 所述第二标识符具有匹配关系, 以使所述源控制器和所述网络转发设备根 据所述第一标识符和所述第二标识符的匹配关系进行组网。 The network scheduling device transmits the first identifier in the identifier pair to the source controller, Sending the second identifier of the identifier pair to the network forwarding device, the first identifier and the second identifier have a matching relationship, so that the source controller and the network forwarding device are The matching relationship between the first identifier and the second identifier is performed on the network.
结合第一方面, 在第一方面的第一种可能的实现方式中, 所述网络调 度设备将所述标识符对中的第一标识符发送给源控制器, 将所述标识符对 中的第二标识符发送给网络转发设备之后, 还包括:  In conjunction with the first aspect, in a first possible implementation manner of the first aspect, the network scheduling device sends a first identifier of the identifier pair to a source controller, where the identifier is aligned After the second identifier is sent to the network forwarding device, the method further includes:
所述网络调度设备接收所述源控制器发送的释放控制权请求信息; 其 中, 所述源控制器和所述网络转发设备组网成功之后, 所述源控制器对所 述网络转发设备具有控制权;  The network scheduling device receives the release control right request information sent by the source controller; wherein, after the source controller and the network forwarding device are successfully networked, the source controller has control on the network forwarding device Right
所述网络调度设备根据所述软件定义网络的状态信息, 在已注册的控 制器中, 选择目标控制器与所述网络转发设备进行组网;  The network scheduling device selects a target controller and the network forwarding device to perform networking in the registered controller according to the state information of the software-defined network;
所述网络调度设备向所述目标控制器发送所述第一标识符, 以使所述 目标控制器和所述网络转发设备根据所述第一标识符和所述第二标识符 的匹配关系进行组网;  Transmitting, by the network scheduling device, the first identifier to the target controller, so that the target controller and the network forwarding device perform a matching relationship according to the first identifier and the second identifier Networking
所述网络调度设备接收所述目标控制器发送的组网成功通知消息, 向 所述源控制器发送释放控制权响应信息。  The network scheduling device receives a networking success notification message sent by the target controller, and sends release control right response information to the source controller.
结合第一方面或第一方面的第一种可能的实现方式, 在第一方面的第 二种可能的实现方式中, 所述网络调度设备生成用于网络转发设备和源控 制器进行组网的标识符对之前, 还包括:  With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the network scheduling device generates a network forwarding device and a source controller for networking Before the identifier pair, it also includes:
所述网络调度设备接收所述网络转发设备发送的标识符请求信息, 所 述标识符请求信息中包括所述网络转发设备的标识;  The network scheduling device receives identifier request information sent by the network forwarding device, where the identifier request information includes an identifier of the network forwarding device;
所述网络调度设备根据所述网络转发设备的标识以及合法网络转发 设备标识列表, 确定所述网络转发设备认证通过;  Determining, by the network scheduling device, that the network forwarding device passes the authentication according to the identifier of the network forwarding device and the legal network forwarding device identifier list;
所述网络调度设备根据所述软件定义网络的状态信息, 在已注册的控 制器中, 选择所述源控制器与所述网络转发设备进行组网。  The network scheduling device selects, according to the state information of the software-defined network, the source controller and the network forwarding device to perform networking in the registered controller.
结合第一方面的第二种可能的实现方式, 在第一方面的第三种可能的 实现方式中, 在所述网络调度设备接收所述网络转发设备发送的标识符请 求信息之前, 还包括:  In conjunction with the second possible implementation of the first aspect, in a third possible implementation manner of the first aspect, before the network scheduling device receives the identifier request information sent by the network forwarding device, the method further includes:
所述网络调度设备获取所述合法网络转发设备标识列表, 所述合法网 络转发设备标识列表用于对所述网络转发设备进行认证; 所述网络调度设备接收所述源控制器发送的注册请求, 向所述源控制 器发送注册成功响应; The network scheduling device obtains the legal network forwarding device identifier list, where the legal network forwarding device identifier list is used to authenticate the network forwarding device; Receiving, by the network scheduling device, a registration request sent by the source controller, and sending a registration success response to the source controller;
所述网络调度设备接收所述目标控制器发送的注册请求, 向所述目标 控制器发送注册成功响应。  The network scheduling device receives a registration request sent by the target controller, and sends a registration success response to the target controller.
结合第一方面、 第一方面的第一种至第三种任一种可能的实现方式, 在第一方面的第四种可能的实现方式中, 所述网络调度设备生成用于源控 制器和网络转发设备进行组网的标识符对, 包括如下任一种:  With reference to the first aspect, the first to the third possible implementation manners of the first aspect, in a fourth possible implementation manner of the first aspect, the network scheduling device generates a source controller and The network forwarding device performs the identifier pair of the networking, including any of the following:
所述网络调度设备根据预设匹配规则生成所述标识符对;  Generating, by the network scheduling device, the identifier pair according to a preset matching rule;
所述网络调度设备根据预设加密算法生成所述标识符对。  The network scheduling device generates the identifier pair according to a preset encryption algorithm.
结合第一方面、 第一方面的第一种至第四种任一种可能的实现方式, 在第一方面的第五种可能的实现方式中, 所述网络调度设备将所述标识符 对中的第一标识符发送给源控制器, 将所述标识符对中的第二标识符发送 给网络转发设备之前, 还包括:  With reference to the first aspect, the first to fourth possible implementation manners of the first aspect, in a fifth possible implementation manner of the first aspect, the network scheduling device The first identifier is sent to the source controller, and before the second identifier in the identifier pair is sent to the network forwarding device, the method further includes:
所述网络调度设备生成所述网络转发设备的连接地址, 所述连接地址 与所述源控制器的默认地址属于同一网段;  The network scheduling device generates a connection address of the network forwarding device, where the connection address belongs to the same network segment as the default address of the source controller;
所述网络调度设备将所述标识符对中的第二标识符发送给网络转发 设备, 包括:  The network scheduling device sends the second identifier in the identifier pair to the network forwarding device, including:
所述网络调度设备将所述网络转发设备的连接地址以及所述标识符 对中的第二标识符发送给网络转发设备。  The network scheduling device transmits a connection address of the network forwarding device and a second identifier in the identifier pair to a network forwarding device.
结合第一方面的第五种可能的实现方式, 在第一方面的第六种可能的 实现方式中, 所述方法还包括:  With reference to the fifth possible implementation of the first aspect, in a sixth possible implementation manner of the first aspect, the method further includes:
所述网络转发设备接收所述网络调度设备发送的所述第二标识符, 在 软件定义网络的控制平面广播第一网络转发设备匹配信息, 所述第一网络 转发设备匹配信息包括所述第二标识符和所述网络转发设备的地址信息, 接收所述源控制器在确定所述第一标识符和所述第二标识符满足所述匹 配关系后、 根据所述网络转发设备的地址信息发送的第一源控制器匹配信 息, 所述第一源控制器匹配信息包括所述第一标识符和所述源控制器的地 址信息, 确定所述源控制器发送的所述第一标识符与所述第二标识符满足 所述匹配关系, 根据所述源控制器的地址信息, 建立与所述源控制器的连 接; 或者 所述源控制器接收所述网络调度设备发送的所述第一标识符, 在软件 定义网络的控制平面广播第二源控制器匹配信息, 所述第二源控制器匹配 信息包括所述第一标识符和所述源控制的地址信息, 接收所述网络转发设 备在确定所述第一标识符和所述第二标识符满足所述匹配关系后、 根据所 述源控制器的地址信息发送的第二网络转发设备匹配信息, 所述第二网络 转发设备匹配信息中包括所述第二标识符和所述网络转发设备的地址信 息, 确定所述网络转发设备发送的所述第二标识符与所述第一标识符满足 所述匹配关系, 根据所述网络转发设备的地址信息, 建立与所述网络转发 设备的连接。 Receiving, by the network forwarding device, the second identifier sent by the network scheduling device, broadcasting, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes the second identifier The identifier and the address information of the network forwarding device, after receiving the source controller, after determining that the first identifier and the second identifier satisfy the matching relationship, sending, according to the address information of the network forwarding device The first source controller matching information, the first source controller matching information includes the first identifier and address information of the source controller, and determining the first identifier sent by the source controller The second identifier satisfies the matching relationship, and establishes a connection with the source controller according to the address information of the source controller; or Receiving, by the source controller, the first identifier sent by the network scheduling device, and broadcasting, by the control plane of the software-defined network, second source controller matching information, where the second source controller matching information includes the first The identifier and the address information of the source control are sent by the network forwarding device according to the address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship The second network forwarding device matching information, where the second network forwarding device matching information includes the second identifier and address information of the network forwarding device, and determining the second identifier sent by the network forwarding device The first identifier satisfies the matching relationship, and establishes a connection with the network forwarding device according to the address information of the network forwarding device.
第二方面, 本发明实施例提供一种基于软件定义网络的组网方法, 包 括:  In a second aspect, an embodiment of the present invention provides a networking method based on a software-defined network, including:
网络转发设备接收网络调度设备发送的标识符对中的第二标识符; 所 述标识符对包括第一标识符和所述第二标识符, 所述第一标识符为所述网 络调度设备向源控制器发送的标识符, 所述第一标识符和所述第二标识符 具有匹配关系;  The network forwarding device receives a second identifier in the identifier pair sent by the network scheduling device; the identifier pair includes a first identifier and the second identifier, and the first identifier is the network scheduling device An identifier sent by the source controller, the first identifier and the second identifier having a matching relationship;
所述网络转发设备在软件定义网络的控制平面广播第一网络转发设 备匹配信息, 所述第一网络转发设备匹配信息包括所述第二标识符和所述 网络转发设备的地址信息;  The network forwarding device broadcasts, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes the second identifier and address information of the network forwarding device;
所述网络转发设备接收所述源控制器在确定所述第一标识符和所述 第二标识符满足所述匹配关系后、 根据所述网络转发设备的地址信息发送 的第一源控制器匹配信息, 所述第一源控制器匹配信息包括所述第一标识 符和所述源控制器的地址信息;  Receiving, by the network forwarding device, the first source controller that is sent according to the address information of the network forwarding device after the source controller determines that the first identifier and the second identifier satisfy the matching relationship Information, the first source controller matching information includes the first identifier and address information of the source controller;
所述网络转发设备确定所述源控制器发送的所述第一标识符与所述 第二标识符满足所述匹配关系, 根据所述源控制器的地址信息, 建立与所 述源控制器的连接。  Determining, by the network forwarding device, that the first identifier and the second identifier sent by the source controller meet the matching relationship, and establishing, with the source controller, the source controller connection.
结合第二方面, 在第二方面的第一种可能的实现方式中, 还包括: 所述网络转发设备接收所述源控制器在所述软件定义网络的控制平 面广播的第二源控制器匹配信息, 所述第二源控制器匹配信息包括所述第 一标识符和所述源控制器的地址信息;  With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes: the network forwarding device receiving, by the source controller, a second source controller that is broadcasted by a control plane of the software-defined network Information, the second source controller matching information includes the first identifier and address information of the source controller;
所述网络转发设备确定所述第一标识符和所述第二标识符满足所述 匹配关系, 根据所述源控制器的地址信息, 向所述源控制器发送第二网络 转发设备匹配信息, 所述第二网络转发设备匹配信息包括所述第二标识符 和所述网络转发设备的地址信息, 以使所述源控制器根据所述第一标识符 和所述第二标识符的匹配关系和所述网络转发设备的地址信息, 建立与所 述网络转发设备的连接。 The network forwarding device determines that the first identifier and the second identifier satisfy the a matching relationship, the second network forwarding device matching information is sent to the source controller according to the address information of the source controller, where the second network forwarding device matching information includes the second identifier and the network forwarding device The address information, so that the source controller establishes a connection with the network forwarding device according to the matching relationship between the first identifier and the second identifier and the address information of the network forwarding device.
结合第二方面或第二方面的第一种可能的实现方式, 在第二方面的第 二种可能的实现方式中, 所述网络转发设备接收网络调度设备发送的标识 符对中的第二标识符之前, 还包括:  With the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the network forwarding device receives the second identifier in the identifier pair sent by the network scheduling device Before the character, it also includes:
所述网络转发设备向所述网络调度设备发送标识符请求信息, 所述标 识符请求信息中包括所述网络转发设备的标识, 以使所述网络调度设备对 所述网络转发设备进行认证。  The network forwarding device sends identifier request information to the network scheduling device, where the identifier request information includes an identifier of the network forwarding device, so that the network scheduling device authenticates the network forwarding device.
结合第二方面、 第二方面的第一种、 第二种任一种可能的实现方式, 在第一方面的第三种可能的实现方式中, 在所述源控制器根据所述源控制 器的工作状态, 触发对所述网络转发设备的控制权切换, 所述源控制器向 所述网络调度设备发送释放控制权请求消息, 所述网络调度设备向目标控 制器发送所述第一标识符条件下, 所述网络转发设备建立与所述源控制器 的连接之后, 还包括:  With reference to the second aspect, the first aspect of the second aspect, and the second possible implementation manner, in a third possible implementation manner of the first aspect, the source controller is configured according to the source controller The working state triggers a control right handover to the network forwarding device, the source controller sends a release control right request message to the network scheduling device, and the network scheduling device sends the first identifier to the target controller After the network forwarding device establishes a connection with the source controller, the method further includes:
所述网络转发设备接收所述目标控制器在所述软件定义网络的控制 平面广播的第一目标控制器匹配信息, 所述第一目标控制器匹配信息包括 所述第一标识符和所述目标控制器的地址信息;  Receiving, by the network forwarding device, first target controller matching information that is broadcast by the target controller on a control plane of the software-defined network, where the first target controller matching information includes the first identifier and the target Address information of the controller;
所述网络转发设备确定所述目标控制器广播的所述第一标识符和所 述第二标识符满足所述匹配关系;  Determining, by the network forwarding device, that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship;
所述网络转发设备根据所述目标控制器的地址信息, 向所述目标控制 器发送第三网络转发设备匹配信息, 所述第三网络转发设备匹配信息包括 所述第二标识符和所述网络转发设备的地址信息, 以使所述目标控制器根 据所述第一标识符和所述第二标识符的匹配关系以及所述网络转发设备 的地址信息, 建立与所述网络转发设备的连接。  Transmitting, by the network forwarding device, third network forwarding device matching information to the target controller according to the address information of the target controller, where the third network forwarding device matching information includes the second identifier and the network Forwarding the address information of the device, so that the target controller establishes a connection with the network forwarding device according to the matching relationship between the first identifier and the second identifier and the address information of the network forwarding device.
结合第二方面的第三种可能的实现方式, 在第二方面的第四种可能的 实现方式中, 所述目标控制器的地址信息包括所述目标控制器的默认地 址; 所述源控制器的地址信息包括所述源控制器的默认地址; 所述网络转发设备的地址信息包括所述网络转发设备的默认地址或 所述网络调度设备为所述网络转发设备分配的连接地址, 所述连接地址与 所述源控制器的默认地址属于同一网段。 With reference to the third possible implementation of the second aspect, in a fourth possible implementation manner of the second aspect, the address information of the target controller includes a default address of the target controller; The address information of the source controller includes a default address of the source controller; the address information of the network forwarding device includes a default address of the network forwarding device or a connection allocated by the network scheduling device to the network forwarding device. An address, where the connection address belongs to the same network segment as the default address of the source controller.
第三方面, 本发明实施例提供一种基于软件定义网络的组网方法, 包 括:  In a third aspect, an embodiment of the present invention provides a networking method based on a software-defined network, including:
源控制器接收网络调度设备发送的标识符对中的第一标识符; 所述标 识符对包括所述第一标识符和第二标识符, 所述第二标识符为所述网络调 度设备向网络转发设备发送的标识符, 所述第一标识符和所述第二标识符 具有匹配关系;  The source controller receives the first identifier in the pair of identifiers sent by the network scheduling device; the identifier pair includes the first identifier and the second identifier, and the second identifier is the network scheduling device An identifier sent by the network forwarding device, where the first identifier and the second identifier have a matching relationship;
所述源控制器在软件定义网络的控制平面广播第二源控制器匹配信 息, 所述第二源控制器匹配信息包括所述第一标识符和所述源控制的地址 The source controller broadcasts second source controller matching information on a control plane of the software defined network, the second source controller matching information including the first identifier and the source controlled address
I Ή自、 ., I Ή自, .,
所述源控制器接收所述网络转发设备在确定所述第一标识符和所述 第二标识符满足所述匹配关系后、 根据所述源控制器的地址信息发送的第 二网络转发设备匹配信息, 所述第二网络转发设备匹配信息中包括所述第 二标识符和所述网络转发设备的地址信息;  The source controller receives, by the network forwarding device, a second network forwarding device that is sent according to the address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship. Information, the second network forwarding device matching information includes the second identifier and address information of the network forwarding device;
所述源控制器确定所述网络转发设备发送的所述第二标识符与所述 第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信息, 建立 与所述网络转发设备的连接。  Determining, by the source controller, that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establishing, according to the address information of the network forwarding device, the network forwarding device connection.
结合第三方面, 在第三方面的第一种可能的实现方式中, 还包括: 所述源控制器接收所述网络转发设备在所述软件定义网络的控制平 面广播的第一网络转发设备匹配信息, 所述第一网络转发设备匹配信息包 括第二标识符和所述网络转发设备的地址信息;  With reference to the third aspect, in a first possible implementation manner of the third aspect, the method further includes: the source controller receiving, by the network forwarding device, a first network forwarding device that is broadcasted by a control plane of the software-defined network Information, the first network forwarding device matching information includes a second identifier and address information of the network forwarding device;
所述源控制器确定所述第一标识符和所述第二标识符满足所述匹配 关系;  The source controller determines that the first identifier and the second identifier satisfy the matching relationship;
所述源控制器根据所述网络转发设备的地址信息, 向所述网络转发设 备发送第一源控制器匹配信息, 所述第一源控制器匹配信息包括所述第一 标识符和所述源控制器的地址信息, 以使所述网络转发设备根据所述第一 标识符和所述第二标识符的匹配关系以及所述源控制的地址信息建立与 所述源控制器的连接。 The source controller sends first source controller matching information to the network forwarding device according to address information of the network forwarding device, where the first source controller matching information includes the first identifier and the source Address information of the controller, so that the network forwarding device establishes and matches the matching relationship between the first identifier and the second identifier and the address information of the source control The connection of the source controller.
结合第三方面或第三方面的第一种可能的实现方式, 在第三方面的第 二种可能的实现方式中, 所述源控制器建立与所述网络转发设备的连接之 后, 还包括:  With the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, after the source controller establishes a connection with the network forwarding device, the method further includes:
所述源控制器根据所述源控制器的工作状态, 触发对所述网络转发设 备的控制权切换;  The source controller triggers a control right switchover of the network forwarding device according to an operating state of the source controller;
所述源控制器向所述网络调度设备发送释放控制权请求消息, 以使所 述网络调度设备向目标控制器发送所述第一标识符;  Sending, by the source controller, a release control right request message to the network scheduling device, to enable the network scheduling device to send the first identifier to a target controller;
所述源控制器接收所述网络调度设备在所述目标控制器与所述网络 转发设备建立连接后, 发送的释放控制权响应信息。  And the source controller receives the release control right response information sent by the network scheduling device after the target controller establishes a connection with the network forwarding device.
结合第三方面或第三方面的第一种可能的实现方式, 在第三方面的第 三种可能的实现方式中, 所述源控制器建立与所述网络转发设备的连接之 后, 还包括:  With the third aspect or the first possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, after the source controller establishes a connection with the network forwarding device, the method further includes:
所述源控制器根据所述源控制器的工作状态, 触发对所述网络转发设 备的控制权切换;  The source controller triggers a control right switchover of the network forwarding device according to an operating state of the source controller;
所述源控制器确定目标控制器, 向所述目标控制器发送所述第一标识 符, 以使所述目标控制器根据所述第一标识符和所述第二标识符的匹配关 系建立与所述网络转发设备的连接;  The source controller determines a target controller, and sends the first identifier to the target controller, so that the target controller establishes a match according to a matching relationship between the first identifier and the second identifier The connection of the network forwarding device;
所述源控制器接收所述目标控制器发送的所述目标控制器与所述网 络转发设备成功建立连接的通知消息;  The source controller receives a notification message that the target controller sent by the target controller successfully establishes a connection with the network forwarding device;
所述源控制器释放对所述网络转发设备的控制权。  The source controller releases control of the network forwarding device.
结合第三方面的第二种或第三种可能的实现方式, 在第三方面的第四 种可能的实现方式中, 所述目标控制器的地址信息包括所述目标控制器的 默认地址;  With reference to the second or third possible implementation of the third aspect, in a fourth possible implementation manner of the third aspect, the address information of the target controller includes a default address of the target controller;
所述源控制器的地址信息包括所述源控制器的默认地址;  The address information of the source controller includes a default address of the source controller;
所述网络转发设备的地址信息包括所述网络转发设备的默认地址或 所述网络调度设备为所述网络转发设备分配的连接地址, 所述连接地址与 所述源控制器的默认地址属于同一网段。  The address information of the network forwarding device includes a default address of the network forwarding device or a connection address allocated by the network scheduling device to the network forwarding device, where the connection address belongs to the same network as the default address of the source controller. segment.
第四方面, 本发明提供一种基于软件定义网络的组网方法, 包括: 目标控制器接收网络调度设备或源控制器发送的标识符对中的第一 标识符, 所述标识符对包括第一标识符和第二标识符, 所述第二标识符为 所述网络调度设备向网络转发设备发送的标识符, 所述第一标识符为源控 制器向所述网络调度设备发送的标识符, 所述第一标识符和所述第二标识 符具有匹配关系; In a fourth aspect, the present invention provides a networking method based on a software-defined network, including: the target controller receives the first identifier pair sent by the network scheduling device or the source controller. An identifier, the identifier pair includes a first identifier and a second identifier, where the second identifier is an identifier sent by the network scheduling device to a network forwarding device, where the first identifier is a source controller An identifier sent to the network scheduling device, the first identifier and the second identifier having a matching relationship;
所述目标控制器在软件定义网络的控制平面广播第一目标控制器匹 配信息, 所述第一目标控制器匹配信息包括所述第一标识符和所述目标控 制器的地址信息;  The target controller broadcasts first target controller matching information on a control plane of the software defined network, the first target controller matching information including the first identifier and address information of the target controller;
所述目标控制器接收所述网络转发设备在确定所述第一标识符和所 述第二标识符满足所述匹配关系后、 根据所述目标控制器的地址信息发送 的第三网络转发设备匹配信息, 所述第三网络转发设备匹配信息包括所述 第二标识符和所述网络转发设备的地址信息;  Receiving, by the target controller, the third network forwarding device that is sent according to the address information of the target controller after the network forwarding device determines that the first identifier and the second identifier satisfy the matching relationship Information, the third network forwarding device matching information includes the second identifier and address information of the network forwarding device;
所述目标控制器确定所述网络转发设备发送的所述第二标识符与所 述第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信息, 建 立与所述网络转发设备的连接。  Determining, by the target controller, that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establishing, according to the address information of the network forwarding device, the network forwarding device connection.
结合第四方面, 在第四方面的第一种可能的实现方式中, 所述目标控 制器建立与所述网络转发设备的连接之后, 还包括:  With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, after the target controller establishes a connection with the network forwarding device, the method further includes:
所述目标控制器向所述网络调度设备发送组网成功通知消息, 以使所 述网络调度设备向源控制器发送释放控制权响应消息; 或者  Sending, by the target controller, a networking success notification message to the network scheduling device, so that the network scheduling device sends a release control right response message to the source controller; or
所述目标控制器向所述源控制器发送组网成功通知消息, 以使所述源 控制器释放控制权。  The target controller sends a networking success notification message to the source controller to cause the source controller to release control.
结合第四方面或第四方面的第一种可能的实现方式, 在第四方面的第 二种可能的实现方式中, 所述目标控制器的地址信息包括所述目标控制器 的默认地址;  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 address information of the target controller includes a default address of the target controller;
所述网络转发设备的地址信息包括所述网络转发设备的默认地址或 所述网络调度设备为所述网络转发设备分配的连接地址, 所述连接地址与 所述源控制器的默认地址属于同一网段。  The address information of the network forwarding device includes a default address of the network forwarding device or a connection address allocated by the network scheduling device to the network forwarding device, where the connection address belongs to the same network as the default address of the source controller. segment.
第五方面, 本发明提供一种网络调度设备, 包括:  In a fifth aspect, the present invention provides a network scheduling device, including:
生成模块, 用于生成用于源控制器和网络转发设备进行组网的标识符 对;  a generating module, configured to generate an identifier pair for networking between the source controller and the network forwarding device;
标识符发送模块, 用于将所述标识符对中的第一标识符发送给源控制 器, 将所述标识符对中的第二标识符发送给网络转发设备, 所述第一标识 符和所述第二标识符具有匹配关系, 以使所述源控制器和所述网络转发设 备根据所述第一标识符和所述第二标识符的匹配关系进行组网。 An identifier sending module, configured to send the first identifier in the identifier pair to source control Transmitting the second identifier in the identifier pair to the network forwarding device, the first identifier and the second identifier having a matching relationship, so that the source controller and the network forwarding device And performing networking according to the matching relationship between the first identifier and the second identifier.
结合第五方面, 在第五方面的第一种可能的实现方式中, 还包括: 接收模块, 用于在所述标识符发送模块将所述标识符对中的第一标识 符发送给源控制器, 将所述标识符对中的第二标识符发送给网络转发设备 之后, 接收所述源控制器发送的释放控制权请求信息; 其中, 所述源控制 器和所述网络转发设备组网成功之后, 所述源控制器对所述网络转发设备 具有控制权;  With reference to the fifth aspect, in a first possible implementation manner of the fifth aspect, the method further includes: a receiving module, configured to send, by the identifier sending module, the first identifier in the identifier pair to source control After transmitting the second identifier of the identifier pair to the network forwarding device, receiving the release control right request information sent by the source controller, where the source controller and the network forwarding device network After the success, the source controller has control over the network forwarding device;
选择模块, 用于根据所述软件定义网络的状态信息, 在已注册的控制 器中, 选择目标控制器与所述网络转发设备进行组网;  a selection module, configured to select, according to the state information of the software-defined network, a target controller and the network forwarding device to perform networking in the registered controller;
所述标识符发送模块还用于, 向所述目标控制器发送所述第一标识 符, 以使所述目标控制器和所述网络转发设备根据所述第一标识符和所述 第二标识符的匹配关系进行组网;  The identifier sending module is further configured to send the first identifier to the target controller, so that the target controller and the network forwarding device are configured according to the first identifier and the second identifier The matching relationship of the characters is organized;
所述接收模块还用于, 接收所述目标控制器发送的组网成功通知消 息, 向所述源控制器发送释放控制权响应信息。  The receiving module is further configured to: receive a network success notification message sent by the target controller, and send release control right response information to the source controller.
结合第五方面或第五方面的第一种可能的实现方式, 在第五方面的第 二种可能的实现方式中, 所述接收模块还用于, 在所述生成模块生成用于 网络转发设备和源控制器进行组网的标识符对之前, 接收所述网络转发设 备发送的标识符请求信息, 所述标识符请求信息中包括所述网络转发设备 的标识;  With the fifth aspect or the first possible implementation manner of the fifth aspect, in a second possible implementation manner of the fifth aspect, the receiving module is further configured to generate, in the generating module, a network forwarding device Receiving, by the source controller, the identifier request information sent by the network forwarding device, where the identifier request information includes the identifier of the network forwarding device;
还包括: 认证模块, 用于根据所述网络转发设备的标识以及合法网络 转发设备标识列表, 确定所述网络转发设备认证通过;  The method further includes: an authentication module, configured to determine, according to the identifier of the network forwarding device and the legal network forwarding device identifier list, that the network forwarding device passes the authentication;
所述选择模块还用于, 根据所述软件定义网络的状态信息, 在已注册 的控制器中, 选择所述源控制器与所述网络转发设备进行组网。  The selection module is further configured to select, according to the state information of the software-defined network, the source controller and the network forwarding device to perform networking in the registered controller.
结合第五方面的第二种可能的实现方式, 在第五方面的第三种可能的 实现方式中, 所述网络转发设备接收所述网络调度设备发送的所述第二标 识符, 在软件定义网络的控制平面广播第一网络转发设备匹配信息, 所述 第一网络转发设备匹配信息包括所述第二标识符和所述网络转发设备的 地址信息, 接收所述源控制器在确定所述第一标识符和所述第二标识符满 足所述匹配关系后、 根据所述网络转发设备的地址信息发送的第一源控制 器匹配信息, 所述第一源控制器匹配信息包括所述第一标识符和所述源控 制器的地址信息, 确定所述源控制器发送的所述第一标识符与所述第二标 识符满足所述匹配关系, 根据所述源控制器的地址信息, 建立与所述源控 制器的连接; 或者 With the second possible implementation of the fifth aspect, in a third possible implementation manner of the fifth aspect, the network forwarding device receives the second identifier sent by the network scheduling device, in a software definition The control plane of the network broadcasts the first network forwarding device matching information, where the first network forwarding device matching information includes the second identifier and address information of the network forwarding device, and the receiving the source controller determines the first An identifier and the second identifier are full After the matching relationship, the first source controller matching information sent according to the address information of the network forwarding device, the first source controller matching information includes the first identifier and an address of the source controller Determining that the first identifier sent by the source controller and the second identifier satisfy the matching relationship, and establishing a connection with the source controller according to the address information of the source controller; or
所述源控制器接收所述网络调度设备发送的所述第一标识符, 在软件 定义网络的控制平面广播第二源控制器匹配信息, 所述第二源控制器匹配 信息包括所述第一标识符和所述源控制的地址信息, 接收所述网络转发设 备在确定所述第一标识符和所述第二标识符满足所述匹配关系后、 根据所 述源控制器的地址信息发送的第二网络转发设备匹配信息, 所述第二网络 转发设备匹配信息中包括所述第二标识符和所述网络转发设备的地址信 息, 确定所述网络转发设备发送的所述第二标识符与所述第一标识符满足 所述匹配关系, 根据所述网络转发设备的地址信息, 建立与所述网络转发 设备的连接。  Receiving, by the source controller, the first identifier sent by the network scheduling device, and broadcasting, by the control plane of the software-defined network, second source controller matching information, where the second source controller matching information includes the first The identifier and the address information of the source control are sent by the network forwarding device according to the address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship The second network forwarding device matching information, where the second network forwarding device matching information includes the second identifier and address information of the network forwarding device, and determining the second identifier sent by the network forwarding device The first identifier satisfies the matching relationship, and establishes a connection with the network forwarding device according to the address information of the network forwarding device.
第六方面, 本发明实施例提供一种网络转发设备, 包括:  A sixth aspect of the present invention provides a network forwarding device, including:
接收模块, 用于接收网络调度设备发送的标识符对中的第二标识符; 所述标识符对包括第一标识符和所述第二标识符, 所述第一标识符为所述 网络调度设备向源控制器发送的标识符, 所述第一标识符和所述第二标识 符具有匹配关系;  a receiving module, configured to receive a second identifier in an identifier pair sent by the network scheduling device; the identifier pair includes a first identifier and the second identifier, where the first identifier is the network scheduling An identifier sent by the device to the source controller, the first identifier and the second identifier having a matching relationship;
广播模块, 用于在软件定义网络的控制平面广播第一网络转发设备匹 配信息, 所述第一网络转发设备匹配信息包括所述第二标识符和所述网络 转发设备的地址信息;  a broadcast module, configured to broadcast, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes the second identifier and address information of the network forwarding device;
所述接收模块还用于, 接收所述源控制器在确定所述第一标识符和所 述第二标识符满足所述匹配关系后、 根据所述网络转发设备的地址信息发 送的第一源控制器匹配信息, 所述第一源控制器匹配信息包括所述第一标 识符和所述源控制器的地址信息;  The receiving module is further configured to: receive, by the source controller, a first source that is sent according to address information of the network forwarding device after determining that the first identifier and the second identifier satisfy the matching relationship The controller matches the information, where the first source controller matching information includes the first identifier and address information of the source controller;
处理模块, 用于确定所述源控制器发送的所述第一标识符与所述第二 标识符满足所述匹配关系, 根据所述源控制器的地址信息, 建立与所述源 控制器的连接。  a processing module, configured to determine that the first identifier and the second identifier sent by the source controller meet the matching relationship, and establish, with the source controller, the source controller according to the address information of the source controller connection.
结合第六方面, 在第六方面的第一种可能的实现方式中, 所述接收模 块还用于, 接收所述源控制器在所述软件定义网络的控制平面广播的第二 源控制器匹配信息, 所述第二源控制器匹配信息包括所述第一标识符和所 述源控制器的地址信息; With reference to the sixth aspect, in a first possible implementation manner of the sixth aspect, the receiving module The block is further configured to receive second source controller matching information that is broadcast by the source controller on a control plane of the software-defined network, where the second source controller matching information includes the first identifier and the source Address information of the controller;
所述处理模块还用于, 确定所述第一标识符和所述第二标识符满足所 述匹配关系, 根据所述源控制器的地址信息, 向所述源控制器发送第二网 络转发设备匹配信息, 所述第二网络转发设备匹配信息包括所述第二标识 符和所述网络转发设备的地址信息, 以使所述源控制器根据所述第一标识 符和所述第二标识符的匹配关系和所述网络转发设备的地址信息, 建立与 所述网络转发设备的连接。  The processing module is further configured to: determine that the first identifier and the second identifier meet the matching relationship, and send a second network forwarding device to the source controller according to address information of the source controller Matching information, the second network forwarding device matching information includes the second identifier and address information of the network forwarding device, so that the source controller is configured according to the first identifier and the second identifier The matching relationship and the address information of the network forwarding device establish a connection with the network forwarding device.
结合第六方面或第六方面的第一种可能的实现方式, 在第六方面的第 二种可能的实现方式中, 所述接收模块还用于, 在所述源控制器根据所述 源控制器的工作状态, 触发对所述网络转发设备的控制权切换, 所述源控 制器向所述网络调度设备发送释放控制权请求消息, 所述网络调度设备向 目标控制器发送所述第一标识符条件下, 所述处理模块建立与所述源控制 器的连接之后, 所述网络转发设备接收所述目标控制器在所述软件定义网 络的控制平面广播的第一目标控制器匹配信息, 所述第一目标控制器匹配 信息包括所述第一标识符和所述目标控制器的地址信息;  With reference to the sixth aspect, or the first possible implementation manner of the sixth aspect, in a second possible implementation manner of the sixth aspect, the receiving module is further configured to: control, by the source controller, according to the source The working state of the device triggers a control right handover to the network forwarding device, the source controller sends a release control right request message to the network scheduling device, and the network scheduling device sends the first identifier to the target controller After the processing module establishes a connection with the source controller, the network forwarding device receives the first target controller matching information broadcast by the target controller on the control plane of the software-defined network. The first target controller matching information includes the first identifier and address information of the target controller;
所述处理模块还用于, 确定所述目标控制器广播的所述第一标识符和 所述第二标识符满足所述匹配关系;  The processing module is further configured to: determine that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship;
还包括, 发送模块, 用于根据所述目标控制器的地址信息, 向所述目 标控制器发送第三网络转发设备匹配信息, 所述第三网络转发设备匹配信 息包括所述第二标识符和所述网络转发设备的地址信息, 以使所述目标控 制器根据所述第一标识符和所述第二标识符的匹配关系以及所述网络转 发设备的地址信息, 建立与所述网络转发设备的连接。  And a sending module, configured to send third network forwarding device matching information to the target controller according to the address information of the target controller, where the third network forwarding device matching information includes the second identifier and The network forwarding device address information, so that the target controller establishes with the network forwarding device according to the matching relationship between the first identifier and the second identifier and the address information of the network forwarding device. Connection.
第七方面, 本发明实施例提供一种控制器, 所述控制器为源控制器, 包括:  According to a seventh aspect, an embodiment of the present invention provides a controller, where the controller is a source controller, and includes:
接收模块, 用于接收网络调度设备发送的标识符对中的第一标识符; 所述标识符对包括所述第一标识符和第二标识符, 所述第二标识符为所述 网络调度设备向网络转发设备发送的标识符, 所述第一标识符和所述第二 标识符具有匹配关系; 广播模块, 用于在软件定义网络的控制平面广播第二源控制器匹配信 息, 所述第二源控制器匹配信息包括所述第一标识符和所述源控制的地址a receiving module, configured to receive a first identifier in an identifier pair sent by a network scheduling device; the identifier pair includes the first identifier and a second identifier, and the second identifier is the network scheduling An identifier sent by the device to the network forwarding device, where the first identifier and the second identifier have a matching relationship; a broadcast module, configured to broadcast second source controller matching information on a control plane of the software-defined network, where the second source controller matching information includes the first identifier and the source-controlled address
I Ή自、 ., I Ή自, .,
所述接收模块还用于, 接收所述网络转发设备在确定所述第一标识符 和所述第二标识符满足所述匹配关系后、 根据所述源控制器的地址信息发 送的第二网络转发设备匹配信息, 所述第二网络转发设备匹配信息中包括 所述第二标识符和所述网络转发设备的地址信息;  The receiving module is further configured to: receive, by the network forwarding device, a second network that is sent according to address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship Forwarding device matching information, where the second network forwarding device matching information includes the second identifier and address information of the network forwarding device;
处理模块, 用于确定所述网络转发设备发送的所述第二标识符与所述 第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信息, 建立 与所述网络转发设备的连接。  a processing module, configured to determine that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establish, according to address information of the network forwarding device, a network forwarding device connection.
结合第七方面, 在第七方面的第一种可能的实现方式中,  With reference to the seventh aspect, in a first possible implementation manner of the seventh aspect,
所述接收模块还用于, 接收所述网络转发设备在所述软件定义网络的 控制平面广播的第一网络转发设备匹配信息, 所述第一网络转发设备匹配 信息包括第二标识符和所述网络转发设备的地址信息;  The receiving module is further configured to: receive, by the network forwarding device, first network forwarding device matching information that is broadcasted by a control plane of the software-defined network, where the first network forwarding device matching information includes a second identifier and the Address information of the network forwarding device;
所述处理模块, 还用于确定所述第一标识符和所述第二标识符满足所 述匹配关系;  The processing module is further configured to determine that the first identifier and the second identifier satisfy the matching relationship;
还包括, 第一发送模块, 用于根据所述网络转发设备的地址信息, 向 所述网络转发设备发送第一源控制器匹配信息, 所述第一源控制器匹配信 息包括所述第一标识符和所述源控制器的地址信息, 以使所述网络转发设 备根据所述第一标识符和所述第二标识符的匹配关系以及所述源控制的 地址信息建立与所述源控制器的连接。  The first sending module is configured to send first source controller matching information to the network forwarding device according to the address information of the network forwarding device, where the first source controller matching information includes the first identifier And the address information of the source controller, so that the network forwarding device establishes with the source controller according to the matching relationship between the first identifier and the second identifier and the address information of the source control Connection.
结合第七方面或第七方面的第一种可能的实现方式, 在第七方面的第 二种可能的实现方式中, 还包括:  With reference to the seventh aspect, or the first possible implementation manner of the seventh aspect, in a second possible implementation manner of the seventh aspect, the method further includes:
第一切换模块, 用于在所述处理模块建立与所述网络转发设备的连接 之后, 根据所述源控制器的工作状态, 触发对所述网络转发设备的控制权 切换;  a first switching module, configured to trigger a control right handover to the network forwarding device according to an operating state of the source controller after the processing module establishes a connection with the network forwarding device;
第二发送模块, 用于向所述网络调度设备发送释放控制权请求消息, 以使所述网络调度设备向目标控制器发送所述第一标识符;  a second sending module, configured to send a release control right request message to the network scheduling device, to enable the network scheduling device to send the first identifier to a target controller;
所述接收模块还用于, 接收所述网络调度设备在所述目标控制器与所 述网络转发设备建立连接后, 发送的释放控制权响应信息。 结合第七方面或第七方面的第一种可能的实现方式, 在第七方面的第 三种可能的实现方式中, 还包括: The receiving module is further configured to: receive release control right response information sent by the network scheduling device after the target controller establishes a connection with the network forwarding device. With reference to the seventh aspect, or the first possible implementation manner of the seventh aspect, in a third possible implementation manner of the seventh aspect, the method further includes:
第二切换模块, 用于在所述处理模块建立与所述网络转发设备的连接 之后, 根据所述源控制器的工作状态, 触发对所述网络转发设备的控制权 切换;  a second switching module, configured to trigger a control right handover to the network forwarding device according to an operating state of the source controller after the processing module establishes a connection with the network forwarding device;
第三发送模块, 用于确定目标控制器, 向所述目标控制器发送所述第 一标识符, 以使所述目标控制器根据所述第一标识符和所述第二标识符的 匹配关系建立与所述网络转发设备的连接;  a third sending module, configured to determine a target controller, and send the first identifier to the target controller, so that the target controller performs a matching relationship according to the first identifier and the second identifier Establishing a connection with the network forwarding device;
所述接收模块还用于, 接收所述目标控制器发送的所述目标控制器与 所述网络转发设备成功建立连接的通知消息;  The receiving module is further configured to: receive a notification message that the target controller sent by the target controller successfully establishes a connection with the network forwarding device;
所述处理模块还用于, 释放对所述网络转发设备的控制权。  The processing module is further configured to release control of the network forwarding device.
第八方面, 本发明提供一种控制器, 所述控制器为目标控制器, 包括: 接收模块, 用于接收网络调度设备或源控制器发送的标识符对中的第 一标识符, 所述标识符对包括第一标识符和第二标识符, 所述第二标识符 为所述网络调度设备向网络转发设备发送的标识符, 所述第一标识符为源 控制器向所述网络调度设备发送的标识符, 所述第一标识符和所述第二标 识符具有匹配关系;  In an eighth aspect, the present invention provides a controller, where the controller is a target controller, including: a receiving module, configured to receive a first identifier in an identifier pair sent by a network scheduling device or a source controller, The identifier pair includes a first identifier and a second identifier, where the second identifier is an identifier sent by the network scheduling device to the network forwarding device, where the first identifier is a source controller scheduling the network An identifier sent by the device, the first identifier and the second identifier have a matching relationship;
广播模块, 用于在软件定义网络的控制平面广播第一目标控制器匹配 信息, 所述第一目标控制器匹配信息包括所述第一标识符和所述目标控制 器的地址信息;  a broadcast module, configured to broadcast, in a control plane of the software-defined network, first target controller matching information, where the first target controller matching information includes the first identifier and address information of the target controller;
所述接收模块还用于, 接收所述网络转发设备在确定所述第一标识符 和所述第二标识符满足所述匹配关系后、 根据所述目标控制器的地址信息 发送的第三网络转发设备匹配信息, 所述第三网络转发设备匹配信息包括 所述第二标识符和所述网络转发设备的地址信息;  The receiving module is further configured to: receive, by the network forwarding device, a third network that is sent according to the address information of the target controller after determining that the first identifier and the second identifier satisfy the matching relationship Forwarding device matching information, where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device;
处理模块, 用于确定所述网络转发设备发送的所述第二标识符与所述 第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信息, 建立 与所述网络转发设备的连接。  a processing module, configured to determine that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establish, according to address information of the network forwarding device, a network forwarding device connection.
结合第八方面, 在第八方面的第一种可能的实现方式中, 还包括, 发 送模块, 用于在所述处理模块建立与所述网络转发设备的连接之后,  With reference to the eighth aspect, in a first possible implementation manner of the eighth aspect, the method further includes: a sending module, after the processing module establishes a connection with the network forwarding device,
向所述网络调度设备发送组网成功通知消息, 以使所述网络调度设备 向源控制器发送释放控制权响应消息; 或者 Sending a network success notification message to the network scheduling device, so that the network scheduling device Sending a release control response message to the source controller; or
向所述源控制器发送组网成功通知消息, 以使所述源控制器释放控制 第九方面, 本发明实施例提供一种基于软件定义网络的组网系统, 包 括: 网络调度设备, 网络转发设备, 源控制器, 其中:  Sending a network success notification message to the source controller, so that the source controller releases the control. The ninth aspect of the present invention provides a networking system based on a software-defined network, including: a network scheduling device, and network forwarding. Device, source controller, where:
所述网络调度设备, 用于生成用于源控制器和网络转发设备进行组网 的标识符对; 将所述标识符对中的第一标识符发送给源控制器, 将所述标 识符对中的第二标识符发送给网络转发设备, 所述第一标识符和所述第二 标识符具有匹配关系;  The network scheduling device is configured to generate an identifier pair for networking between the source controller and the network forwarding device, and send the first identifier in the identifier pair to the source controller, where the identifier pair is The second identifier is sent to the network forwarding device, and the first identifier and the second identifier have a matching relationship;
所述网络转发设备, 用于接收网络调度设备发送的标识符对中的第二 标识符, 在软件定义网络的控制平面广播第一网络转发设备匹配信息, 所 述第一网络转发设备匹配信息包括所述第二标识符和所述网络转发设备 的地址信息, 接收所述源控制器在确定所述第一标识符和所述第二标识符 满足所述匹配关系后、 根据所述网络转发设备的地址信息发送的第一源控 制器匹配信息, 所述第一源控制器匹配信息包括所述第一标识符和所述源 控制器的地址信息, 确定所述源控制器发送的所述第一标识符与所述第二 标识符满足所述匹配关系, 根据所述源控制器的地址信息, 建立与所述源 控制器的连接;  The network forwarding device is configured to receive a second identifier of the identifier pair sent by the network scheduling device, and broadcast, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes The second identifier and the address information of the network forwarding device, after receiving the source controller, after determining that the first identifier and the second identifier satisfy the matching relationship, according to the network forwarding device First source controller matching information sent by the address information, the first source controller matching information includes the first identifier and address information of the source controller, and determining the number sent by the source controller An identifier and the second identifier satisfy the matching relationship, and establishing a connection with the source controller according to the address information of the source controller;
所述源控制器, 用于接收网络调度设备发送的标识符对中的第一标识 符, 在软件定义网络的控制平面广播第二源控制器匹配信息, 所述第二源 控制器匹配信息包括所述第一标识符和所述源控制的地址信息, 接收所述 网络转发设备在确定所述第一标识符和所述第二标识符满足所述匹配关 系后、 根据所述源控制器的地址信息发送的第二网络转发设备匹配信息, 所述第二网络转发设备匹配信息中包括所述第二标识符和所述网络转发 设备的地址信息, 确定所述网络转发设备发送的所述第二标识符与所述第 一标识符满足所述匹配关系, 根据所述网络转发设备的地址信息, 建立与 所述网络转发设备的连接。  The source controller is configured to receive a first identifier in an identifier pair sent by the network scheduling device, and broadcast second source controller matching information on a control plane of the software-defined network, where the second source controller matching information includes The first identifier and the source controlled address information, after receiving the network forwarding device, after determining that the first identifier and the second identifier satisfy the matching relationship, according to the source controller The second network forwarding device matching information sent by the address information, the second network forwarding device matching information includes the second identifier and address information of the network forwarding device, and determining the number sent by the network forwarding device The second identifier and the first identifier satisfy the matching relationship, and establish a connection with the network forwarding device according to the address information of the network forwarding device.
结合第九方面, 在第九方面的第一种可能的实现方式中, 所述系统还 包括: 目标控制器;  With reference to the ninth aspect, in a first possible implementation manner of the ninth aspect, the system further includes: a target controller;
所述源控制器还用于: 根据所述源控制器的工作状态, 触发对所述网 络转发设备的控制权切换, 向所述网络调度设备发送释放控制权请求消 息, 接收所述网络调度设备在所述目标控制器与所述网络转发设备建立连 接后, 发送的释放控制权响应信息; The source controller is further configured to: trigger on the network according to an operating state of the source controller Controlling the switching of the control device, sending a release control right request message to the network scheduling device, and receiving the release control right response message sent by the network scheduling device after the target controller establishes a connection with the network forwarding device ;
所述网络调度设备还用于, 接收所述源控制器发送的释放控制权请求 信息; 其中, 所述源控制器和所述网络转发设备组网成功之后, 所述源控 制器对所述网络转发设备具有控制权, 根据所述软件定义网络的状态信 息, 在已注册的控制器中, 选择所述目标控制器与所述网络转发设备进行 组网, 向所述目标控制器发送所述第一标识符, 接收所述目标控制器发送 的组网成功通知消息, 向所述源控制器发送释放控制权响应信息;  The network scheduling device is further configured to: receive the release control right request information sent by the source controller; wherein, after the source controller and the network forwarding device are successfully networked, the source controller is configured to the network The forwarding device has control, and according to the state information of the software-defined network, in the registered controller, the target controller is selected to be networked with the network forwarding device, and the first controller is sent to the target controller. Receiving, by the identifier, a network success notification message sent by the target controller, and sending release control right response information to the source controller;
所述目标控制器, 用于接收所述网络调度设备发送的标识符对中的第 一标识符, 在软件定义网络的控制平面广播第一目标控制器匹配信息, 所 述第一目标控制器匹配信息包括所述第一标识符和所述目标控制器的地 址信息, 接收所述网络转发设备在确定所述第一标识符和所述第二标识符 满足所述匹配关系后、 根据所述目标控制器的地址信息发送的第三网络转 发设备匹配信息, 所述第三网络转发设备匹配信息包括所述第二标识符和 所述网络转发设备的地址信息, 确定所述网络转发设备发送的所述第二标 识符与所述第一标识符满足所述匹配关系, 根据所述网络转发设备的地址 信息, 建立与所述网络转发设备的连接, 向所述网络调度设备发送组网成 功通知消息, 以使所述网络调度设备向源控制器发送释放控制权响应消 息;  The target controller is configured to receive a first identifier in an identifier pair sent by the network scheduling device, and broadcast, in a control plane of the software-defined network, first target controller matching information, where the first target controller matches The information includes the first identifier and address information of the target controller, and the receiving, by the network forwarding device, after determining that the first identifier and the second identifier satisfy the matching relationship, according to the target The third network forwarding device matching information sent by the address information of the controller, where the third network forwarding device matching information includes the second identifier and the address information of the network forwarding device, and determining the location sent by the network forwarding device The second identifier and the first identifier satisfy the matching relationship, establish a connection with the network forwarding device according to the address information of the network forwarding device, and send a networking success notification message to the network scheduling device. So that the network scheduling device sends a release control right response message to the source controller;
所述网络转发设备还用于: 接收所述目标控制器在所述软件定义网络 的控制平面广播的第一目标控制器匹配信息, 所述第一目标控制器匹配信 息包括所述第一标识符和所述目标控制器的地址信息, 确定所述目标控制 器广播的所述第一标识符和所述第二标识符满足所述匹配关系, 根据所述 目标控制器的地址信息, 向所述目标控制器发送第三网络转发设备匹配信 息, 所述第三网络转发设备匹配信息包括所述第二标识符和所述网络转发 设备的地址信息, 以使所述目标控制器根据所述第一标识符和所述第二标 识符的匹配关系以及所述网络转发设备的地址信息, 建立与所述网络转发 设备的连接。  The network forwarding device is further configured to: receive first target controller matching information that is broadcast by the target controller on a control plane of the software-defined network, where the first target controller matching information includes the first identifier Determining, by the address information of the target controller, that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship, according to the address information of the target controller, to the The target controller sends a third network forwarding device matching information, where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device, so that the target controller is configured according to the first A matching relationship between the identifier and the second identifier and address information of the network forwarding device establishes a connection with the network forwarding device.
结合第九方面, 在第九方面的第二种可能的实现方式中, 所述系统还 包括: 目标控制器; With reference to the ninth aspect, in a second possible implementation manner of the ninth aspect, the system further Including: target controller;
所述源控制器还用于, 根据所述源控制器的工作状态, 触发对所述网 络转发设备的控制权切换, 确定所述目标控制器, 向所述目标控制器发送 所述第一标识符, 以使所述目标控制器根据所述第一标识符和所述第二标 识符的匹配关系建立与所述网络转发设备的连接, 接收所述目标控制器发 送的所述目标控制器与所述网络转发设备成功建立连接的通知消息, 释放 对所述网络转发设备的控制权;  The source controller is further configured to: trigger a control right handover to the network forwarding device according to an operating state of the source controller, determine the target controller, and send the first identifier to the target controller So that the target controller establishes a connection with the network forwarding device according to a matching relationship between the first identifier and the second identifier, and receives the target controller sent by the target controller and The network forwarding device successfully establishes a connection notification message, and releases control of the network forwarding device;
所述目标控制器用于, 接收所述源控制器发送的标识符对中的第一标 识符, 在软件定义网络的控制平面广播第一目标控制器匹配信息, 所述第 一目标控制器匹配信息包括所述第一标识符和所述目标控制器的地址信 息, 接收所述网络转发设备在确定所述第一标识符和所述第二标识符满足 所述匹配关系后、 根据所述目标控制器的地址信息发送的第三网络转发设 备匹配信息, 所述第三网络转发设备匹配信息包括所述第二标识符和所述 网络转发设备的地址信息, 确定所述网络转发设备发送的所述第二标识符 与所述第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信 息, 建立与所述网络转发设备的连接, 向所述源控制器发送组网成功通知 消息, 以使所述源控制器释放控制权;  The target controller is configured to receive a first identifier in an identifier pair sent by the source controller, and broadcast, in a control plane of the software-defined network, first target controller matching information, where the first target controller matches information Include the first identifier and the address information of the target controller, and after receiving the network forwarding device, after determining that the first identifier and the second identifier satisfy the matching relationship, according to the target control The third network forwarding device matching information sent by the address information of the device, the third network forwarding device matching information includes the second identifier and address information of the network forwarding device, and determining the The second identifier and the first identifier satisfy the matching relationship, establish a connection with the network forwarding device according to the address information of the network forwarding device, and send a networking success notification message to the source controller, Taking the source controller to release control rights;
所述网络转发设备还用于: 接收所述目标控制器在所述软件定义网络 的控制平面广播的第一目标控制器匹配信息, 所述第一目标控制器匹配信 息包括所述第一标识符和所述目标控制器的地址信息, 确定所述目标控制 器广播的所述第一标识符和所述第二标识符满足所述匹配关系, 根据所述 目标控制器的地址信息, 向所述目标控制器发送第三网络转发设备匹配信 息, 所述第三网络转发设备匹配信息包括所述第二标识符和所述网络转发 设备的地址信息, 以使所述目标控制器根据所述第一标识符和所述第二标 识符的匹配关系以及所述网络转发设备的地址信息, 建立与所述网络转发 设备的连接。  The network forwarding device is further configured to: receive first target controller matching information that is broadcast by the target controller on a control plane of the software-defined network, where the first target controller matching information includes the first identifier Determining, by the address information of the target controller, that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship, according to the address information of the target controller, to the The target controller sends a third network forwarding device matching information, where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device, so that the target controller is configured according to the first A matching relationship between the identifier and the second identifier and address information of the network forwarding device establishes a connection with the network forwarding device.
本发明实施例提供的基于软件定义网络的组网方法及设备, 网络调度 设备生成用于源控制器和网络转发设备进行组网的标识符对, 网络调度设 备将标识符对中的第一标识符发送给源控制器, 将标识符对中的第二标识 符发送给网络转发设备, 第一标识符和第二标识符具有匹配关系, 使得源 控制器和网络转发设备根据第一标识符和第二标识符的匹配关系进行组 网。 在网络规模较大的情况下, 不需要通过手动对网络转发设备配置控制 器地址, 即不需要人工参与, 实现简单。 A network-defined network-based networking method and device are provided by the network scheduling device, where the network scheduling device generates an identifier pair for the source controller and the network forwarding device to perform networking, and the network scheduling device sets the first identifier of the identifier pair. The symbol is sent to the source controller, and the second identifier in the identifier pair is sent to the network forwarding device, and the first identifier and the second identifier have a matching relationship, so that the source The controller and the network forwarding device perform networking according to the matching relationship between the first identifier and the second identifier. In the case of a large network, it is not necessary to manually configure the controller address for the network forwarding device, that is, no manual participation is required, and the implementation is simple.
附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below, and obviously, in the following description The drawings are only some of the embodiments of the present invention, and other drawings may be obtained from those skilled in the art without departing from the drawings.
图 1为软件定义网络的系统架构示意图;  Figure 1 is a schematic diagram of a system architecture of a software-defined network;
图 2为本发明基于软件定义网络的组网方法实施例一的流程示意图; 图 3为本发明基于软件定义网络的组网方法实施例二的流程示意图; 图 4为本发明基于软件定义网络的组网方法实施例三的流程示意图; 图 5为本发明基于软件定义网络的组网方法实施例四的流程示意图; 图 6为本发明基于软件定义网络的组网方法的初始化示意图; 图 7为本发明实施例提供的控制域切换实施例一的示意图;  2 is a schematic flowchart of Embodiment 1 of a networking method based on a software-defined network according to the present invention; FIG. 3 is a schematic flowchart of Embodiment 2 of a networking method based on a software-defined network according to the present invention; FIG. 4 is a schematic diagram of a software-defined network according to the present invention. FIG. 5 is a schematic flowchart of Embodiment 4 of a networking method based on a software-defined network according to the present invention; FIG. 6 is a schematic diagram of initialization of a networking method based on a software-defined network according to the present invention; A schematic diagram of Embodiment 1 of the control domain switching provided by the embodiment of the present invention;
图 8为本发明实施例提供的控制域切换实施例二的示意图;  FIG. 8 is a schematic diagram of Embodiment 2 of a control domain handover according to an embodiment of the present disclosure;
图 9为本发明网络调度设备实施例一的结构示意图;  9 is a schematic structural diagram of Embodiment 1 of a network scheduling device according to the present invention;
图 10为本发明网络调度设备实施例二的结构示意图;  10 is a schematic structural diagram of Embodiment 2 of a network scheduling device according to the present invention;
图 11为本发明网络转发设备实施例一的结构示意图;  FIG. 11 is a schematic structural diagram of Embodiment 1 of a network forwarding device according to the present invention;
图 12为本发明源控制器实施例一的结构示意图;  12 is a schematic structural diagram of Embodiment 1 of a source controller according to the present invention;
图 13为本发明目标控制器实施例一的结构示意图;  13 is a schematic structural diagram of Embodiment 1 of an object controller according to the present invention;
图 14为本发明网络调度设备实施例三的结构示意图;  14 is a schematic structural diagram of Embodiment 3 of a network scheduling device according to the present invention;
图 15为本发明网络转发设备实施例二的结构示意图;  15 is a schematic structural diagram of Embodiment 2 of a network forwarding device according to the present invention;
图 16为本发明源控制器实施例二的结构示意图;  16 is a schematic structural diagram of Embodiment 2 of a source controller according to the present invention;
图 17为本发明目标控制器实施例二的结构示意图;  17 is a schematic structural diagram of Embodiment 2 of an object controller according to the present invention;
图 18为本发明基于软件定义网络的组网系统示意图。 具体实施方式  FIG. 18 is a schematic diagram of a networking system based on a software-defined network according to the present invention. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、完整地描述, 显然,所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有做出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。 The technical solution in the embodiment of the present invention will be further described below with reference to the accompanying drawings in the embodiments of the present invention. The invention is described in a clear and complete manner, and it is obvious that the described embodiments are only a part of the embodiments of the invention, rather than all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention.
图 1为软件定义网络的系统架构示意图。 如图 1所示, 本实施例提供 的软件定义网络包括: 网络调度设备、 多个控制器 C1-C3 , 多个网络转发 设备 Sl-S4。 网络调度设备与多个控制器 C1-C3位于网络控制层, 网络转 发设备位于网络转发层。  Figure 1 is a schematic diagram of the system architecture of a software-defined network. As shown in FIG. 1, the software-defined network provided by this embodiment includes: a network scheduling device, multiple controllers C1-C3, and multiple network forwarding devices Sl-S4. The network scheduling device and the plurality of controllers C1-C3 are located at the network control layer, and the network forwarding device is located at the network forwarding layer.
其中, 网络调度设备可以为特殊类型的控制器, 或者集成在控制器中 的调度模块或组件, 主要用于控制器及网络转发设备的入网认证; 标识符 对儿的生成与管理; 基于软件定义网络的状态信息进行标识符分发, 软件 定义网络的状态信息包括网络拓扑、 业务需求及实时网络状态等; 标识符 及设备信息的映射存储;  The network scheduling device may be a special type of controller, or a scheduling module or component integrated in the controller, mainly used for network authentication of the controller and the network forwarding device; generation and management of identifier pairs; The status information of the network is distributed by identifiers, and the status information of the software-defined network includes network topology, service requirements, real-time network status, etc.; mapping storage of identifiers and device information;
控制器 C1-C3 , 各控制器除现有控制器功能 (拓扑发现, 设备管理, 路由计算, 策略管理, 服务质量 (Quality of Service, 简称: QoS ) 保证等 业务管理等) 之外, 还向网络调度设备申请标识符, 与网络转发设备协商 标识符并进行标识符匹配。  Controllers C1-C3, in addition to the existing controller functions (topology discovery, device management, route calculation, policy management, quality of service (QoS) guarantee, etc.) The network scheduling device applies an identifier, negotiates an identifier with the network forwarding device, and performs identifier matching.
多个网络转发设备 S1-S4, 各网络转发设备具体可以为交换机等具有 转发功能的设备, 除现有网络转发设备的功能之外, 还与控制器协商标识 符并进行标识符匹配以及存储标识符和控制器地址的映射等功能。  Multiple network forwarding devices S1-S4, each network forwarding device may specifically be a device having a forwarding function, such as a switch. In addition to the functions of the existing network forwarding device, it also negotiates identifiers with the controller and performs identifier matching and storage identification. Functions such as mapping of symbols and controller addresses.
在具体应用过程中, 控制器为软件定义网络的核心部件, 该控制器以 软件平台的方式存在并享有集中的控制权, 控制器的算法、 逻辑、 规则均 可配置。 网络转发设备在接收到控制器发来的指令后, 更新本地规则, 完 成数据转发。  In the specific application process, the controller defines the core components of the network for the software. The controller exists in the form of a software platform and enjoys centralized control. The algorithm, logic and rules of the controller are configurable. After receiving the command from the controller, the network forwarding device updates the local rules and completes the data forwarding.
下面采用具体的实施例, 对图 1中各部件的具体实现方式进行详细说 明。  The specific implementation of each component in Fig. 1 will be described in detail below with reference to specific embodiments.
图 2为本发明基于软件定义网络的组网方法实施例一的流程示意图, 本实施例的执行主体为图 1中的网络调度设备, 该网络调度设备可由任意 的软件和 /或硬件组成。 如图 2所示, 本实施例提供的方法, 包括:  FIG. 2 is a schematic flowchart of Embodiment 1 of a networking method for a software-defined network according to the present invention. The execution body of this embodiment is the network scheduling device in FIG. 1, and the network scheduling device may be composed of any software and/or hardware. As shown in FIG. 2, the method provided in this embodiment includes:
歩骤 201、 网络调度设备生成用于源控制器和网络转发设备进行组网 的标识符对; Step 201: The network scheduling device generates a network for the source controller and the network forwarding device to perform networking. Pair of identifiers;
歩骤 202、 所述网络调度设备将所述标识符对中的第一标识符发送给 源控制器, 将所述标识符对中的第二标识符发送给网络转发设备, 所述第 一标识符和所述第二标识符具有匹配关系, 以使所述源控制器和所述网络 转发设备根据所述第一标识符和所述第二标识符的匹配关系进行组网。  Step 202: The network scheduling device sends a first identifier in the identifier pair to a source controller, and sends a second identifier in the identifier pair to a network forwarding device, where the first identifier is And the second identifier has a matching relationship, so that the source controller and the network forwarding device perform networking according to a matching relationship between the first identifier and the second identifier.
本实施例的应用场景如图 1实施例所示, 本实施例此处不再赘述。 在歩骤 201中, 网络调度设备生成用于源控制器和网络转发设备进行 组网的标识符对。 标识符对中包括第一标识符和第二标识符, 第一标识符 和第二标识符具有匹配关系。 在具体实现过程中, 网络调度设备生成标识 符对包括以下可能的实现方式。  The application scenario of this embodiment is as shown in the embodiment of FIG. 1 , and details are not described herein again. In step 201, the network scheduling device generates an identifier pair for the source controller and the network forwarding device to perform networking. The identifier pair includes a first identifier and a second identifier, the first identifier and the second identifier having a matching relationship. In a specific implementation process, the network scheduling device generates an identifier pair including the following possible implementation manners.
一种可能的实现方式为: 网络调度设备根据预设匹配规则生成标识符 对;  A possible implementation manner is: the network scheduling device generates an identifier pair according to a preset matching rule;
具体地, 网络调度设备可以自定义预设匹配规则, 然后根据预设匹配 规则生成标识符对, 标识符对具体可以为成对儿的字符串序列等。  Specifically, the network scheduling device may customize the preset matching rule, and then generate an identifier pair according to the preset matching rule, and the identifier pair may specifically be a paired string sequence or the like.
另一种可能的实现方式为: 网络调度设备根据预设加密算法生成所述 标识符对。  Another possible implementation manner is: the network scheduling device generates the identifier pair according to a preset encryption algorithm.
具体地, 网络调度设备根据预设加密算法生成标识符对。 预设加密算 法可以为 DES、 3DES、 RC2、 RC4、 IDEA, DSA、 RSA、 AES、 BLOWFISH, Specifically, the network scheduling device generates an identifier pair according to a preset encryption algorithm. The default encryption algorithm can be DES, 3DES, RC2, RC4, IDEA, DSA, RSA, AES, BLOWFISH,
MD5以及其他加密算法, 标识符对的实现方式可以为密钥对儿。 For MD5 and other encryption algorithms, the identifier pair can be implemented as a key pair.
在歩骤 202中, 网络调度设备将标识符对中的第一标识符发送给源控 制器, 将标识符对中的第二标识符发送给网络转发设备。  In step 202, the network scheduling device sends the first identifier in the identifier pair to the source controller and the second identifier in the identifier pair to the network forwarding device.
在源控制器和网络转发设备组网的过程中, 组网过程可以由源控制器 通过广播第一标识符发起, 也可以由网络转发设备通过广播第二标识符发 起, 在组网发起之后, 源控制器和网络转发设备可以根据第一标识符和第 二标识符的匹配关系进行组网。 源控制器和网络转发设备建立连接的过 程, 无需在控制器或者网络转发设备指定对方的地址, 而是通过标识符协 商, 解析标识符的地址, 并根据解析的结果向该地址发起规范定义的握手 请求, 进行连接初始化。  In the process of networking the source controller and the network forwarding device, the networking process may be initiated by the source controller by broadcasting the first identifier, or may be initiated by the network forwarding device by broadcasting the second identifier. After the networking is initiated, The source controller and the network forwarding device may perform networking according to a matching relationship between the first identifier and the second identifier. The process of establishing a connection between the source controller and the network forwarding device does not need to specify the address of the other party in the controller or the network forwarding device, but resolves the address of the identifier through identifier negotiation, and initiates a specification definition to the address according to the parsed result. Handshake request, initiate connection.
本发明实施例提供的基于软件定义网络的组网方法, 网络调度设备生 成用于源控制器和网络转发设备进行组网的标识符对, 网络调度设备将标 识符对中的第一标识符发送给源控制器, 将标识符对中的第二标识符发送 给网络转发设备, 第一标识符和第二标识符具有匹配关系, 使得源控制器 和网络转发设备根据第一标识符和第二标识符的匹配关系进行组网。在网 络规模较大的情况下, 不需要通过手动对网络转发设备配置控制器地址, 即不需要人工参与, 实现简单。 The networking method of the software-defined network provided by the embodiment of the present invention, the network scheduling device generates an identifier pair for the source controller and the network forwarding device to perform networking, and the network scheduling device will mark Sending the first identifier of the identifier pair to the source controller, and sending the second identifier of the identifier pair to the network forwarding device, the first identifier and the second identifier have a matching relationship, so that the source controller and the network The forwarding device performs networking according to the matching relationship between the first identifier and the second identifier. In the case of a large network, it is not necessary to manually configure the controller address for the network forwarding device, that is, no manual participation is required, and the implementation is simple.
图 3为本发明基于软件定义网络的组网方法实施例二的流程示意图, 本实施例的执行主体为图 1中的网络转发设备, 该网络转发设备可由任意 的软件和 /或硬件组成。 如图 3所示, 本实施例提供的方法, 包括:  FIG. 3 is a schematic flowchart of Embodiment 2 of a networking method for a software-defined network according to the present invention. The execution body of this embodiment is the network forwarding device in FIG. 1, and the network forwarding device may be composed of any software and/or hardware. As shown in FIG. 3, the method provided in this embodiment includes:
歩骤 301、 网络转发设备接收网络调度设备发送的标识符对中的第二 标识符; 所述标识符对包括第一标识符和所述第二标识符, 所述第一标识 符为所述网络调度设备向源控制器发送的标识符, 所述第一标识符和所述 第二标识符具有匹配关系;  Step 301: The network forwarding device receives a second identifier in an identifier pair sent by the network scheduling device, where the identifier pair includes a first identifier and the second identifier, where the first identifier is An identifier sent by the network scheduling device to the source controller, where the first identifier and the second identifier have a matching relationship;
歩骤 302、 所述网络转发设备在软件定义网络的控制平面广播第一网 络转发设备匹配信息, 所述第一网络转发设备匹配信息包括所述第二标识 符和所述网络转发设备的地址信息;  Step 302: The network forwarding device broadcasts first network forwarding device matching information on a control plane of the software-defined network, where the first network forwarding device matching information includes the second identifier and address information of the network forwarding device. ;
歩骤 303、 所述网络转发设备接收所述源控制器在确定所述第一标识 符和所述第二标识符满足所述匹配关系后、 根据所述网络转发设备的地址 信息发送的第一源控制器匹配信息, 所述第一源控制器匹配信息包括所述 第一标识符和所述源控制器的地址信息;  Step 303: The network forwarding device receives, after determining, by the source controller, that the first identifier and the second identifier meet the matching relationship, and sends the first information according to the address information of the network forwarding device. Source controller matching information, where the first source controller matching information includes the first identifier and address information of the source controller;
歩骤 304、 所述网络转发设备确定所述源控制器发送的所述第一标识 符与所述第二标识符满足所述匹配关系, 根据所述源控制器的地址信息, 建立与所述源控制器的连接。  Step 304: The network forwarding device determines that the first identifier and the second identifier sent by the source controller meet the matching relationship, and establishes and performs according to the address information of the source controller. The connection of the source controller.
本实施例的应用场景如图 1实施例所示, 本实施例此处不再赘述。 本 实施例主要说明网络转发设备发起的与源控制器建立连接, 进行组网的过 程。  The application scenario of this embodiment is as shown in the embodiment of FIG. 1 , and details are not described herein again. This embodiment mainly describes a process initiated by the network forwarding device to establish a connection with the source controller and perform networking.
在歩骤 301中, 网络转发设备接收网络调度设备发送的标识符对中的 第二标识符。 当网络转发设备需要和源控制器建立连接时, 在歩骤 302中, 网络转发设备在软件定义网络的控制平面广播第一网络转发设备匹配信 息, 该第一网络转发设备匹配信息包括第二标识符和网络转发设备的地址 信息。 当源控制器获取到网络转发设备广播的第二标识符和网络转发设备 的地址信息时, 确定本地存储的第一标识符是否与该第二标识符匹配, 当 匹配时, 源控制器存储网络转发设备的地址信息, 源控制器根据该地址信 息向网络转发设备发送第一源控制器匹配信息, 第一源控制器匹配信息包 括第一标识符和源控制器的地址信息。 In step 301, the network forwarding device receives a second identifier in the pair of identifiers sent by the network scheduling device. When the network forwarding device needs to establish a connection with the source controller, in step 302, the network forwarding device broadcasts the first network forwarding device matching information on the control plane of the software-defined network, where the first network forwarding device matching information includes the second identifier. And the address information of the network forwarding device. When the source controller acquires the second identifier broadcast by the network forwarding device and the address information of the network forwarding device, determining whether the first identifier stored locally matches the second identifier, and when matching, the source controller stores the network. Forwarding the address information of the device, the source controller sends the first source controller matching information to the network forwarding device according to the address information, where the first source controller matching information includes the first identifier and the address information of the source controller.
在歩骤 303中, 网络转发设备接收该第一源控制器匹配信息, 获取第 一标识符和源控制的地址信息。 在歩骤 304中, 网络转发设备确定第一标 识符与第二标识符是否满足匹配关系, 当匹配时, 网络转发设备存储源控 制的地址信息, 网络转发设备根据源控制的地址信息与源控制器开始握手 消息, 建立连接关系。  In step 303, the network forwarding device receives the first source controller matching information, and obtains the first identifier and the source controlled address information. In step 304, the network forwarding device determines whether the first identifier and the second identifier satisfy a matching relationship. When the matching, the network forwarding device stores the address information controlled by the source, and the network forwarding device controls the source information according to the source control. The device starts a handshake message and establishes a connection relationship.
可选地, 在具体实现过程中, 还可以由源控制器发起组网。 具体地, 网络转发设备接收源控制器在软件定义网络的控制平面广播的第二源控 制器匹配信息, 第二源控制器匹配信息包括第一标识符; 网络转发设备确 定第一标识符和第二标识符满足匹配关系, 向源控制器发送第二网络转发 设备匹配信息, 第二网络转发设备匹配信息包括第二标识符和源控制器的 地址信息, 以使源控制器根据第一标识符和所述第二标识符的匹配关系建 立与网络转发设备的连接。  Optionally, in a specific implementation process, the networking may also be initiated by the source controller. Specifically, the network forwarding device receives second source controller matching information broadcast by the source controller on a control plane of the software-defined network, where the second source controller matching information includes a first identifier; the network forwarding device determines the first identifier and the The second identifier satisfies the matching relationship, and sends the second network forwarding device matching information to the source controller, where the second network forwarding device matching information includes the second identifier and the address information of the source controller, so that the source controller is based on the first identifier. The matching relationship with the second identifier establishes a connection with the network forwarding device.
本发明实施例提供的基于软件定义网络的组网方法, 网络转发设备接 收网络调度设备发送的标识符对中的第二标识符; 网络转发设备在软件定 义网络的控制平面广播第一网络转发设备匹配信息, 第一网络转发设备匹 配信息包括第二标识符和网络转发设备的地址信息; 网络转发设备接收源 控制器在确定第一标识符和第二标识符满足匹配关系后、 根据网络转发设 备的地址信息发送的第一源控制器匹配信息, 第一源控制器匹配信息包括 第一标识符和源控制器的地址信息; 网络转发设备确定源控制器发送的第 一标识符与第二标识符满足匹配关系, 根据源控制器的地址信息, 建立与 源控制器的连接。 在网络转发设备与源控制器组网过程中, 不需要通过手 动对网络转发设备配置控制器地址, 即不需要人工参与, 实现简单。  The network-defined network-based networking method provided by the embodiment of the present invention, the network forwarding device receives the second identifier in the identifier pair sent by the network scheduling device; and the network forwarding device broadcasts the first network forwarding device on the control plane of the software-defined network. Matching information, the first network forwarding device matching information includes a second identifier and address information of the network forwarding device; the network forwarding device receiving source controller determines, according to the network forwarding device, that the first identifier and the second identifier satisfy the matching relationship The first source controller matching information sent by the address information, the first source controller matching information includes the first identifier and the address information of the source controller; the network forwarding device determines the first identifier and the second identifier sent by the source controller The symbol satisfies the matching relationship, and establishes a connection with the source controller according to the address information of the source controller. In the process of networking the network forwarding device and the source controller, it is not necessary to manually configure the controller address for the network forwarding device, that is, no manual participation is required, and the implementation is simple.
图 4为本发明基于软件定义网络的组网方法实施例三的流程示意图, 本实施例的执行主体为图 1中的控制器, 为了说明控制器的切换过程, 本 实施例中的控制器为源控制器, 该源控制器可由任意的软件和 /或硬件组 成。 如图 4所示, 本实施例提供的方法, 包括: 4 is a schematic flowchart of Embodiment 3 of a networking method based on a software-defined network according to the present invention. The execution body of this embodiment is the controller in FIG. 1. To illustrate the switching process of the controller, the controller in this embodiment is Source controller, which can be any software and/or hardware group to make. As shown in FIG. 4, the method provided in this embodiment includes:
歩骤 401、 源控制器接收网络调度设备发送的标识符对中的第一标识 符; 所述标识符对包括所述第一标识符和第二标识符, 所述第二标识符为 所述网络调度设备向网络转发设备发送的标识符, 所述第一标识符和所述 第二标识符具有匹配关系;  Step 401: The source controller receives a first identifier in an identifier pair sent by the network scheduling device; the identifier pair includes the first identifier and a second identifier, and the second identifier is An identifier sent by the network scheduling device to the network forwarding device, where the first identifier and the second identifier have a matching relationship;
歩骤 402、 所述源控制器在软件定义网络的控制平面广播第二源控制 器匹配信息, 所述第二源控制器匹配信息包括所述第一标识符和所述源控 制的地址信息;  Step 402: The source controller broadcasts second source controller matching information on a control plane of the software-defined network, where the second source controller matching information includes the first identifier and the source-controlled address information.
歩骤 403、 所述源控制器接收所述网络转发设备在确定所述第一标识 符和所述第二标识符满足所述匹配关系后、 根据所述源控制器的地址信息 发送的第二网络转发设备匹配信息, 所述第二网络转发设备匹配信息中包 括所述第二标识符和所述网络转发设备的地址信息;  Step 403: The source controller receives, after determining that the first identifier and the second identifier satisfy the matching relationship, the network forwarding device sends the second information according to the address information of the source controller. The network forwarding device matching information, where the second network forwarding device matching information includes the second identifier and address information of the network forwarding device;
歩骤 404、 所述源控制器确定所述网络转发设备发送的所述第二标识 符与所述第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信 息, 建立与所述网络转发设备的连接。  Step 404: The source controller determines that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establishes and is performed according to address information of the network forwarding device. The connection of the network forwarding device.
本实施例的应用场景如图 1实施例所示, 本实施例此处不再赘述。 本 实施例主要说明源控制器发起的与网络转发设备建立连接, 进行组网的过 程。  The application scenario of this embodiment is as shown in the embodiment of FIG. 1 , and details are not described herein again. This embodiment mainly describes a process initiated by the source controller to establish a connection with the network forwarding device and perform networking.
在歩骤 401中, 源控制器接收网络调度设备发送的标识符对中的第一 标识符。 当源控制器需要和网络转发设备建立连接时, 在歩骤 402中, 源 控制器在软件定义网络的控制平面广播第二源控制器匹配信息, 第二源控 制器匹配信息包括第一标识符和源控制的地址信息。  In step 401, the source controller receives the first identifier in the pair of identifiers sent by the network scheduling device. When the source controller needs to establish a connection with the network forwarding device, in step 402, the source controller broadcasts the second source controller matching information on the control plane of the software-defined network, and the second source controller matching information includes the first identifier. And source control address information.
当网络转发设备获取到源控制器广播的第一标识符时, 确定本地存储 的第二标识符是否与第一标识符匹配, 当匹配时, 网络转发设备存储源控 制器的地址信息, 网络转发设备根据地址信息向源控制器发送第二网络转 发设备匹配信息, 第二网络转发设备匹配信息包括第二标识符。  When the network forwarding device acquires the first identifier broadcasted by the source controller, determining whether the locally stored second identifier matches the first identifier, and when matching, the network forwarding device stores the address information of the source controller, and the network forwards The device sends the second network forwarding device matching information to the source controller according to the address information, where the second network forwarding device matching information includes the second identifier.
在歩骤 403中, 源控制器接收网络转发设备发送的包括第二标识符和 和网络转发设备的地址信息的第二网络转发设备匹配信息。在歩骤 404中, 源控制器确定网络转发设备发送的第二标识符与第一标识符是否匹配, 当 匹配时, 源控制器存储网络转发设备的地址信息, 源控制器根据网络转发 设备的地址信息与网络转发设备开始握手消息, 建立连接关系。 In step 403, the source controller receives the second network forwarding device matching information that is sent by the network forwarding device and includes the second identifier and the address information of the network forwarding device. In step 404, the source controller determines whether the second identifier sent by the network forwarding device matches the first identifier. When matching, the source controller stores address information of the network forwarding device, and the source controller forwards according to the network. The address information of the device starts a handshake message with the network forwarding device to establish a connection relationship.
可选地, 在具体实现过程中, 还可以由网络转发设备发起组网。 具体 地, 源控制器接收网络转发设备在软件定义网络的控制平面广播的第一网 络转发设备匹配信息, 第一网络转发设备匹配信息包括第二标识符和网络 转发设备的地址信息; 源控制器确定第一标识符和第二标识符满足匹配关 系; 源控制器根据网络转发设备的地址信息, 向网络转发设备发送第一源 控制器匹配信息, 第一源控制器匹配信息包括第一标识符和源控制器的地 址信息, 以使网络转发设备根据第一标识符和第二标识符的匹配关系以及 源控制的地址信息建立与源控制器的连接。  Optionally, in a specific implementation process, the networking may be initiated by the network forwarding device. Specifically, the source controller receives the first network forwarding device matching information that is broadcast by the network forwarding device on the control plane of the software-defined network, where the first network forwarding device matching information includes the second identifier and the address information of the network forwarding device; Determining that the first identifier and the second identifier satisfy the matching relationship; the source controller sends the first source controller matching information to the network forwarding device according to the address information of the network forwarding device, where the first source controller matching information includes the first identifier And address information of the source controller, so that the network forwarding device establishes a connection with the source controller according to the matching relationship between the first identifier and the second identifier and the address information controlled by the source.
本发明实施例提供的基于软件定义网络的组网方法, 源控制器接收网 络调度设备发送的标识符对中的第一标识符; 标识符对包括第一标识符和 第二标识符, 第二标识符为网络调度设备向网络转发设备发送的标识符, 第一标识符和第二标识符具有匹配关系; 源控制器在软件定义网络的控制 平面广播第二源控制器匹配信息, 第二源控制器匹配信息包括第一标识符 和源控制的地址信息; 源控制器接收网络转发设备在确定第一标识符和第 二标识符满足匹配关系后、 根据源控制器的地址信息发送的第二网络转发 设备匹配信息, 第二网络转发设备匹配信息中包括第二标识符和网络转发 设备的地址信息; 源控制器确定网络转发设备发送的第二标识符与第一标 识符满足匹配关系, 根据网络转发设备的地址信息, 建立与网络转发设备 的连接。 在源控制器与网络转发设备的组网过程中, 不需要手动配置, 实 现简单。  The software-defined network-based networking method provided by the embodiment of the present invention, the source controller receives the first identifier in the identifier pair sent by the network scheduling device; the identifier pair includes the first identifier and the second identifier, and the second The identifier is an identifier sent by the network scheduling device to the network forwarding device, the first identifier and the second identifier have a matching relationship; the source controller broadcasts the second source controller matching information, the second source, on a control plane of the software-defined network The controller matching information includes a first identifier and source controlled address information. The source controller receives a second sent by the network forwarding device according to the address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship. The network forwarding device matching information, the second network forwarding device matching information includes a second identifier and address information of the network forwarding device; the source controller determines that the second identifier sent by the network forwarding device matches the first identifier, according to the matching relationship, The network forwards the address information of the device to establish a connection with the network forwarding device. In the networking process of the source controller and the network forwarding device, manual configuration is not required, and the implementation is simple.
图 5为本发明基于软件定义网络的组网方法实施例四的流程示意图, 本实施例的执行主体为图 1中的控制器, 为了说明控制器的切换过程, 本 实施例中的控制器为目标控制器,该目标控制器可由任意的软件和 /或硬件 组成。 如图 5所示, 本实施例提供的方法, 包括:  5 is a schematic flowchart of Embodiment 4 of a networking method based on a software-defined network according to the present invention. The execution body of this embodiment is the controller in FIG. 1. To describe the switching process of the controller, the controller in this embodiment is A target controller, which can be composed of any software and/or hardware. As shown in FIG. 5, the method provided in this embodiment includes:
歩骤 501、 目标控制器接收网络调度设备或源控制器发送的标识符对 中的第一标识符, 所述标识符对包括第一标识符和第二标识符, 所述第二 标识符为所述网络调度设备向网络转发设备发送的标识符, 所述第一标识 符为源控制器向所述网络调度设备发送的标识符, 所述第一标识符和所述 第二标识符具有匹配关系; 歩骤 502、 所述目标控制器在软件定义网络的控制平面广播第一目标 控制器匹配信息, 所述第一目标控制器匹配信息包括所述第一标识符和所 述目标控制器的地址信息; Step 501: The target controller receives a first identifier in an identifier pair sent by a network scheduling device or a source controller, where the identifier pair includes a first identifier and a second identifier, where the second identifier is An identifier sent by the network scheduling device to the network forwarding device, where the first identifier is an identifier sent by the source controller to the network scheduling device, and the first identifier and the second identifier have a match relationship; Step 502: The target controller broadcasts first target controller matching information on a control plane of the software-defined network, where the first target controller matching information includes the first identifier and address information of the target controller ;
歩骤 503、 所述目标控制器接收所述网络转发设备在确定所述第一标 识符和所述第二标识符满足所述匹配关系后、 根据所述目标控制器的地址 信息发送的第三网络转发设备匹配信息, 所述第三网络转发设备匹配信息 包括所述第二标识符和所述网络转发设备的地址信息;  Step 503: The target controller receives, after determining that the first identifier and the second identifier satisfy the matching relationship, the network forwarding device sends the third information according to the address information of the target controller. The network forwarding device matching information, where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device;
歩骤 504、 所述目标控制器确定所述网络转发设备发送的所述第二标 识符与所述第一标识符满足所述匹配关系, 根据所述网络转发设备的地址 信息, 建立与所述网络转发设备的连接。  Step 504: The target controller determines that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establishes and is performed according to address information of the network forwarding device. The connection of the network forwarding device.
本实施例的应用场景如图 1实施例所示, 本实施例此处不再赘述。 在具体实现过程中, 当源控制器的负载达到上限值, 源控制器升级或 者源控制器需要负载均衡时, 由网络转发设备被源控制器控制, 切换到网 络转发设备被目标控制器控制。  The application scenario of this embodiment is as shown in the embodiment of FIG. 1 , and details are not described herein again. In the specific implementation process, when the load of the source controller reaches the upper limit, the source controller upgrades or the source controller needs load balancing, the network forwarding device is controlled by the source controller, and the switch to the network forwarding device is controlled by the target controller. .
在现有技术中, 当网络规模发生变化, 控制器进行切换时, 均需要在 发生控制域切换的网络转发设备上重新人工指定控制器地址。  In the prior art, when the network size changes and the controller performs handover, it is necessary to manually specify the controller address on the network forwarding device where the control domain handover occurs.
而在本发明中, 当源控制器切换到目标控制器时, 源控制器向网络调 度设备发送本机保存的第一标识符, 然后目标控制器接收网络调度设备发 送的标识符对中的第一标识符, 然后目标控制器根据第一标识符和第二标 识符的匹配关系,与网络转发设备建立连接,具体的建立连接的实现方式, 可参照源控制器根据第一标识符和第二标识符的匹配关系, 与网络转发设 备建立连接。  In the present invention, when the source controller switches to the target controller, the source controller sends the first identifier stored locally to the network scheduling device, and then the target controller receives the identifier pair sent by the network scheduling device. An identifier, and then the target controller establishes a connection with the network forwarding device according to the matching relationship between the first identifier and the second identifier, and the specific manner of establishing the connection may refer to the source controller according to the first identifier and the second The matching relationship of the identifiers establishes a connection with the network forwarding device.
本发明实施例提供的基于软件定义网络的组网方法, 目标控制器接收 网络调度设备或源控制器发送的标识符对中的第一标识符, 标识符对包括 第一标识符和第二标识符, 第二标识符为网络调度设备向网络转发设备发 送的标识符, 第一标识符为源控制器向网络调度设备发送的标识符, 第一 标识符和第二标识符具有匹配关系; 目标控制器在软件定义网络的控制平 面广播第一目标控制器匹配信息, 第一目标控制器匹配信息包括第一标识 符和目标控制器的地址信息; 目标控制器接收网络转发设备在确定第一标 识符和第二标识符满足匹配关系后、 根据目标控制器的地址信息发送的第 三网络转发设备匹配信息, 第三网络转发设备匹配信息包括第二标识符和 网络转发设备的地址信息; 目标控制器确定网络转发设备发送的第二标识 符与第一标识符满足匹配关系, 根据网络转发设备的地址信息, 建立与网 络转发设备的连接。不需要手动配置,使得源控制器到目标控制器的切换, 实现简单。 According to the networking method of the software-defined network provided by the embodiment of the present invention, the target controller receives the first identifier in the identifier pair sent by the network scheduling device or the source controller, and the identifier pair includes the first identifier and the second identifier. a second identifier is an identifier sent by the network scheduling device to the network forwarding device, where the first identifier is an identifier sent by the source controller to the network scheduling device, and the first identifier and the second identifier have a matching relationship; The controller broadcasts first target controller matching information on a control plane of the software defined network, the first target controller matching information includes a first identifier and address information of the target controller; and the target controller receives the network forwarding device in determining the first identifier And after the second identifier satisfies the matching relationship, according to the address information of the target controller The third network forwarding device matching information, the third network forwarding device matching information includes a second identifier and address information of the network forwarding device; the target controller determines that the second identifier sent by the network forwarding device matches the first identifier, according to the matching relationship, The network forwards the address information of the device to establish a connection with the network forwarding device. No manual configuration is required, so that the switching from the source controller to the target controller is simple to implement.
下面, 采用具体的实施例, 对网络调度设备对控制器和网络转发设备 的认证, 以及源控制器和目标控制器的切换进行详细说明。  In the following, a specific embodiment is used to specify the authentication of the controller and the network forwarding device by the network scheduling device, and the switching between the source controller and the target controller.
图 6为本发明基于软件定义网络的组网方法的初始化示意图。 在图 6 中, 主要示出了网络调度设备的内部组成结构, 通过网络调度设备内部各 模块的连接与通信, 完成初始化过程。 本实施例涉及的初始化过程主要为 网络调度设备对控制器和网络转发设备的认证, 分配标识符的过程。 并请 结合参照图 6, 本实施例的认证过程主要包括以下过程:  FIG. 6 is a schematic diagram of initialization of a networking method based on a software-defined network according to the present invention. In FIG. 6, the internal composition structure of the network scheduling device is mainly shown, and the initialization process is completed by scheduling the connection and communication of each module inside the device through the network. The initialization process involved in this embodiment is mainly a process in which the network scheduling device authenticates the controller and the network forwarding device, and assigns an identifier. Referring to FIG. 6, the authentication process of this embodiment mainly includes the following processes:
( 1 ) 网络管理人员通过上层接口向网络调度设备注册合法网络转发 设备标识, 网络调度设备通过上层接口将合法网络转发设备的标识写入到 数据库中的合法网络转发设备标识列表中; 网络调度设备接收源控制器发 送的注册请求, 向源控制器发送注册成功响应; 网络调度设备接收目标控 制器发送的注册请求, 向目标控制器发送注册成功响应。  (1) The network administrator registers the legal network forwarding device identifier with the network scheduling device through the upper-layer interface, and the network scheduling device writes the identifier of the legal network forwarding device to the legal network forwarding device identifier list in the database through the upper-layer interface; Receiving a registration request sent by the source controller, and sending a registration success response to the source controller; the network scheduling device receives the registration request sent by the target controller, and sends a registration success response to the target controller.
具体地, 为了便于陈述, 将本实施例的控制器分为了源控制器和目标 控制器, 在具体实现过程中, 对于网络调度设备而言, 在注册过程中, 是 不区分源控制器和目标控制器的, 在网络调度设备的数据库中, 存储已注 册的控制器的标识。  Specifically, for convenience of presentation, the controller of the embodiment is divided into a source controller and a target controller. In the specific implementation process, for the network scheduling device, in the registration process, the source controller and the target are not distinguished. The controller, in the database of the network scheduling device, stores the identity of the registered controller.
( 2 ) 控制器启动之后, 向网络调度设备的消息调度模块发送注册请 求, 网络调度设备在数据库中存储控制器的标识。  (2) After the controller is started, the registration request is sent to the message scheduling module of the network scheduling device, and the network scheduling device stores the identifier of the controller in the database.
( 3 ) 在网络转发设备将要加入组网时, 网络转发设备向网络调度设 备的消息调度模块发送标识符请求消息, 标识符请求消息中包括网络转发 设备的标识。  (3) When the network forwarding device is to join the networking, the network forwarding device sends an identifier request message to the message scheduling module of the network scheduling device, where the identifier request message includes the identifier of the network forwarding device.
( 4 ) 网络调度设备的消息调度模块接收网络转发设备发送的标识符 请求信息, 获取合法网络转发设备标识列表, 根据网络转发设备的标识以 及合法网络转发设备标识列表, 确定网络转发设备认证通过。 具体地, 当 该网络转发设备的标识在合法网络转发设备标识列表中时, 确定该网络转 发设备认证通过。 (4) The message scheduling module of the network scheduling device receives the identifier request information sent by the network forwarding device, obtains a legal network forwarding device identifier list, and determines that the network forwarding device passes the authentication according to the identifier of the network forwarding device and the legal network forwarding device identifier list. Specifically, when the identifier of the network forwarding device is in the legal network forwarding device identifier list, determining the network forwarding The equipment certification passed.
( 5 ) 网络调度设备的消息调度模块, 在确认网络转发设备合法后, 消息调度模块与标识符生成模块进行通信, 网络调度设备的标识符生成模 块, 生成标识符对, 包括第一标识符和第二标识符。  (5) a message scheduling module of the network scheduling device, after confirming that the network forwarding device is legal, the message scheduling module communicates with the identifier generating module, and the identifier generating module of the network scheduling device generates an identifier pair, including the first identifier and Second identifier.
( 6 ) 网络调度设备根据软件定义网络的状态信息, 在数据库中存储 的已注册的控制器中, 选择源控制器与网络转发设备进行组网。  (6) The network scheduling device selects the source controller and the network forwarding device to perform networking according to the state information of the software-defined network in the registered controllers stored in the database.
( 7 ) 网络调度组件的消息调度模块将标识符对中的第一标识符发送 给源控制器, 将标识符对中的第二标识符发送给网络转发设备。  (7) The message scheduling module of the network scheduling component sends the first identifier in the identifier pair to the source controller, and sends the second identifier in the identifier pair to the network forwarding device.
至此, 初始化过程完成, 在之后, 网络转发设备和源控制器根据第一 标识符和第二标识符的匹配关系, 进行组网。 具体的组网过程, 可参见图 3和图 4所示实施例, 此次不再赘述。  At this point, the initialization process is completed, and after that, the network forwarding device and the source controller perform networking according to the matching relationship between the first identifier and the second identifier. For the specific networking process, refer to the embodiment shown in Figure 3 and Figure 4, and details are not described here.
在有新网络转发设备加入的过程中, 其初始化过程可参见歩骤 (5 ) 至 (7 ) , 本实施例此处不再赘述。  For the process of adding a new network forwarding device, refer to steps (5) to (7) for the initialization process, which is not described here.
本发明实施例提供的初始化过程, 通过引入网络调度设备来完成网络 转发设备的入网认证, 可大幅降低未认证的网络转发设备带来的网络安全 威胁。  The initialization process provided by the embodiment of the present invention completes the network access authentication of the network forwarding device by introducing a network scheduling device, which can greatly reduce the network security threat brought by the unauthenticated network forwarding device.
进一歩地, 在图 6所示的实施例中, 图 6所示的网络调度设备还可以包 括地址生成模块 (未示出) , 地址生成模块在网络调度设备将标识符对中 的第一标识符发送给源控制器, 将标识符对中的第二标识符发送给网络转 发设备之前, 生成网络转发设备的连接地址, 连接地址与源控制器的默认 地址属于同一网段。 例如, 在一个大网内, 通过将网络转发设备设定为与 源控制器或目标控制器同网段的 IP地址, 便于对网络转发设备的地址进行 管理。  Further, in the embodiment shown in FIG. 6, the network scheduling device shown in FIG. 6 may further include an address generating module (not shown), and the address generating module identifies the first identifier in the identifier pair in the network scheduling device. The symbol is sent to the source controller, and before the second identifier in the identifier pair is sent to the network forwarding device, the connection address of the network forwarding device is generated, and the connection address belongs to the same network segment as the default address of the source controller. For example, in a large network, it is convenient to manage the address of the network forwarding device by setting the network forwarding device to the IP address of the same network segment as the source controller or the target controller.
可选地, 网络调度设备将标识符对中的第二标识符发送给网络转发设 备, 包括: 网络调度设备将网络转发设备的连接地址以及标识符对中的第 二标识符发送给网络转发设备。  Optionally, the network scheduling device sends the second identifier in the identifier pair to the network forwarding device, including: the network scheduling device sends the connection address of the network forwarding device and the second identifier in the identifier pair to the network forwarding device. .
在具体实现过程中, 源控制器切换到目标控制器, 包括两种可能的实 现方式, 下面分别进行详细说明。  In the specific implementation process, the source controller switches to the target controller, including two possible implementation modes, which are described in detail below.
图 7为本发明实施例提供的控制域切换实施例一的示意图。 在本实施 例中, 源控制器与目标控制器的切换, 主要由网络调度设备控制。 在图 7 中, 包括网络调度设备调度的控制器包括控制器 CI和控制器 C2, 控制器 C1为本实施例中的源控制器,控制器 C2为本实施例中的目标控制器,在切 换前, 控制器 C1对网络转发设备 S1和网络转发设备 S2具有控制权, 在切换 后, 控制器 C2对网络转发设备 S2具有控制权。 请结合参照图 7, 本实施例 的控制域切换具体包括以下歩骤: FIG. 7 is a schematic diagram of Embodiment 1 of a control domain handover according to an embodiment of the present invention. In this embodiment, the switching between the source controller and the target controller is mainly controlled by the network scheduling device. In Figure 7 The controller including the network scheduling device scheduling includes a controller CI and a controller C2, the controller C1 is the source controller in the embodiment, and the controller C2 is the target controller in the embodiment, and is controlled before the switching. The controller C1 has control over the network forwarding device S1 and the network forwarding device S2. After the handover, the controller C2 has control over the network forwarding device S2. Referring to FIG. 7, the control domain switching in this embodiment specifically includes the following steps:
(1) 源控制器根据源控制器的工作状态, 触发对网络转发设备 S2的 控制权切换, 向网络调度设备发送释放控制权请求消息;  (1) The source controller triggers a control right handover to the network forwarding device S2 according to the working state of the source controller, and sends a release control right request message to the network scheduling device;
(2) 网络调度设备接收源控制器发送的释放控制权请求信息, 特别 地, 源控制器和网络转发设备 S2组网成功之后, 源控制器对网络转发设备 S2具有控制权, 网络调度设备根据软件定义网络的状态信息, 在已注册的 控制器中, 选择目标控制器与网络转发设备 S2进行组网;  (2) The network scheduling device receives the release control right request information sent by the source controller. Specifically, after the source controller and the network forwarding device S2 are successfully networked, the source controller has control right to the network forwarding device S2, and the network scheduling device according to The software defines the status information of the network, and in the registered controller, selects the target controller and the network forwarding device S2 to perform networking;
(3) 网络调度设备向目标控制器发送第一标识符, 其中, 第一标识 符为网络调度设备之前发送给源控制器的第一标识符;  (3) The network scheduling device sends a first identifier to the target controller, where the first identifier is a first identifier sent by the network scheduling device to the source controller;
(4) 目标控制器接收网络调度设备发送的标识符对中的第一标识符, 目标控制器在软件定义网络的控制平面广播第一目标控制器匹配信息, 第 一目标控制器匹配信息包括第一标识符和目标控制器的地址信息;  (4) the target controller receives the first identifier in the identifier pair sent by the network scheduling device, and the target controller broadcasts the first target controller matching information on the control plane of the software-defined network, where the first target controller matching information includes An identifier and address information of the target controller;
(5) 网络转发设备 S2接收目标控制器在软件定义网络的控制平面广 播的第一目标控制器匹配信息, 网络转发设备 S2确定目标控制器广播的第 一标识符和第二标识符满足匹配关系;  (5) The network forwarding device S2 receives the first target controller matching information broadcast by the target controller on the control plane of the software-defined network, and the network forwarding device S2 determines that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship. ;
(6)网络转发设备 S2向目标控制器发送第三网络转发设备匹配信息, 第三网络转发设备匹配信息包括第二标识符和网络转发设备的地址信息; (6) The network forwarding device S2 sends the third network forwarding device matching information to the target controller, where the third network forwarding device matching information includes the second identifier and the address information of the network forwarding device;
(7) 目标控制器接收网络转发设备 S2在确定第一标识符和第二标识 符满足匹配关系后、 发送的第三网络转发设备匹配信息, 目标控制器确定 网络转发设备 S2发送的第二标识符与第一标识符满足匹配关系; (7) The target controller receives the third network forwarding device matching information sent by the network forwarding device S2 after determining that the first identifier and the second identifier satisfy the matching relationship, and the target controller determines the second identifier sent by the network forwarding device S2. And the first identifier satisfies a matching relationship;
(8) 目标控制器和网络转发设备 S2通过握手消息, 建立连接; (8) The target controller and the network forwarding device S2 establish a connection by using a handshake message;
(9) 目标控制器向网络调度设备发送组网成功通知消息; (9) The target controller sends a networking success notification message to the network scheduling device;
(10) 网络调度设备接收目标控制器发送的组网成功通知消息, 向源 控制器发送释放控制权响应信息;  (10) The network scheduling device receives the networking success notification message sent by the target controller, and sends a release control right response message to the source controller;
(11)源控制器接收网络调度设备在目标控制器与网络转发设备建立 连接后, 发送的释放控制权响应信息, 释放对网络转发设备 S2的控制权。 本实施例提供的控制域切换, 源控制器和目标控制器之间只需传递标 识符信息, 目标控制器通过对获得的新标识符在控制平面广播, 获得拥有 与其匹配的交换机的信息, 组成新的控制域, 不需要在发生控制域切换的 网络转发设备上重新人工指定控制器地址。 (11) The source controller receives the release control right response message sent by the network scheduling device after the target controller establishes a connection with the network forwarding device, and releases the control right to the network forwarding device S2. In the control domain switching provided by this embodiment, only the identifier information is transmitted between the source controller and the target controller, and the target controller broadcasts the obtained new identifier on the control plane to obtain the information of the switch that matches the matching, and constitutes The new control domain does not require manual reassignment of the controller address on the network forwarding device where the control domain switch occurs.
图 8为本发明实施例提供的控制域切换实施例二的示意图。 在本实施 例中, 源控制器与目标控制器的切换, 主要由源控制器控制。 在图 8中, 包括网络调度设备调度的控制器包括控制器 C1和控制器 C2 , 控制器 C1为 本实施例中的源控制器,控制器 C2为本实施例中的目标控制器,在切换前, 控制器 C1对网络转发设备 S 1和网络转发设备 S2具有控制权, 在切换后, 控 制器 C2对网络转发设备 S2具有控制权。 请结合参照图 8, 本实施例的控制 域切换具体包括以下歩骤:  FIG. 8 is a schematic diagram of Embodiment 2 of a control domain handover according to an embodiment of the present invention. In this embodiment, the switching between the source controller and the target controller is mainly controlled by the source controller. In FIG. 8, the controller including the network scheduling device scheduling includes a controller C1 and a controller C2. The controller C1 is the source controller in the embodiment, and the controller C2 is the target controller in the embodiment. The controller C1 has control over the network forwarding device S1 and the network forwarding device S2. After the handover, the controller C2 has control over the network forwarding device S2. Referring to FIG. 8, the control domain switching in this embodiment specifically includes the following steps:
( 1 ) 源控制器根据源控制器的工作状态, 触发对网络转发设备 S2的 控制权切换, 向目标控制器发送释放控制权请求消息;  (1) The source controller triggers a control right handover to the network forwarding device S2 according to the working state of the source controller, and sends a release control right request message to the target controller;
( 2 ) 源控制器确定目标控制器; 具体地, 源控制器在控制器平面与 可进行通信的其它控制器进行协商, 确认同意接收网络转发设备 S2的控制 权的控制器 (目标控制器) ;  (2) The source controller determines the target controller; specifically, the source controller negotiates with other controllers that can communicate at the controller plane, and confirms the controller (target controller) that agrees to receive the control of the network forwarding device S2. ;
( 3 ) 源控制器向目标控制器发送第一标识符;  (3) the source controller sends the first identifier to the target controller;
( 4 ) 目标控制器接收源控制器发送的标识符对中的第一标识符, 目 标控制器在软件定义网络的控制平面广播第一目标控制器匹配信息, 第一 目标控制器匹配信息包括第一标识符和目标控制器的地址信息;  (4) the target controller receives the first identifier in the identifier pair sent by the source controller, and the target controller broadcasts the first target controller matching information on the control plane of the software-defined network, where the first target controller matching information includes An identifier and address information of the target controller;
( 5 ) 网络转发设备 S2接收目标控制器在软件定义网络的控制平面广 播的第一目标控制器匹配信息, 网络转发设备 S2确定目标控制器广播的第 一标识符和第二标识符满足匹配关系;  (5) The network forwarding device S2 receives the first target controller matching information broadcast by the target controller on the control plane of the software-defined network, and the network forwarding device S2 determines that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship. ;
( 6 ) 网络转发设备 S2根据目标控制器的地址信息, 向目标控制器发 送第三网络转发设备匹配信息, 第三网络转发设备匹配信息包括第二标识 符和网络转发设备的地址信息;  (6) The network forwarding device S2 sends the third network forwarding device matching information to the target controller according to the address information of the target controller, where the third network forwarding device matching information includes the second identifier and the address information of the network forwarding device;
( 7 ) 目标控制器接收网络转发设备 S2在确定第一标识符和第二标识 符满足匹配关系后、 根据目标控制器的地址信息发送的第三网络转发设备 匹配信息, 目标控制器确定网络转发设备 S2发送的第二标识符与第一标识 符满足匹配关系; ( 8 ) 目标控制器根据网络转发设备的地址信息, 和网络转发设备 S2 通过握手消息, 建立连接; (7) The target controller receives the third network forwarding device matching information that is sent by the network forwarding device S2 according to the address information of the target controller after determining that the first identifier and the second identifier satisfy the matching relationship, and the target controller determines the network forwarding. The second identifier sent by the device S2 satisfies a matching relationship with the first identifier; (8) The target controller establishes a connection by using a handshake message according to the address information of the network forwarding device and the network forwarding device S2;
( 9 ) 目标控制器向源控制器发送组网成功通知消息;  (9) The target controller sends a networking success notification message to the source controller;
( 10) 源控制器释放对网络转发设备 S2的控制权。  (10) The source controller releases control of the network forwarding device S2.
本实施例提供的控制域切换, 源控制器和目标控制器之间只需传递标 识符信息, 目标控制器通过对获得的新标识符在控制平面广播, 获得拥有 与其匹配的交换机的信息, 组成新的控制域, 不需要在发生控制域切换的 网络转发设备上重新人工指定控制器地址。  In the control domain switching provided by this embodiment, only the identifier information is transmitted between the source controller and the target controller, and the target controller broadcasts the obtained new identifier on the control plane to obtain the information of the switch that matches the matching, and constitutes The new control domain does not require manual reassignment of the controller address on the network forwarding device where the control domain switch occurs.
可选地, 在上述的各实施例中, 目标控制器的地址信息包括目标控制 器的默认地址; 源控制器的地址信息包括源控制器的默认地址; 网络转发 设备的地址信息包括网络转发设备的默认地址或网络调度设备为网络转 发设备分配的连接地址, 连接地址与源控制器的默认地址属于同一网段。  Optionally, in each of the foregoing embodiments, the address information of the target controller includes a default address of the target controller; the address information of the source controller includes a default address of the source controller; and the address information of the network forwarding device includes a network forwarding device. The default address or the connection address assigned by the network scheduling device to the network forwarding device. The connection address belongs to the same network segment as the default address of the source controller.
在具体实现过程中, 目标控制器和源控制器的默认地址可以为网络协 议 (Internet Protocol , 简称 IP ) 地址或媒质接入控制 (Medium Access Control, 简称 MAC )地址。 网络转发设备的默认地址可以为 IP地址或 MAC 地址, 该 IP地址或 MAC地址具体可以为网络转发设备出厂时的地址。  In a specific implementation process, the default address of the target controller and the source controller may be an Internet Protocol (IP) address or a Medium Access Control (MAC) address. The default address of the network forwarding device may be an IP address or a MAC address, and the IP address or the MAC address may be an address when the network forwarding device is shipped.
进一歩地, 为了便于管理控制器和网络转发设备的地址信息, 网络调 度设备可以生成网络转发设备的连接地址, 该连接地址与源控制器的默认 地址属于同一网段。 例如, 在一个大网内, 可以通过将网络转发设备设定 为与源控制器或目标控制器同网段的 IP地址, 网络转发设备通过该 IP地址 直接与源控制器或目标控制器通信。通过采用网络调度设备对网络转发设 备分配地址的方式, 便于对网络转发设备进行管理。  Further, in order to facilitate management of the address information of the controller and the network forwarding device, the network scheduling device may generate a connection address of the network forwarding device, and the connection address belongs to the same network segment as the default address of the source controller. For example, in a large network, the network forwarding device can be set to the IP address of the same network segment as the source controller or the target controller, and the network forwarding device directly communicates with the source controller or the target controller through the IP address. By using a network scheduling device to allocate addresses to network forwarding devices, it is convenient to manage network forwarding devices.
图 9为本发明网络调度设备实施例一的结构示意图, 本实施例提供的 网络调度设备 90, 包括: 生成模块 901、 发送模块 902。  FIG. 9 is a schematic structural diagram of Embodiment 1 of a network scheduling device according to the present invention. The network scheduling device 90 provided in this embodiment includes: a generating module 901 and a sending module 902.
生成模块 901, 用于生成用于源控制器和网络转发设备进行组网的标 识符对;  a generating module 901, configured to generate an identifier pair for networking between the source controller and the network forwarding device;
发送模块 902, 用于将所述标识符对中的第一标识符发送给源控制器, 将所述标识符对中的第二标识符发送给网络转发设备, 所述第一标识符和 所述第二标识符具有匹配关系, 以使所述源控制器和所述网络转发设备根 据所述第一标识符和所述第二标识符的匹配关系进行组网。 本实施例提供的网络调度设备, 可用于执行上述方法实施例的技术方 案, 其实现原理和技术效果类似, 本实施例此处不再赘述。 The sending module 902 is configured to send the first identifier in the identifier pair to the source controller, and send the second identifier in the identifier pair to the network forwarding device, where the first identifier and the The second identifier has a matching relationship, so that the source controller and the network forwarding device perform networking according to the matching relationship between the first identifier and the second identifier. The network scheduling device provided by this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar.
图 10为本发明网络调度设备实施例二的结构示意图, 本实施例在图 9 实施例的基础上实现, 具体如下:  10 is a schematic structural diagram of Embodiment 2 of a network scheduling device according to the present invention. This embodiment is implemented on the basis of the embodiment of FIG. 9, and the details are as follows:
可选地, 本实施例提供的网络调度设备 90还包括:  Optionally, the network scheduling device 90 provided in this embodiment further includes:
接收模块 903, 用于在所述标识符发送模块将所述标识符对中的第一 标识符发送给源控制器, 将所述标识符对中的第二标识符发送给网络转发 设备之后, 接收所述源控制器发送的释放控制权请求信息; 其中, 所述源 控制器和所述网络转发设备组网成功之后, 所述源控制器对所述网络转发 设备具有控制权;  The receiving module 903 is configured to: after the identifier sending module sends the first identifier in the identifier pair to the source controller, and send the second identifier in the identifier pair to the network forwarding device, Receiving the release control right request information sent by the source controller; wherein, after the source controller and the network forwarding device are successfully networked, the source controller has control right to the network forwarding device;
选择模块 904, 用于根据所述软件定义网络的状态信息, 在已注册的 控制器中, 选择目标控制器与所述网络转发设备进行组网;  The selecting module 904 is configured to select, according to the state information of the software-defined network, the target controller and the network forwarding device to perform networking in the registered controller.
所述发送模块 902还用于, 向所述目标控制器发送所述第一标识符, 以使所述目标控制器和所述网络转发设备根据所述第一标识符和所述第 二标识符的匹配关系进行组网;  The sending module 902 is further configured to send the first identifier to the target controller, so that the target controller and the network forwarding device are configured according to the first identifier and the second identifier. The matching relationship is organized;
所述接收模块 903还用于, 接收所述目标控制器发送的组网成功通知 消息, 向所述源控制器发送释放控制权响应信息。  The receiving module 903 is further configured to: receive a networking success notification message sent by the target controller, and send release control right response information to the source controller.
可选地, 所述接收模块 903还用于, 在所述生成模块生成用于网络转 发设备和源控制器进行组网的标识符对之前, 接收所述网络转发设备发送 的标识符请求信息, 所述标识符请求信息中包括所述网络转发设备的标 识;  Optionally, the receiving module 903 is further configured to: before the generating module generates an identifier pair used by the network forwarding device and the source controller to perform networking, receiving identifier request information sent by the network forwarding device, where The identifier request information includes an identifier of the network forwarding device;
还包括: 认证模块 905, 用于根据所述网络转发设备的标识以及合法 网络转发设备标识列表, 确定所述网络转发设备认证通过;  The method further includes: an authentication module 905, configured to determine, according to the identifier of the network forwarding device and the legal network forwarding device identifier list, that the network forwarding device passes the authentication;
所述选择模块 904还用于, 根据所述软件定义网络的状态信息, 在已 注册的控制器中, 选择所述源控制器与所述网络转发设备进行组网。  The selection module 904 is further configured to select, according to the state information of the software-defined network, the source controller and the network forwarding device to perform networking in the registered controller.
可选地, 所述网络转发设备接收所述网络调度设备发送的所述第二标 识符, 在软件定义网络的控制平面广播第一网络转发设备匹配信息, 所述 第一网络转发设备匹配信息包括所述第二标识符和所述网络转发设备的 地址信息, 接收所述源控制器在确定所述第一标识符和所述第二标识符满 足所述匹配关系后、 根据所述网络转发设备的地址信息发送的第一源控制 器匹配信息, 所述第一源控制器匹配信息包括所述第一标识符和所述源控 制器的地址信息, 确定所述源控制器发送的所述第一标识符与所述第二标 识符满足所述匹配关系, 根据所述源控制器的地址信息, 建立与所述源控 制器的连接; 或者 Optionally, the network forwarding device receives the second identifier sent by the network scheduling device, and broadcasts, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes The second identifier and the address information of the network forwarding device, after receiving the source controller, after determining that the first identifier and the second identifier satisfy the matching relationship, according to the network forwarding device First source control for sending address information The first source controller matching information includes the first identifier and the address information of the source controller, and the first identifier and the second identifier sent by the source controller are determined. And satisfying the matching relationship, establishing a connection with the source controller according to the address information of the source controller; or
所述源控制器接收所述网络调度设备发送的所述第一标识符, 在软件 定义网络的控制平面广播第二源控制器匹配信息, 所述第二源控制器匹配 信息包括所述第一标识符和所述源控制的地址信息, 接收所述网络转发设 备在确定所述第一标识符和所述第二标识符满足所述匹配关系后、 根据所 述源控制器的地址信息发送的第二网络转发设备匹配信息, 所述第二网络 转发设备匹配信息中包括所述第二标识符和所述网络转发设备的地址信 息, 确定所述网络转发设备发送的所述第二标识符与所述第一标识符满足 所述匹配关系, 根据所述网络转发设备的地址信息, 建立与所述网络转发 设备的连接。  Receiving, by the source controller, the first identifier sent by the network scheduling device, and broadcasting, by the control plane of the software-defined network, second source controller matching information, where the second source controller matching information includes the first The identifier and the address information of the source control are sent by the network forwarding device according to the address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship The second network forwarding device matching information, where the second network forwarding device matching information includes the second identifier and address information of the network forwarding device, and determining the second identifier sent by the network forwarding device The first identifier satisfies the matching relationship, and establishes a connection with the network forwarding device according to the address information of the network forwarding device.
图 11为本发明网络转发设备实施例一的结构示意图。 本实施例提供的 网络转发设备 110包括: 接收模块 1101, 广播模块 1102, 处理模块 1103。  FIG. 11 is a schematic structural diagram of Embodiment 1 of a network forwarding device according to the present invention. The network forwarding device 110 provided in this embodiment includes: a receiving module 1101, a broadcasting module 1102, and a processing module 1103.
接收模块 1101, 用于接收网络调度设备发送的标识符对中的第二标识 符; 所述标识符对包括第一标识符和所述第二标识符, 所述第一标识符为 所述网络调度设备向源控制器发送的标识符, 所述第一标识符和所述第二 标识符具有匹配关系;  The receiving module 1101 is configured to receive a second identifier in an identifier pair sent by the network scheduling device, where the identifier pair includes a first identifier and the second identifier, where the first identifier is the network An identifier sent by the scheduling device to the source controller, the first identifier and the second identifier having a matching relationship;
广播模块 1102, 用于在软件定义网络的控制平面广播第一网络转发设 备匹配信息, 所述第一网络转发设备匹配信息包括所述第二标识符和所述 网络转发设备的地址信息;  The broadcast module 1102 is configured to broadcast, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes the second identifier and address information of the network forwarding device.
所述接收模块 1101还用于, 接收所述源控制器在确定所述第一标识符 和所述第二标识符满足所述匹配关系后、 根据所述网络转发设备的地址信 息发送的第一源控制器匹配信息, 所述第一源控制器匹配信息包括所述第 一标识符和所述源控制器的地址信息;  The receiving module 1101 is further configured to: receive, by the source controller, the first sent according to the address information of the network forwarding device after determining that the first identifier and the second identifier satisfy the matching relationship Source controller matching information, where the first source controller matching information includes the first identifier and address information of the source controller;
处理模块 1103, 用于确定所述源控制器发送的所述第一标识符与所述 第二标识符满足所述匹配关系, 根据所述源控制器的地址信息, 建立与所 述源控制器的连接。  The processing module 1103 is configured to determine that the first identifier and the second identifier sent by the source controller meet the matching relationship, and establish, with the source controller, according to address information of the source controller. Connection.
可选地, 所述接收模块 1101还用于, 接收所述源控制器在所述软件定 义网络的控制平面广播的第二源控制器匹配信息, 所述第二源控制器匹配 信息包括所述第一标识符和所述源控制器的地址信息; Optionally, the receiving module 1101 is further configured to: receive the source controller in the software setting a second source controller matching information broadcasted by the control plane of the network, where the second source controller matching information includes the first identifier and address information of the source controller;
所述处理模块 1103还用于, 确定所述第一标识符和所述第二标识符满 足所述匹配关系, 根据所述源控制器的地址信息, 向所述源控制器发送第 二网络转发设备匹配信息, 所述第二网络转发设备匹配信息包括所述第二 标识符和所述网络转发设备的地址信息, 以使所述源控制器根据所述第一 标识符和所述第二标识符的匹配关系和所述网络转发设备的地址信息, 建 立与所述网络转发设备的连接。  The processing module 1103 is further configured to: determine that the first identifier and the second identifier satisfy the matching relationship, and send a second network forwarding to the source controller according to the address information of the source controller. Device matching information, the second network forwarding device matching information includes the second identifier and address information of the network forwarding device, so that the source controller is configured according to the first identifier and the second identifier. And a matching relationship between the symbol and the address information of the network forwarding device, establishing a connection with the network forwarding device.
可选地, 所述接收模块 1101还用于, 在所述源控制器根据所述源控制 器的工作状态, 触发对所述网络转发设备的控制权切换, 所述源控制器向 所述网络调度设备发送释放控制权请求消息, 所述网络调度设备向目标控 制器发送所述第一标识符条件下, 所述处理模块建立与所述源控制器的连 接之后, 所述网络转发设备接收所述目标控制器在所述软件定义网络的控 制平面广播的第一目标控制器匹配信息, 所述第一目标控制器匹配信息包 括所述第一标识符和所述目标控制器的地址信息;  Optionally, the receiving module 1101 is further configured to: when the source controller triggers a control right handover to the network forwarding device according to an operating state of the source controller, where the source controller is to the network The scheduling device sends a release control right request message, and after the network scheduling device sends the first identifier to the target controller, after the processing module establishes a connection with the source controller, the network forwarding device receives the Determining, by the target controller, first target controller matching information broadcasted by a control plane of the software-defined network, where the first target controller matching information includes the first identifier and address information of the target controller;
所述处理模块 1103还用于, 确定所述目标控制器广播的所述第一标识 符和所述第二标识符满足所述匹配关系;  The processing module 1103 is further configured to: determine that the first identifier and the second identifier that are broadcast by the target controller meet the matching relationship;
可选地, 还包括, 发送模块, 用于根据所述目标控制器的地址信息, 向所述目标控制器发送第三网络转发设备匹配信息, 所述第三网络转发设 备匹配信息包括所述第二标识符和所述网络转发设备的地址信息, 以使所 述目标控制器根据所述第一标识符和所述第二标识符的匹配关系以及所 述网络转发设备的地址信息, 建立与所述网络转发设备的连接。  Optionally, the sending module is further configured to: send, according to the address information of the target controller, third network forwarding device matching information to the target controller, where the third network forwarding device matching information includes the a second identifier and address information of the network forwarding device, so that the target controller establishes a relationship according to a matching relationship between the first identifier and the second identifier and address information of the network forwarding device The connection of the network forwarding device.
本实施例提供的网络转发设备, 可用于执行上述方法实施例的技术方 案, 其实现原理和技术效果类似, 本实施例此处不再赘述。  The network forwarding device provided in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar.
图 12为本发明源控制器实施例一的结构示意图。 本实施例提供的源控 制器 120包括: 接收模块 1201, 广播模块 1202, 处理模块 1203。  FIG. 12 is a schematic structural diagram of Embodiment 1 of a source controller according to the present invention. The source controller 120 provided in this embodiment includes: a receiving module 1201, a broadcasting module 1202, and a processing module 1203.
接收模块 1201, 用于接收网络调度设备发送的标识符对中的第一标识 符; 所述标识符对包括所述第一标识符和第二标识符, 所述第二标识符为 所述网络调度设备向网络转发设备发送的标识符, 所述第一标识符和所述 第二标识符具有匹配关系; 广播模块 1202, 用于在软件定义网络的控制平面广播第二源控制器匹 配信息, 所述第二源控制器匹配信息包括所述第一标识符和所述源控制的 地址信息; The receiving module 1201 is configured to receive a first identifier in an identifier pair sent by the network scheduling device; the identifier pair includes the first identifier and the second identifier, and the second identifier is the network An identifier sent by the scheduling device to the network forwarding device, where the first identifier and the second identifier have a matching relationship; The broadcast module 1202 is configured to broadcast second source controller matching information on a control plane of the software-defined network, where the second source controller matching information includes the first identifier and the source-controlled address information;
所述接收模块 1201还用于, 接收所述网络转发设备在确定所述第一标 识符和所述第二标识符满足所述匹配关系后、 根据所述源控制器的地址信 息发送的第二网络转发设备匹配信息, 所述第二网络转发设备匹配信息中 包括所述第二标识符和所述网络转发设备的地址信息;  The receiving module 1201 is further configured to: receive, after the network forwarding device determines that the first identifier and the second identifier satisfy the matching relationship, send the second information according to the address information of the source controller. The network forwarding device matching information, where the second network forwarding device matching information includes the second identifier and address information of the network forwarding device;
处理模块 1203, 用于确定所述网络转发设备发送的所述第二标识符与 所述第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信息, 建立与所述网络转发设备的连接。  The processing module 1203 is configured to determine that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establish a network forwarding device according to the address information of the network forwarding device. Connection.
可选地, 所述接收模块 1201还用于, 接收所述网络转发设备在所述软 件定义网络的控制平面广播的第一网络转发设备匹配信息, 所述第一网络 转发设备匹配信息包括第二标识符和所述网络转发设备的地址信息;  Optionally, the receiving module 1201 is further configured to: receive, by the network forwarding device, first network forwarding device matching information that is broadcasted by a control plane of the software-defined network, where the first network forwarding device matching information includes a second An identifier and address information of the network forwarding device;
所述处理模块 1203, 还用于确定所述第一标识符和所述第二标识符满 足所述匹配关系;  The processing module 1203 is further configured to determine that the first identifier and the second identifier satisfy the matching relationship;
还包括, 第一发送模块, 用于根据所述网络转发设备的地址信息, 向 所述网络转发设备发送第一源控制器匹配信息, 所述第一源控制器匹配信 息包括所述第一标识符和所述源控制器的地址信息, 以使所述网络转发设 备根据所述第一标识符和所述第二标识符的匹配关系以及所述源控制的 地址信息建立与所述源控制器的连接。  The first sending module is configured to send first source controller matching information to the network forwarding device according to the address information of the network forwarding device, where the first source controller matching information includes the first identifier And the address information of the source controller, so that the network forwarding device establishes with the source controller according to the matching relationship between the first identifier and the second identifier and the address information of the source control Connection.
可选地, 还包括:  Optionally, the method further includes:
第一切换模块, 用于在所述处理模块建立与所述网络转发设备的连接 之后, 根据所述源控制器的工作状态, 触发对所述网络转发设备的控制权 切换;  a first switching module, configured to trigger a control right handover to the network forwarding device according to an operating state of the source controller after the processing module establishes a connection with the network forwarding device;
第二发送模块, 用于向所述网络调度设备发送释放控制权请求消息, 以使所述网络调度设备向目标控制器发送所述第一标识符;  a second sending module, configured to send a release control right request message to the network scheduling device, to enable the network scheduling device to send the first identifier to a target controller;
所述接收模块还用于, 接收所述网络调度设备在所述目标控制器与所 述网络转发设备建立连接后, 发送的释放控制权响应信息。  The receiving module is further configured to: receive release control right response information sent by the network scheduling device after the target controller establishes a connection with the network forwarding device.
可选地, 还包括:  Optionally, the method further includes:
第二切换模块, 用于在所述处理模块建立与所述网络转发设备的连接 之后, 根据所述源控制器的工作状态, 触发对所述网络转发设备的控制权 切换; a second switching module, configured to establish a connection with the network forwarding device at the processing module After that, according to the working state of the source controller, triggering a control right handover to the network forwarding device;
第三发送模块, 用于确定目标控制器, 向所述目标控制器发送所述第 一标识符, 以使所述目标控制器根据所述第一标识符和所述第二标识符的 匹配关系建立与所述网络转发设备的连接;  a third sending module, configured to determine a target controller, and send the first identifier to the target controller, so that the target controller performs a matching relationship according to the first identifier and the second identifier Establishing a connection with the network forwarding device;
所述接收模块还用于, 接收所述目标控制器发送的所述目标控制器与 所述网络转发设备成功建立连接的通知消息;  The receiving module is further configured to: receive a notification message that the target controller sent by the target controller successfully establishes a connection with the network forwarding device;
所述处理模块还用于, 释放对所述网络转发设备的控制权。  The processing module is further configured to release control of the network forwarding device.
本实施例提供的源控制器, 可用于执行上述方法实施例的技术方案, 其实现原理和技术效果类似, 本实施例此处不再赘述。  The source controller provided in this embodiment may be used to perform the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar.
图 13为本发明目标控制器实施例一的结构示意图。 本实施例提供的目 标控制器 130包括:  FIG. 13 is a schematic structural diagram of Embodiment 1 of an object controller according to the present invention. The target controller 130 provided in this embodiment includes:
接收模块 1301, 用于接收网络调度设备或源控制器发送的标识符对中 的第一标识符, 所述标识符对包括第一标识符和第二标识符, 所述第二标 识符为所述网络调度设备向网络转发设备发送的标识符, 所述第一标识符 为源控制器向所述网络调度设备发送的标识符, 所述第一标识符和所述第 二标识符具有匹配关系;  The receiving module 1301 is configured to receive a first identifier in an identifier pair sent by the network scheduling device or the source controller, where the identifier pair includes a first identifier and a second identifier, where the second identifier is An identifier sent by the network scheduling device to the network forwarding device, where the first identifier is an identifier sent by the source controller to the network scheduling device, and the first identifier and the second identifier have a matching relationship ;
广播模块 1302, 用于在软件定义网络的控制平面广播第一目标控制器 匹配信息, 所述第一目标控制器匹配信息包括所述第一标识符和所述目标 控制器的地址信息;  The broadcast module 1302 is configured to broadcast, in a control plane of the software-defined network, first target controller matching information, where the first target controller matching information includes the first identifier and address information of the target controller;
所述接收模块 1301还用于, 接收所述网络转发设备在确定所述第一标 识符和所述第二标识符满足所述匹配关系后、 根据所述目标控制器的地址 信息发送的第三网络转发设备匹配信息, 所述第三网络转发设备匹配信息 包括所述第二标识符和所述网络转发设备的地址信息;  The receiving module 1301 is further configured to: receive, after the network forwarding device determines that the first identifier and the second identifier satisfy the matching relationship, send the third information according to the address information of the target controller. The network forwarding device matching information, where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device;
处理模块 1303, 用于确定所述网络转发设备发送的所述第二标识符与 所述第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信息, 建立与所述网络转发设备的连接。  The processing module 1303 is configured to determine that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establish a network forwarding device according to the address information of the network forwarding device. Connection.
可选地, 还包括, 发送模块, 用于在所述处理模块建立与所述网络转 发设备的连接之后,  Optionally, the method further includes: a sending module, after the processing module establishes a connection with the network forwarding device,
向所述网络调度设备发送组网成功通知消息, 以使所述网络调度设备 向源控制器发送释放控制权响应消息; 或者 Sending a network success notification message to the network scheduling device, so that the network scheduling device Sending a release control response message to the source controller; or
向所述源控制器发送组网成功通知消息, 以使所述源控制器释放控制 本实施例提供的目标控制器, 可用于执行上述方法实施例的技术方 案, 其实现原理和技术效果类似, 本实施例此处不再赘述。  Sending a network success notification message to the source controller, so that the source controller releases and controls the target controller provided in this embodiment, which may be used to perform the technical solution of the foregoing method embodiment, and the implementation principle and technical effect are similar. This embodiment will not be repeated here.
图 14为本发明网络调度设备实施例三的结构示意图。 本实施例提供的 网络调度设备 140包括处理器 1401、 发送器 1402和接收器 1403。  FIG. 14 is a schematic structural diagram of Embodiment 3 of a network scheduling device according to the present invention. The network scheduling device 140 provided in this embodiment includes a processor 1401, a transmitter 1402, and a receiver 1403.
所述处理器 1401用于生成用于源控制器和网络转发设备进行组网的 标识符对;  The processor 1401 is configured to generate an identifier pair used by the source controller and the network forwarding device to perform networking;
所述发送器 1402用于将所述标识符对中的第一标识符发送给源控制 器, 将所述标识符对中的第二标识符发送给网络转发设备, 所述第一标识 符和所述第二标识符具有匹配关系, 以使所述源控制器和所述网络转发设 备根据所述第一标识符和所述第二标识符的匹配关系进行组网。  The transmitter 1402 is configured to send the first identifier in the identifier pair to the source controller, and send the second identifier in the identifier pair to the network forwarding device, the first identifier and The second identifier has a matching relationship, so that the source controller and the network forwarding device perform networking according to a matching relationship between the first identifier and the second identifier.
可选地, 在所述发送器 1402将所述标识符对中的第一标识符发送给源 控制器, 将所述标识符对中的第二标识符发送给网络转发设备之后,  Optionally, after the transmitter 1402 sends the first identifier in the identifier pair to the source controller, and sends the second identifier in the identifier pair to the network forwarding device,
所述接收器 1403用于接收所述源控制器发送的释放控制权请求信息; 其中, 所述源控制器和所述网络转发设备组网成功之后, 所述源控制器对 所述网络转发设备具有控制权;  The receiver 1403 is configured to receive the release control right request information sent by the source controller, where the source controller forwards the network to the network after the source controller and the network forwarding device are successfully networked. Have control
所述处理器 1401还用于根据所述软件定义网络的状态信息, 在已注册 的控制器中, 选择目标控制器与所述网络转发设备进行组网;  The processor 1401 is further configured to select, according to the state information of the software-defined network, a target controller and the network forwarding device to perform networking in the registered controller;
所述发送器 1402还用于向所述目标控制器发送所述第一标识符, 以使 所述目标控制器和所述网络转发设备根据所述第一标识符和所述第二标 识符的匹配关系进行组网;  The transmitter 1402 is further configured to send the first identifier to the target controller, so that the target controller and the network forwarding device are configured according to the first identifier and the second identifier. Matching relationships are performed on the network;
所述接收器 1403还用于接收所述目标控制器发送的组网成功通知消 息, 向所述源控制器发送释放控制权响应信息。  The receiver 1403 is further configured to receive a network success notification message sent by the target controller, and send release control right response information to the source controller.
可选地, 在所述处理器 1401生成用于网络转发设备和源控制器进行组 网的标识符对之前,  Optionally, before the processor 1401 generates an identifier pair for the network forwarding device and the source controller to perform networking,
所述接收器 1403还用于接收所述网络转发设备发送的标识符请求信 息, 所述标识符请求信息中包括所述网络转发设备的标识;  The receiver 1403 is further configured to receive identifier request information sent by the network forwarding device, where the identifier request information includes an identifier of the network forwarding device.
所述处理器 1401还用于根据所述网络转发设备的标识以及合法网络 转发设备标识列表, 确定所述网络转发设备认证通过; The processor 1401 is further configured to: according to the identifier of the network forwarding device and a legal network Forwarding the device identification list, and determining that the network forwarding device passes the authentication;
所述处理器 1401还用于根据所述软件定义网络的状态信息, 在已注册 的控制器中, 选择所述源控制器与所述网络转发设备进行组网。  The processor 1401 is further configured to select, according to the state information of the software-defined network, the source controller and the network forwarding device to perform networking in the registered controller.
可选地, 在所述接收器 1403接收所述网络转发设备发送的标识符请求 信息之前,  Optionally, before the receiver 1403 receives the identifier request information sent by the network forwarding device,
所述处理器 1401还用于获取所述合法网络转发设备标识列表, 所述合 法网络转发设备标识列表用于对所述网络转发设备进行认证;  The processor 1401 is further configured to obtain the legal network forwarding device identifier list, where the legal network forwarding device identifier list is used to authenticate the network forwarding device.
所述接收器 1403还用于接收所述源控制器发送的注册请求, 向所述源 控制器发送注册成功响应;  The receiver 1403 is further configured to receive a registration request sent by the source controller, and send a registration success response to the source controller.
所述接收器 1403还用于接收所述目标控制器发送的注册请求, 向所述 目标控制器发送注册成功响应。  The receiver 1403 is further configured to receive a registration request sent by the target controller, and send a registration success response to the target controller.
可选地, 所述处理器 1401具体用于, 根据预设匹配规则生成所述标识 符对; 或者, 根据预设加密算法生成所述标识符对。  Optionally, the processor 1401 is specifically configured to: generate the identifier pair according to a preset matching rule; or generate the identifier pair according to a preset encryption algorithm.
可选地, 在所述发送器 1402将所述标识符对中的第一标识符发送给源 控制器, 将所述标识符对中的第二标识符发送给网络转发设备之前, 所述处理器 1401还用于生成所述网络转发设备的连接地址, 所述连接 地址与所述源控制器的默认地址属于同一网段;  Optionally, before the transmitter 1402 sends the first identifier in the identifier pair to the source controller, and sends the second identifier in the identifier pair to the network forwarding device, the processing The device 1401 is further configured to generate a connection address of the network forwarding device, where the connection address belongs to a same network segment as a default address of the source controller;
所述发送器 1402具体用于将所述网络转发设备的连接地址以及所述 标识符对中的第二标识符发送给网络转发设备。  The transmitter 1402 is specifically configured to send a connection address of the network forwarding device and a second identifier of the identifier pair to a network forwarding device.
可选地, 所述网络转发设备接收所述网络调度设备发送的所述第二标 识符, 在软件定义网络的控制平面广播第一网络转发设备匹配信息, 所述 第一网络转发设备匹配信息包括所述第二标识符和所述网络转发设备的 地址信息, 接收所述源控制器在确定所述第一标识符和所述第二标识符满 足所述匹配关系后、 根据所述网络转发设备的地址信息发送的第一源控制 器匹配信息, 所述第一源控制器匹配信息包括所述第一标识符和所述源控 制器的地址信息, 确定所述源控制器发送的所述第一标识符与所述第二标 识符满足所述匹配关系, 根据所述源控制器的地址信息, 建立与所述源控 制器的连接; 或者  Optionally, the network forwarding device receives the second identifier sent by the network scheduling device, and broadcasts, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes The second identifier and the address information of the network forwarding device, after receiving the source controller, after determining that the first identifier and the second identifier satisfy the matching relationship, according to the network forwarding device First source controller matching information sent by the address information, the first source controller matching information includes the first identifier and address information of the source controller, and determining the number sent by the source controller An identifier and the second identifier satisfy the matching relationship, and establishing a connection with the source controller according to address information of the source controller; or
所述源控制器接收所述网络调度设备发送的所述第一标识符, 在软件 定义网络的控制平面广播第二源控制器匹配信息, 所述第二源控制器匹配 信息包括所述第一标识符和所述源控制的地址信息, 接收所述网络转发设 备在确定所述第一标识符和所述第二标识符满足所述匹配关系后、 根据所 述源控制器的地址信息发送的第二网络转发设备匹配信息, 所述第二网络 转发设备匹配信息中包括所述第二标识符和所述网络转发设备的地址信 息, 确定所述网络转发设备发送的所述第二标识符与所述第一标识符满足 所述匹配关系, 根据所述网络转发设备的地址信息, 建立与所述网络转发 设备的连接。 Receiving, by the source controller, the first identifier sent by the network scheduling device, and broadcasting, by the control plane of the software-defined network, second source controller matching information, where the second source controller matches The information includes the first identifier and the source controlled address information, and the receiving, by the network forwarding device, after determining that the first identifier and the second identifier satisfy the matching relationship, according to the source control The second network forwarding device matching information sent by the address information of the device includes: the second identifier and the address information of the network forwarding device, and determining, by the network forwarding device, The second identifier and the first identifier satisfy the matching relationship, and establish a connection with the network forwarding device according to the address information of the network forwarding device.
本实施例提供的网络调度设备, 可用于执行上述方法实施例的技术方 案, 其实现原理和技术效果类似, 本实施例此处不再赘述。  The network scheduling device provided in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar.
图 15为本发明网络转发设备实施例二的结构示意图。 本实施例提供的 网络转发设备 150包括接收器 1501、 发送器 1502和处理器 1503。  FIG. 15 is a schematic structural diagram of Embodiment 2 of a network forwarding device according to the present invention. The network forwarding device 150 provided in this embodiment includes a receiver 1501, a transmitter 1502, and a processor 1503.
所述接收器 1501用于接收网络调度设备发送的标识符对中的第二标 识符; 所述标识符对包括第一标识符和所述第二标识符, 所述第一标识符 为所述网络调度设备向源控制器发送的标识符, 所述第一标识符和所述第 二标识符具有匹配关系;  The receiver 1501 is configured to receive a second identifier in an identifier pair sent by a network scheduling device; the identifier pair includes a first identifier and the second identifier, and the first identifier is An identifier sent by the network scheduling device to the source controller, where the first identifier and the second identifier have a matching relationship;
所述发送器 1502用于在软件定义网络的控制平面广播第一网络转发 设备匹配信息, 所述第一网络转发设备匹配信息包括所述第二标识符和所 述网络转发设备的地址信息;  The transmitter 1502 is configured to broadcast, by the control plane of the software-defined network, the first network forwarding device matching information, where the first network forwarding device matching information includes the second identifier and address information of the network forwarding device.
所述接收器 1501还用于接收所述源控制器在确定所述第一标识符和 所述第二标识符满足所述匹配关系后、 根据所述网络转发设备的地址信息 发送的第一源控制器匹配信息, 所述第一源控制器匹配信息包括所述第一 标识符和所述源控制器的地址信息;  The receiver 1501 is further configured to receive, by the source controller, a first source that is sent according to address information of the network forwarding device after determining that the first identifier and the second identifier satisfy the matching relationship. The controller matches the information, where the first source controller matching information includes the first identifier and address information of the source controller;
所述处理器 1503用于确定所述源控制器发送的所述第一标识符与所 述第二标识符满足所述匹配关系, 根据所述源控制器的地址信息, 建立与 所述源控制器的连接。  The processor 1503 is configured to determine that the first identifier and the second identifier sent by the source controller meet the matching relationship, and establish and the source control according to the address information of the source controller. Connection.
可选地, 所述接收器 1501还用于接收所述源控制器在所述软件定义网 络的控制平面广播的第二源控制器匹配信息, 所述第二源控制器匹配信息 包括所述第一标识符和所述源控制器的地址信息;  Optionally, the receiver 1501 is further configured to receive second source controller matching information that is broadcast by the source controller on a control plane of the software-defined network, where the second source controller matching information includes the first An identifier and address information of the source controller;
所述处理器 1503还用于确定所述第一标识符和所述第二标识符满足 所述匹配关系, 根据所述源控制器的地址信息, 向所述源控制器发送第二 网络转发设备匹配信息, 所述第二网络转发设备匹配信息包括所述第二标 识符和所述网络转发设备的地址信息, 以使所述源控制器根据所述第一标 识符和所述第二标识符的匹配关系和所述网络转发设备的地址信息, 建立 与所述网络转发设备的连接。 The processor 1503 is further configured to determine that the first identifier and the second identifier satisfy the matching relationship, and send a second to the source controller according to the address information of the source controller. Network forwarding device matching information, where the second network forwarding device matching information includes the second identifier and address information of the network forwarding device, so that the source controller is configured according to the first identifier and the first The matching relationship between the two identifiers and the address information of the network forwarding device establishes a connection with the network forwarding device.
可选地, 所述接收器 1501接收网络调度设备发送的标识符对中的第二 标识符之前, 所述发送器 1502还用于向所述网络调度设备发送标识符请求 信息, 所述标识符请求信息中包括所述网络转发设备的标识, 以使所述网 络调度设备对所述网络转发设备进行认证。  Optionally, before the receiver 1501 receives the second identifier in the identifier pair sent by the network scheduling device, the sender 1502 is further configured to send identifier request information to the network scheduling device, where the identifier The request information includes an identifier of the network forwarding device, so that the network scheduling device authenticates the network forwarding device.
可选地, 在所述源控制器根据所述源控制器的工作状态, 触发对所述 网络转发设备的控制权切换, 所述源控制器向所述网络调度设备发送释放 控制权请求消息, 所述网络调度设备向目标控制器发送所述第一标识符条 件下, 所述处理器 1503建立与所述源控制器的连接之后,  Optionally, the source controller triggers a control right handover to the network forwarding device according to an operating state of the source controller, and the source controller sends a release control right request message to the network scheduling device, After the network scheduling device sends the first identifier to the target controller, after the processor 1503 establishes a connection with the source controller,
所述接收器 1501还用于接收所述目标控制器在所述软件定义网络的 控制平面广播的第一目标控制器匹配信息, 所述第一目标控制器匹配信息 包括所述第一标识符和所述目标控制器的地址信息;  The receiver 1501 is further configured to receive first target controller matching information that is broadcast by the target controller on a control plane of the software-defined network, where the first target controller matching information includes the first identifier and Address information of the target controller;
所述处理器 1503还用于确定所述目标控制器广播的所述第一标识符 和所述第二标识符满足所述匹配关系;  The processor 1503 is further configured to determine that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship;
所述发送器 1502还用于根据所述目标控制器的地址信息, 向所述目标 控制器发送第三网络转发设备匹配信息, 所述第三网络转发设备匹配信息 包括所述第二标识符和所述网络转发设备的地址信息, 以使所述目标控制 器根据所述第一标识符和所述第二标识符的匹配关系以及所述网络转发 设备的地址信息, 建立与所述网络转发设备的连接。  The transmitter 1502 is further configured to send third network forwarding device matching information to the target controller according to the address information of the target controller, where the third network forwarding device matching information includes the second identifier and The network forwarding device address information, so that the target controller establishes with the network forwarding device according to the matching relationship between the first identifier and the second identifier and the address information of the network forwarding device. Connection.
可选地, 所述目标控制器的地址信息包括所述目标控制器的默认地 址;  Optionally, the address information of the target controller includes a default address of the target controller;
所述源控制器的地址信息包括所述源控制器的默认地址;  The address information of the source controller includes a default address of the source controller;
所述网络转发设备的地址信息包括所述网络转发设备的默认地址或 所述网络调度设备为所述网络转发设备分配的连接地址, 所述连接地址与 所述源控制器的默认地址属于同一网段。  The address information of the network forwarding device includes a default address of the network forwarding device or a connection address allocated by the network scheduling device to the network forwarding device, where the connection address belongs to the same network as the default address of the source controller. segment.
本实施例提供的网络转发设备, 可用于执行上述方法实施例的技术方 案, 其实现原理和技术效果类似, 本实施例此处不再赘述。 图 16为本发明源控制器实施例二的结构示意图。 本实施例提供的源控 制器 160包括接收器 1601、 发送器 1602和处理器 1603。 The network forwarding device provided by this embodiment may be used to perform the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar. FIG. 16 is a schematic structural diagram of Embodiment 2 of a source controller according to the present invention. The source controller 160 provided in this embodiment includes a receiver 1601, a transmitter 1602, and a processor 1603.
所述接收器 1601用于接收网络调度设备发送的标识符对中的第一标 识符; 所述标识符对包括所述第一标识符和第二标识符, 所述第二标识符 为所述网络调度设备向网络转发设备发送的标识符, 所述第一标识符和所 述第二标识符具有匹配关系;  The receiver 1601 is configured to receive a first identifier in an identifier pair sent by a network scheduling device; the identifier pair includes the first identifier and a second identifier, and the second identifier is An identifier sent by the network scheduling device to the network forwarding device, where the first identifier and the second identifier have a matching relationship;
所述发送器 1602用于在软件定义网络的控制平面广播第二源控制器 匹配信息, 所述第二源控制器匹配信息包括所述第一标识符和所述源控制 的地址信息;  The transmitter 1602 is configured to broadcast second source controller matching information on a control plane of the software-defined network, where the second source controller matching information includes the first identifier and the source-controlled address information;
所述接收器 1601还用于接收所述网络转发设备在确定所述第一标识 符和所述第二标识符满足所述匹配关系后、 根据所述源控制器的地址信息 发送的第二网络转发设备匹配信息, 所述第二网络转发设备匹配信息中包 括所述第二标识符和所述网络转发设备的地址信息;  The receiver 1601 is further configured to receive, by the network forwarding device, a second network that is sent according to address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship. Forwarding device matching information, where the second network forwarding device matching information includes the second identifier and address information of the network forwarding device;
所述处理器 1603用于确定所述网络转发设备发送的所述第二标识符 与所述第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信 息, 建立与所述网络转发设备的连接。  The processor 1603 is configured to determine that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establish and forward the network according to address information of the network forwarding device. The connection of the device.
可选地, 所述接收器 1601还用于接收所述网络转发设备在所述软件定 义网络的控制平面广播的第一网络转发设备匹配信息, 所述第一网络转发 设备匹配信息包括第二标识符和所述网络转发设备的地址信息;  Optionally, the receiver 1601 is further configured to receive first network forwarding device matching information that is broadcast by the network forwarding device on a control plane of the software-defined network, where the first network forwarding device matching information includes a second identifier. And the address information of the network forwarding device;
所述处理器 1603还用于确定所述第一标识符和所述第二标识符满足 所述匹配关系;  The processor 1603 is further configured to determine that the first identifier and the second identifier satisfy the matching relationship;
所述发送器 1602还用于根据所述网络转发设备的地址信息, 向所述网 络转发设备发送第一源控制器匹配信息, 所述第一源控制器匹配信息包括 所述第一标识符和所述源控制器的地址信息, 以使所述网络转发设备根据 所述第一标识符和所述第二标识符的匹配关系以及所述源控制的地址信 息建立与所述源控制器的连接。  The transmitter 1602 is further configured to send first source controller matching information to the network forwarding device according to the address information of the network forwarding device, where the first source controller matching information includes the first identifier and The address information of the source controller, so that the network forwarding device establishes a connection with the source controller according to a matching relationship between the first identifier and the second identifier and address information of the source control .
可选地, 在所述处理器 1603建立与所述网络转发设备的连接之后, 所述处理器 1603还用于根据所述源控制器的工作状态, 触发对所述网 络转发设备的控制权切换;  Optionally, after the processor 1603 establishes a connection with the network forwarding device, the processor 1603 is further configured to trigger a control right handover to the network forwarding device according to an operating state of the source controller. ;
所述发送器 1602还用于向所述网络调度设备发送释放控制权请求消 息, 以使所述网络调度设备向目标控制器发送所述第一标识符; The transmitter 1602 is further configured to send a release control request request to the network scheduling device. And causing the network scheduling device to send the first identifier to a target controller;
所述接收器 1601还用于接收所述网络调度设备在所述目标控制器与 所述网络转发设备建立连接后, 发送的释放控制权响应信息。  The receiver 1601 is further configured to receive release control right response information sent by the network scheduling device after the target controller establishes a connection with the network forwarding device.
可选地, 在所述处理器 1603建立与所述网络转发设备的连接之后, 所述处理器 1603还用于根据所述源控制器的工作状态, 触发对所述网 络转发设备的控制权切换;  Optionally, after the processor 1603 establishes a connection with the network forwarding device, the processor 1603 is further configured to trigger a control right handover to the network forwarding device according to an operating state of the source controller. ;
所述发送器 1602还用于确定目标控制器, 向所述目标控制器发送所述 第一标识符, 以使所述目标控制器根据所述第一标识符和所述第二标识符 的匹配关系建立与所述网络转发设备的连接;  The transmitter 1602 is further configured to determine a target controller, and send the first identifier to the target controller, so that the target controller matches according to the first identifier and the second identifier. Establishing a connection with the network forwarding device;
所述接收器 1601还用于接收所述目标控制器发送的所述目标控制器 与所述网络转发设备成功建立连接的通知消息;  The receiver 1601 is further configured to receive a notification message that the target controller sent by the target controller successfully establishes a connection with the network forwarding device;
所述处理器 1603还用于释放对所述网络转发设备的控制权。  The processor 1603 is further configured to release control of the network forwarding device.
可选地, 所述目标控制器的地址信息包括所述目标控制器的默认地 址;  Optionally, the address information of the target controller includes a default address of the target controller;
所述源控制器的地址信息包括所述源控制器的默认地址;  The address information of the source controller includes a default address of the source controller;
所述网络转发设备的地址信息包括所述网络转发设备的默认地址或 所述网络调度设备为所述网络转发设备分配的连接地址, 所述连接地址与 所述源控制器的默认地址属于同一网段。  The address information of the network forwarding device includes a default address of the network forwarding device or a connection address allocated by the network scheduling device to the network forwarding device, where the connection address belongs to the same network as the default address of the source controller. segment.
本实施例提供的源控制器, 可用于执行上述方法实施例的技术方案, 其实现原理和技术效果类似, 本实施例此处不再赘述。  The source controller provided in this embodiment may be used to perform the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar.
图 17为本发明目标控制器实施例二的结构示意图。 本实施例提供的目 标控制器 170包括接收器 1701、 发送器 1702和处理器 1703。  FIG. 17 is a schematic structural diagram of Embodiment 2 of an object controller according to the present invention. The target controller 170 provided in this embodiment includes a receiver 1701, a transmitter 1702, and a processor 1703.
所述接收器 1701用于接收网络调度设备或源控制器发送的标识符对 中的第一标识符, 所述标识符对包括第一标识符和第二标识符, 所述第二 标识符为所述网络调度设备向网络转发设备发送的标识符, 所述第一标识 符为源控制器向所述网络调度设备发送的标识符, 所述第一标识符和所述 第二标识符具有匹配关系;  The receiver 1701 is configured to receive a first identifier in an identifier pair sent by a network scheduling device or a source controller, where the identifier pair includes a first identifier and a second identifier, where the second identifier is An identifier sent by the network scheduling device to the network forwarding device, where the first identifier is an identifier sent by the source controller to the network scheduling device, and the first identifier and the second identifier have a match Relationship
所述发送器 1702用于在软件定义网络的控制平面广播第一目标控制 器匹配信息, 所述第一目标控制器匹配信息包括所述第一标识符和所述目 标控制器的地址信息; 所述接收器 1701还用于接收所述网络转发设备在确定所述第一标识 符和所述第二标识符满足所述匹配关系后、 根据所述目标控制器的地址信 息发送的第三网络转发设备匹配信息, 所述第三网络转发设备匹配信息包 括所述第二标识符和所述网络转发设备的地址信息; The transmitter 1702 is configured to broadcast first target controller matching information on a control plane of the software-defined network, where the first target controller matching information includes the first identifier and address information of the target controller; The receiver 1701 is further configured to receive, by the network forwarding device, a third network that is sent according to the address information of the target controller after determining that the first identifier and the second identifier satisfy the matching relationship. Forwarding device matching information, where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device;
所述处理器 1703用于确定所述网络转发设备发送的所述第二标识符 与所述第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信 息, 建立与所述网络转发设备的连接。  The processor 1703 is configured to determine that the second identifier sent by the network forwarding device and the first identifier meet the matching relationship, and establish and forward the network according to address information of the network forwarding device. The connection of the device.
可选地, 所述处理器 1703建立与所述网络转发设备的连接之后, 还包 括:  Optionally, after the processor 1703 establishes a connection with the network forwarding device, the method further includes:
所述发送器 1702还用于向所述网络调度设备发送组网成功通知消息, 以使所述网络调度设备向源控制器发送释放控制权响应消息; 或者  The transmitter 1702 is further configured to send a network success notification message to the network scheduling device, so that the network scheduling device sends a release control right response message to the source controller; or
所述发送器 1702还用于向所述源控制器发送组网成功通知消息, 以使 所述源控制器释放控制权。  The transmitter 1702 is further configured to send a networking success notification message to the source controller, so that the source controller releases the control right.
可选地, 所述目标控制器的地址信息包括所述目标控制器的默认地 址;  Optionally, the address information of the target controller includes a default address of the target controller;
所述网络转发设备的地址信息包括所述网络转发设备的默认地址或 所述网络调度设备为所述网络转发设备分配的连接地址, 所述连接地址与 所述源控制器的默认地址属于同一网段。  The address information of the network forwarding device includes a default address of the network forwarding device or a connection address allocated by the network scheduling device to the network forwarding device, where the connection address belongs to the same network as the default address of the source controller. segment.
本实施例提供的目标控制器, 可用于执行上述方法实施例的技术方 案, 其实现原理和技术效果类似, 本实施例此处不再赘述。  The target controller provided in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and the details are not described herein again.
图 18为本发明基于软件定义网络的组网系统示意图。 本实施例的系统 180包括网络调度设备 1801, 网络转发设备 1802, 源控制器 1803和目标控 制器 1804。  FIG. 18 is a schematic diagram of a networking system based on a software-defined network according to the present invention. The system 180 of the present embodiment includes a network scheduling device 1801, a network forwarding device 1802, a source controller 1803, and a target controller 1804.
在源控制器 1803和网络转发设备 1802的组网过程中, 各设备执行动作 如下:  During the networking process of the source controller 1803 and the network forwarding device 1802, each device performs the following actions:
所述网络调度设备 1801, 用于生成用于源控制器和网络转发设备进行 组网的标识符对; 将所述标识符对中的第一标识符发送给源控制器, 将所 述标识符对中的第二标识符发送给网络转发设备, 所述第一标识符和所述 第二标识符具有匹配关系;  The network scheduling device 1801 is configured to generate an identifier pair for networking between the source controller and the network forwarding device, and send the first identifier in the identifier pair to the source controller, where the identifier is Transmitting the second identifier of the pair to the network forwarding device, where the first identifier and the second identifier have a matching relationship;
所述网络转发设备 1802,用于,接收网络调度设备发送的标识符对中的 第二标识符, 在软件定义网络的控制平面广播第一网络转发设备匹配信 息, 所述第一网络转发设备匹配信息包括所述第二标识符和所述网络转发 设备的地址信息, 接收所述源控制器在确定所述第一标识符和所述第二标 识符满足所述匹配关系后、 根据所述网络转发设备的地址信息发送的第一 源控制器匹配信息, 所述第一源控制器匹配信息包括所述第一标识符和所 述源控制器的地址信息, 确定所述源控制器发送的所述第一标识符与所述 第二标识符满足所述匹配关系, 根据所述源控制器的地址信息, 建立与所 述源控制器的连接; The network forwarding device 1802 is configured to receive an identifier pair sent by the network scheduling device. a second identifier, the first network forwarding device matching information is broadcasted on a control plane of the software-defined network, where the first network forwarding device matching information includes the second identifier and address information of the network forwarding device, and receiving the The first source controller matching information sent by the source controller according to the address information of the network forwarding device after determining that the first identifier and the second identifier satisfy the matching relationship, the first source control The device matching information includes the first identifier and address information of the source controller, and determining that the first identifier and the second identifier sent by the source controller satisfy the matching relationship, according to the Address information of the source controller, establishing a connection with the source controller;
所述源控制器 1803,用于,接收网络调度设备发送的标识符对中的第一 标识符, 在软件定义网络的控制平面广播第二源控制器匹配信息, 所述第 二源控制器匹配信息包括所述第一标识符和所述源控制的地址信息, 接收 所述网络转发设备在确定所述第一标识符和所述第二标识符满足所述匹 配关系后、 根据所述源控制器的地址信息发送的第二网络转发设备匹配信 息, 所述第二网络转发设备匹配信息中包括所述第二标识符和所述网络转 发设备的地址信息, 确定所述网络转发设备发送的所述第二标识符与所述 第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信息, 建立 与所述网络转发设备的连接。  The source controller 1803 is configured to receive a first identifier in an identifier pair sent by the network scheduling device, and broadcast second source controller matching information on a control plane of the software-defined network, where the second source controller matches The information includes the first identifier and the source controlled address information, and the receiving, by the network forwarding device, after determining that the first identifier and the second identifier satisfy the matching relationship, according to the source control The second network forwarding device matching information sent by the address information of the device includes: the second identifier and the address information of the network forwarding device, and determining, by the network forwarding device, The second identifier and the first identifier satisfy the matching relationship, and establish a connection with the network forwarding device according to the address information of the network forwarding device.
在源控制器 1803切换到目标控制器 1804的一种实现方式中, 各设备的 执行动作如下:  In one implementation in which the source controller 1803 switches to the target controller 1804, the actions of each device are as follows:
所述源控制器 1803还用于: 根据所述源控制器的工作状态, 触发对所 述网络转发设备的控制权切换, 向所述网络调度设备发送释放控制权请求 消息, 接收所述网络调度设备在所述目标控制器与所述网络转发设备建立 连接后, 发送的释放控制权响应信息;  The source controller 1803 is further configured to: trigger a control right handover to the network forwarding device according to an operating state of the source controller, send a release control right request message to the network scheduling device, and receive the network scheduling a release control right response message sent by the device after the target controller establishes a connection with the network forwarding device;
所述网络调度设备 1801还用于, 接收所述源控制器发送的释放控制权 请求信息; 其中, 所述源控制器和所述网络转发设备组网成功之后, 所述 源控制器对所述网络转发设备具有控制权, 根据所述软件定义网络的状态 信息, 在已注册的控制器中, 选择所述目标控制器与所述网络转发设备进 行组网, 向所述目标控制器发送所述第一标识符, 接收所述目标控制器发 送的组网成功通知消息, 向所述源控制器发送释放控制权响应信息; 所述目标控制器 1804用于, 接收所述网络调度设备发送的标识符对中 的第一标识符, 在软件定义网络的控制平面广播第一目标控制器匹配信 息, 所述第一目标控制器匹配信息包括所述第一标识符和所述目标控制器 的地址信息, 接收所述网络转发设备在确定所述第一标识符和所述第二标 识符满足所述匹配关系后、 根据所述目标控制器的地址信息发送的第三网 络转发设备匹配信息, 所述第三网络转发设备匹配信息包括所述第二标识 符和所述网络转发设备的地址信息, 确定所述网络转发设备发送的所述第 二标识符与所述第一标识符满足所述匹配关系, 根据所述网络转发设备的 地址信息, 建立与所述网络转发设备的连接, 向所述网络调度设备发送组 网成功通知消息, 以使所述网络调度设备向源控制器发送释放控制权响应 消息; The network scheduling device 1801 is further configured to: receive the release control right request information sent by the source controller; wherein, after the source controller and the network forwarding device are successfully networked, the source controller is configured to The network forwarding device has control, and according to the state information of the software-defined network, in the registered controller, the target controller is selected to be networked with the network forwarding device, and the network controller is sent to the target controller. a first identifier, receiving a network success notification message sent by the target controller, and sending release control right response information to the source controller; the target controller 1804 is configured to receive the identifier sent by the network scheduling device Symbol alignment a first identifier, the first target controller matching information is broadcasted on a control plane of the software-defined network, the first target controller matching information including the first identifier and address information of the target controller, a receiving station a third network forwarding device matching information that is sent by the network forwarding device according to the address information of the target controller after determining that the first identifier and the second identifier satisfy the matching relationship, the third network The forwarding device matching information includes the second identifier and the address information of the network forwarding device, and determining that the second identifier sent by the network forwarding device and the first identifier satisfy the matching relationship, according to the Decoding the address information of the network forwarding device, establishing a connection with the network forwarding device, and sending a network success notification message to the network scheduling device, so that the network scheduling device sends a release control right response message to the source controller;
所述网络转发设备 1802还用于: 接收所述目标控制器在所述软件定义 网络的控制平面广播的第一目标控制器匹配信息, 所述第一目标控制器匹 配信息包括所述第一标识符和所述目标控制器的地址信息, 确定所述目标 控制器广播的所述第一标识符和所述第二标识符满足所述匹配关系, 根据 所述目标控制器的地址信息, 向所述目标控制器发送第三网络转发设备匹 配信息, 所述第三网络转发设备匹配信息包括所述第二标识符和所述网络 转发设备的地址信息, 以使所述目标控制器根据所述第一标识符和所述第 二标识符的匹配关系以及所述网络转发设备的地址信息, 建立与所述网络 转发设备的连接。  The network forwarding device 1802 is further configured to: receive first target controller matching information that is broadcast by the target controller on a control plane of the software-defined network, where the first target controller matching information includes the first identifier And the address information of the target controller, determining that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship, according to the address information of the target controller, The target controller sends third network forwarding device matching information, where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device, so that the target controller is configured according to the A matching relationship between the identifier and the second identifier and address information of the network forwarding device establishes a connection with the network forwarding device.
在源控制器 1803切换到目标控制器 1804的另一种实现方式中, 各设备 的执行动作如下:  In another implementation in which the source controller 1803 switches to the target controller 1804, the actions of each device are as follows:
所述源控制器 1803还用于, 根据所述源控制器的工作状态, 触发对所 述网络转发设备的控制权切换, 确定所述目标控制器, 向所述目标控制器 发送所述第一标识符, 以使所述目标控制器根据所述第一标识符和所述第 二标识符的匹配关系建立与所述网络转发设备的连接, 接收所述目标控制 器发送的所述目标控制器与所述网络转发设备成功建立连接的通知消息, 释放对所述网络转发设备的控制权;  The source controller 1803 is further configured to: trigger a control right handover to the network forwarding device according to an operating state of the source controller, determine the target controller, and send the first to the target controller And an identifier, to enable the target controller to establish a connection with the network forwarding device according to a matching relationship between the first identifier and the second identifier, and receive the target controller sent by the target controller And a notification message that successfully establishes a connection with the network forwarding device, releasing control right of the network forwarding device;
所述目标控制器 1804用于, 接收所述源控制器发送的标识符对中的第 一标识符, 在软件定义网络的控制平面广播第一目标控制器匹配信息, 所 述第一目标控制器匹配信息包括所述第一标识符和所述目标控制器的地 址信息, 接收所述网络转发设备在确定所述第一标识符和所述第二标识符 满足所述匹配关系后、 根据所述目标控制器的地址信息发送的第三网络转 发设备匹配信息, 所述第三网络转发设备匹配信息包括所述第二标识符和 所述网络转发设备的地址信息, 确定所述网络转发设备发送的所述第二标 识符与所述第一标识符满足所述匹配关系, 根据所述网络转发设备的地址 信息, 建立与所述网络转发设备的连接, 向所述源控制器发送组网成功通 知消息, 以使所述源控制器释放控制权; The target controller 1804 is configured to receive a first identifier in an identifier pair sent by the source controller, and broadcast, in a control plane of the software-defined network, first target controller matching information, where the first target controller The matching information includes the first identifier and a ground of the target controller And the third network forwarding device matching information that is sent by the network forwarding device according to the address information of the target controller after determining that the first identifier and the second identifier satisfy the matching relationship, The third network forwarding device matching information includes the second identifier and the address information of the network forwarding device, and determining that the second identifier sent by the network forwarding device and the first identifier meet the a matching relationship, establishing a connection with the network forwarding device according to the address information of the network forwarding device, and sending a networking success notification message to the source controller, so that the source controller releases the control right;
所述网络转发设备 1802还用于: 接收所述目标控制器在所述软件定义 网络的控制平面广播的第一目标控制器匹配信息, 所述第一目标控制器匹 配信息包括所述第一标识符和所述目标控制器的地址信息, 确定所述目标 控制器广播的所述第一标识符和所述第二标识符满足所述匹配关系, 根据 所述目标控制器的地址信息, 向所述目标控制器发送第三网络转发设备匹 配信息, 所述第三网络转发设备匹配信息包括所述第二标识符和所述网络 转发设备的地址信息, 以使所述目标控制器根据所述第一标识符和所述第 二标识符的匹配关系以及所述网络转发设备的地址信息, 建立与所述网络 转发设备的连接。  The network forwarding device 1802 is further configured to: receive first target controller matching information that is broadcast by the target controller on a control plane of the software-defined network, where the first target controller matching information includes the first identifier And the address information of the target controller, determining that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship, according to the address information of the target controller, The target controller sends third network forwarding device matching information, where the third network forwarding device matching information includes the second identifier and address information of the network forwarding device, so that the target controller is configured according to the A matching relationship between the identifier and the second identifier and address information of the network forwarding device establishes a connection with the network forwarding device.
本领域普通技术人员可以理解: 实现上述各方法实施例的全部或部分 歩骤可以通过程序指令相关的硬件来完成。 前述的程序可以存储于一计算 机可读取存储介质中。 该程序在执行时, 执行包括上述各方法实施例的歩 骤; 而前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存 储程序代码的介质。  One of ordinary skill in the art will appreciate that all or a portion of the steps of implementing the various method embodiments described above can be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the above-described method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非 对其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的 普通技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进 行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或 者替换, 并不使相应技术方案的本质脱离本发明各实施例技术方案的范 围。  It should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权 利 要 求 书 claims
1、 一种基于软件定义网络的组网方法, 其特征在于, 包括: 网络调度设备生成用于源控制器和网络转发设备进行组网的标识符 对; 1. A networking method based on software-defined network, characterized by including: a network scheduling device generating an identifier pair for networking between a source controller and a network forwarding device;
所述网络调度设备将所述标识符对中的第一标识符发送给源控制器, 将所述标识符对中的第二标识符发送给网络转发设备, 所述第一标识符和 所述第二标识符具有匹配关系, 以使所述源控制器和所述网络转发设备根 据所述第一标识符和所述第二标识符的匹配关系进行组网。 The network scheduling device sends the first identifier in the identifier pair to the source controller, and sends the second identifier in the identifier pair to the network forwarding device, and the first identifier and the The second identifier has a matching relationship, so that the source controller and the network forwarding device perform networking according to the matching relationship between the first identifier and the second identifier.
2、 根据权利要求 1 所述的方法, 其特征在于, 所述网络调度设备将 所述标识符对中的第一标识符发送给源控制器, 将所述标识符对中的第二 标识符发送给网络转发设备之后, 还包括: 2. The method according to claim 1, characterized in that, the network scheduling device sends the first identifier in the identifier pair to the source controller, and sends the second identifier in the identifier pair to the source controller. After being sent to the network forwarding device, it also includes:
所述网络调度设备接收所述源控制器发送的释放控制权请求信息; 其 中, 所述源控制器和所述网络转发设备组网成功之后, 所述源控制器对所 述网络转发设备具有控制权; The network scheduling device receives the control right release request information sent by the source controller; wherein, after the source controller and the network forwarding device are successfully networked, the source controller has control over the network forwarding device. right;
所述网络调度设备根据所述软件定义网络的状态信息, 在已注册的控 制器中, 选择目标控制器与所述网络转发设备进行组网; The network scheduling device selects a target controller among the registered controllers to form a network with the network forwarding device according to the status information of the software-defined network;
所述网络调度设备向所述目标控制器发送所述第一标识符, 以使所述 目标控制器和所述网络转发设备根据所述第一标识符和所述第二标识符 的匹配关系进行组网; The network scheduling device sends the first identifier to the target controller, so that the target controller and the network forwarding device perform operations based on the matching relationship between the first identifier and the second identifier. networking;
所述网络调度设备接收所述目标控制器发送的组网成功通知消息, 向 所述源控制器发送释放控制权响应信息。 The network scheduling device receives the networking success notification message sent by the target controller, and sends a control right release response message to the source controller.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述网络调度设 备生成用于网络转发设备和源控制器进行组网的标识符对之前, 还包括: 所述网络调度设备接收所述网络转发设备发送的标识符请求信息, 所 述标识符请求信息中包括所述网络转发设备的标识; 3. The method according to claim 1 or 2, characterized in that, before the network scheduling device generates an identifier pair for networking between the network forwarding device and the source controller, it further includes: the network scheduling device receives The identifier request information sent by the network forwarding device, the identifier request information includes the identification of the network forwarding device;
所述网络调度设备根据所述网络转发设备的标识以及合法网络转发 设备标识列表, 确定所述网络转发设备认证通过; The network scheduling device determines that the network forwarding device has passed the authentication based on the identification of the network forwarding device and the list of legal network forwarding device identifications;
所述网络调度设备根据所述软件定义网络的状态信息, 在已注册的控 制器中, 选择所述源控制器与所述网络转发设备进行组网。 The network scheduling device selects the source controller among the registered controllers to form a network with the network forwarding device according to the status information of the software-defined network.
4、 根据权利要求 3 所述的方法, 其特征在于, 在所述网络调度设备 接收所述网络转发设备发送的标识符请求信息之前, 还包括: 所述网络调度设备获取所述合法网络转发设备标识列表, 所述合法网 络转发设备标识列表用于对所述网络转发设备进行认证; 4. The method according to claim 3, characterized in that, in the network scheduling device Before receiving the identifier request information sent by the network forwarding device, it further includes: the network scheduling device obtains the legal network forwarding device identification list, and the legal network forwarding device identification list is used to authenticate the network forwarding device. ;
所述网络调度设备接收所述源控制器发送的注册请求, 向所述源控制 器发送注册成功响应; The network scheduling device receives the registration request sent by the source controller, and sends a registration success response to the source controller;
所述网络调度设备接收所述目标控制器发送的注册请求, 向所述目标 控制器发送注册成功响应。 The network scheduling device receives the registration request sent by the target controller, and sends a registration success response to the target controller.
5、 根据权利要求 1至 4任一项所述的方法, 其特征在于, 所述网络 调度设备生成用于源控制器和网络转发设备进行组网的标识符对, 包括如 下任一种: 5. The method according to any one of claims 1 to 4, characterized in that the network scheduling device generates an identifier pair for networking between the source controller and the network forwarding device, including any of the following:
所述网络调度设备根据预设匹配规则生成所述标识符对; The network scheduling device generates the identifier pair according to preset matching rules;
所述网络调度设备根据预设加密算法生成所述标识符对。 The network scheduling device generates the identifier pair according to a preset encryption algorithm.
6、 根据权利要求 1至 5任一项所述的方法, 其特征在于, 所述网络 调度设备将所述标识符对中的第一标识符发送给源控制器, 将所述标识符 对中的第二标识符发送给网络转发设备之前, 还包括: 6. The method according to any one of claims 1 to 5, characterized in that, the network scheduling device sends the first identifier of the identifier pair to the source controller, and Before the second identifier is sent to the network forwarding device, it also includes:
所述网络调度设备生成所述网络转发设备的连接地址, 所述连接地址 与所述源控制器的默认地址属于同一网段; The network scheduling device generates a connection address of the network forwarding device, and the connection address belongs to the same network segment as the default address of the source controller;
所述网络调度设备将所述标识符对中的第二标识符发送给网络转发 设备, 包括: The network scheduling device sends the second identifier in the pair of identifiers to the network forwarding device, including:
所述网络调度设备将所述网络转发设备的连接地址以及所述标识符 对中的第二标识符发送给网络转发设备。 The network scheduling device sends the connection address of the network forwarding device and the second identifier of the pair of identifiers to the network forwarding device.
7、 根据权利要求 6所述的方法, 其特征在于, 所述方法还包括: 所述网络转发设备接收所述网络调度设备发送的所述第二标识符, 在 软件定义网络的控制平面广播第一网络转发设备匹配信息, 所述第一网络 转发设备匹配信息包括所述第二标识符和所述网络转发设备的地址信息, 接收所述源控制器在确定所述第一标识符和所述第二标识符满足所述匹 配关系后、 根据所述网络转发设备的地址信息发送的第一源控制器匹配信 息, 所述第一源控制器匹配信息包括所述第一标识符和所述源控制器的地 址信息, 确定所述源控制器发送的所述第一标识符与所述第二标识符满足 所述匹配关系, 根据所述源控制器的地址信息, 建立与所述源控制器的连 接; 或者 7. The method according to claim 6, wherein the method further includes: the network forwarding device receiving the second identifier sent by the network scheduling device, and broadcasting the second identifier on the control plane of the software-defined network. A network forwarding device matching information, the first network forwarding device matching information includes the second identifier and the address information of the network forwarding device, receiving the source controller determines the first identifier and the After the second identifier satisfies the matching relationship, the first source controller matching information is sent according to the address information of the network forwarding device, and the first source controller matching information includes the first identifier and the source The address information of the controller, determining that the first identifier and the second identifier sent by the source controller satisfy the matching relationship, and establishing a relationship with the source controller according to the address information of the source controller company pick up; or
所述源控制器接收所述网络调度设备发送的所述第一标识符, 在软件 定义网络的控制平面广播第二源控制器匹配信息, 所述第二源控制器匹配 信息包括所述第一标识符和所述源控制的地址信息, 接收所述网络转发设 备在确定所述第一标识符和所述第二标识符满足所述匹配关系后、 根据所 述源控制器的地址信息发送的第二网络转发设备匹配信息, 所述第二网络 转发设备匹配信息中包括所述第二标识符和所述网络转发设备的地址信 息, 确定所述网络转发设备发送的所述第二标识符与所述第一标识符满足 所述匹配关系, 根据所述网络转发设备的地址信息, 建立与所述网络转发 设备的连接。 The source controller receives the first identifier sent by the network scheduling device, and broadcasts second source controller matching information on the control plane of the software-defined network, where the second source controller matching information includes the first identifier and the address information of the source controller, receiving the information sent by the network forwarding device according to the address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship. Second network forwarding device matching information, the second network forwarding device matching information includes the second identifier and the address information of the network forwarding device, and it is determined that the second identifier sent by the network forwarding device is the same as the second identifier sent by the network forwarding device. The first identifier satisfies the matching relationship, and a connection with the network forwarding device is established based on the address information of the network forwarding device.
8、 一种基于软件定义网络的组网方法, 其特征在于, 包括: 网络转发设备接收网络调度设备发送的标识符对中的第二标识符; 所 述标识符对包括第一标识符和所述第二标识符, 所述第一标识符为所述网 络调度设备向源控制器发送的标识符, 所述第一标识符和所述第二标识符 具有匹配关系; 8. A networking method based on software-defined network, characterized in that it includes: the network forwarding device receives the second identifier in the identifier pair sent by the network scheduling device; the identifier pair includes the first identifier and the The second identifier, the first identifier is an identifier sent by the network scheduling device to the source controller, and the first identifier and the second identifier have a matching relationship;
所述网络转发设备在软件定义网络的控制平面广播第一网络转发设 备匹配信息, 所述第一网络转发设备匹配信息包括所述第二标识符和所述 网络转发设备的地址信息; The network forwarding device broadcasts the first network forwarding device matching information on the control plane of the software-defined network, and the first network forwarding device matching information includes the second identifier and the address information of the network forwarding device;
所述网络转发设备接收所述源控制器在确定所述第一标识符和所述 第二标识符满足所述匹配关系后、 根据所述网络转发设备的地址信息发送 的第一源控制器匹配信息, 所述第一源控制器匹配信息包括所述第一标识 符和所述源控制器的地址信息; The network forwarding device receives the first source controller match sent by the source controller according to the address information of the network forwarding device after determining that the first identifier and the second identifier satisfy the matching relationship. Information, the first source controller matching information includes the first identifier and the address information of the source controller;
所述网络转发设备确定所述源控制器发送的所述第一标识符与所述 第二标识符满足所述匹配关系, 根据所述源控制器的地址信息, 建立与所 述源控制器的连接。 The network forwarding device determines that the first identifier and the second identifier sent by the source controller satisfy the matching relationship, and establishes a connection with the source controller according to the address information of the source controller. connect.
9、 根据权利要求 8所述的方法, 其特征在于, 还包括: 9. The method according to claim 8, further comprising:
所述网络转发设备接收所述源控制器在所述软件定义网络的控制平 面广播的第二源控制器匹配信息, 所述第二源控制器匹配信息包括所述第 一标识符和所述源控制器的地址信息; The network forwarding device receives second source controller matching information broadcast by the source controller in the control plane of the software-defined network, where the second source controller matching information includes the first identifier and the source Controller’s address information;
所述网络转发设备确定所述第一标识符和所述第二标识符满足所述 匹配关系, 根据所述源控制器的地址信息, 向所述源控制器发送第二网络 转发设备匹配信息, 所述第二网络转发设备匹配信息包括所述第二标识符 和所述网络转发设备的地址信息, 以使所述源控制器根据所述第一标识符 和所述第二标识符的匹配关系和所述网络转发设备的地址信息, 建立与所 述网络转发设备的连接。 The network forwarding device determines that the first identifier and the second identifier satisfy the matching relationship: sending second network forwarding device matching information to the source controller according to the address information of the source controller, where the second network forwarding device matching information includes the second identifier and the network forwarding device The address information, so that the source controller establishes a connection with the network forwarding device according to the matching relationship between the first identifier and the second identifier and the address information of the network forwarding device.
10、 根据权利要求 8或 9所述的方法, 其特征在于, 所述网络转发设 备接收网络调度设备发送的标识符对中的第二标识符之前, 还包括: 所述网络转发设备向所述网络调度设备发送标识符请求信息, 所述标 识符请求信息中包括所述网络转发设备的标识, 以使所述网络调度设备对 所述网络转发设备进行认证。 10. The method according to claim 8 or 9, characterized in that, before the network forwarding device receives the second identifier in the pair of identifiers sent by the network scheduling device, it further includes: the network forwarding device sends the The network scheduling device sends identifier request information, and the identifier request information includes the identification of the network forwarding device, so that the network scheduling device authenticates the network forwarding device.
11、 根据权利要求 8至 10任一项所述的方法, 其特征在于, 在所述 源控制器根据所述源控制器的工作状态, 触发对所述网络转发设备的控制 权切换, 所述源控制器向所述网络调度设备发送释放控制权请求消息, 所 述网络调度设备向目标控制器发送所述第一标识符条件下, 所述网络转发 设备建立与所述源控制器的连接之后, 还包括: 11. The method according to any one of claims 8 to 10, characterized in that, after the source controller triggers the switching of control rights of the network forwarding device according to the working state of the source controller, The source controller sends a release control right request message to the network scheduling device. Under the condition that the network scheduling device sends the first identifier to the target controller, after the network forwarding device establishes a connection with the source controller. , Also includes:
所述网络转发设备接收所述目标控制器在所述软件定义网络的控制 平面广播的第一目标控制器匹配信息, 所述第一目标控制器匹配信息包括 所述第一标识符和所述目标控制器的地址信息; The network forwarding device receives first target controller matching information broadcast by the target controller on the control plane of the software-defined network, where the first target controller matching information includes the first identifier and the target. Controller’s address information;
所述网络转发设备确定所述目标控制器广播的所述第一标识符和所 述第二标识符满足所述匹配关系; The network forwarding device determines that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship;
所述网络转发设备根据所述目标控制器的地址信息, 向所述目标控制 器发送第三网络转发设备匹配信息, 所述第三网络转发设备匹配信息包括 所述第二标识符和所述网络转发设备的地址信息, 以使所述目标控制器根 据所述第一标识符和所述第二标识符的匹配关系以及所述网络转发设备 的地址信息, 建立与所述网络转发设备的连接。 The network forwarding device sends third network forwarding device matching information to the target controller according to the address information of the target controller, where the third network forwarding device matching information includes the second identifier and the network Forward the address information of the device, so that the target controller establishes a connection with the network forwarding device according to the matching relationship between the first identifier and the second identifier and the address information of the network forwarding device.
12、 根据权利要求 11 所述的方法, 其特征在于, 所述目标控制器的 地址信息包括所述目标控制器的默认地址; 12. The method according to claim 11, wherein the address information of the target controller includes a default address of the target controller;
所述源控制器的地址信息包括所述源控制器的默认地址; The address information of the source controller includes a default address of the source controller;
所述网络转发设备的地址信息包括所述网络转发设备的默认地址或 所述网络调度设备为所述网络转发设备分配的连接地址, 所述连接地址与 所述源控制器的默认地址属于同一网段。 The address information of the network forwarding device includes a default address of the network forwarding device or a connection address assigned by the network scheduling device to the network forwarding device, and the connection address is the same as The default address of the source controller belongs to the same network segment.
13、 一种基于软件定义网络的组网方法, 其特征在于, 包括: 源控制器接收网络调度设备发送的标识符对中的第一标识符; 所述标 识符对包括所述第一标识符和第二标识符, 所述第二标识符为所述网络调 度设备向网络转发设备发送的标识符, 所述第一标识符和所述第二标识符 具有匹配关系; 13. A networking method based on software-defined network, characterized by including: the source controller receiving the first identifier in a pair of identifiers sent by the network scheduling device; the identifier pair includes the first identifier and a second identifier, where the second identifier is an identifier sent by the network scheduling device to the network forwarding device, where the first identifier and the second identifier have a matching relationship;
所述源控制器在软件定义网络的控制平面广播第二源控制器匹配信 息, 所述第二源控制器匹配信息包括所述第一标识符和所述源控制的地址 The source controller broadcasts second source controller matching information on the control plane of the software-defined network, and the second source controller matching information includes the first identifier and the address of the source control.
I Ή自、 ., I Ήfrom, .,
所述源控制器接收所述网络转发设备在确定所述第一标识符和所述 第二标识符满足所述匹配关系后、 根据所述源控制器的地址信息发送的第 二网络转发设备匹配信息, 所述第二网络转发设备匹配信息中包括所述第 二标识符和所述网络转发设备的地址信息; The source controller receives the second network forwarding device match sent by the network forwarding device according to the address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship. Information, the second network forwarding device matching information includes the second identifier and the address information of the network forwarding device;
所述源控制器确定所述网络转发设备发送的所述第二标识符与所述 第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信息, 建立 与所述网络转发设备的连接。 The source controller determines that the second identifier sent by the network forwarding device and the first identifier satisfy the matching relationship, and establishes a connection with the network forwarding device according to the address information of the network forwarding device. connect.
14、 根据权利要求 13所述的方法, 其特征在于, 还包括: 14. The method according to claim 13, further comprising:
所述源控制器接收所述网络转发设备在所述软件定义网络的控制平 面广播的第一网络转发设备匹配信息, 所述第一网络转发设备匹配信息包 括第二标识符和所述网络转发设备的地址信息; The source controller receives first network forwarding device matching information broadcast by the network forwarding device in the control plane of the software-defined network, where the first network forwarding device matching information includes a second identifier and the network forwarding device address information;
所述源控制器确定所述第一标识符和所述第二标识符满足所述匹配 关系; The source controller determines that the first identifier and the second identifier satisfy the matching relationship;
所述源控制器根据所述网络转发设备的地址信息, 向所述网络转发设 备发送第一源控制器匹配信息, 所述第一源控制器匹配信息包括所述第一 标识符和所述源控制器的地址信息, 以使所述网络转发设备根据所述第一 标识符和所述第二标识符的匹配关系以及所述源控制的地址信息建立与 所述源控制器的连接。 The source controller sends first source controller matching information to the network forwarding device according to the address information of the network forwarding device, where the first source controller matching information includes the first identifier and the source The address information of the controller, so that the network forwarding device establishes a connection with the source controller based on the matching relationship between the first identifier and the second identifier and the address information of the source control.
15、 根据权利要求 13或 14所述的方法, 其特征在于, 所述源控制器 建立与所述网络转发设备的连接之后, 还包括: 15. The method according to claim 13 or 14, characterized in that, after the source controller establishes a connection with the network forwarding device, it further includes:
所述源控制器根据所述源控制器的工作状态, 触发对所述网络转发设 备的控制权切换; The source controller triggers the network forwarding device according to the working status of the source controller. Switch control of the device;
所述源控制器向所述网络调度设备发送释放控制权请求消息, 以使所 述网络调度设备向目标控制器发送所述第一标识符; The source controller sends a release control request message to the network scheduling device, so that the network scheduling device sends the first identifier to the target controller;
所述源控制器接收所述网络调度设备在所述目标控制器与所述网络 转发设备建立连接后, 发送的释放控制权响应信息。 The source controller receives the control right release response information sent by the network scheduling device after the target controller establishes a connection with the network forwarding device.
16、 根据权利要求 13或 14所述的方法, 其特征在于, 所述源控制器 建立与所述网络转发设备的连接之后, 还包括: 16. The method according to claim 13 or 14, characterized in that, after the source controller establishes a connection with the network forwarding device, it further includes:
所述源控制器根据所述源控制器的工作状态, 触发对所述网络转发设 备的控制权切换; The source controller triggers the switching of control rights of the network forwarding device according to the working status of the source controller;
所述源控制器确定目标控制器, 向所述目标控制器发送所述第一标识 符, 以使所述目标控制器根据所述第一标识符和所述第二标识符的匹配关 系建立与所述网络转发设备的连接; The source controller determines the target controller, and sends the first identifier to the target controller, so that the target controller establishes a relationship with the target controller based on the matching relationship between the first identifier and the second identifier. The connection of the network forwarding device;
所述源控制器接收所述目标控制器发送的所述目标控制器与所述网 络转发设备成功建立连接的通知消息; The source controller receives a notification message sent by the target controller that the target controller successfully establishes a connection with the network forwarding device;
所述源控制器释放对所述网络转发设备的控制权。 The source controller releases control of the network forwarding device.
17、 根据权利要求 15或 16所述的方法, 其特征在于, 所述目标控制 器的地址信息包括所述目标控制器的默认地址; 17. The method according to claim 15 or 16, characterized in that the address information of the target controller includes the default address of the target controller;
所述源控制器的地址信息包括所述源控制器的默认地址; The address information of the source controller includes a default address of the source controller;
所述网络转发设备的地址信息包括所述网络转发设备的默认地址或 所述网络调度设备为所述网络转发设备分配的连接地址, 所述连接地址与 所述源控制器的默认地址属于同一网段。 The address information of the network forwarding device includes the default address of the network forwarding device or the connection address assigned by the network scheduling device to the network forwarding device, and the connection address and the default address of the source controller belong to the same network. part.
18、 一种基于软件定义网络的组网方法, 其特征在于, 包括: 目标控制器接收网络调度设备或源控制器发送的标识符对中的第一 标识符, 所述标识符对包括第一标识符和第二标识符, 所述第二标识符为 所述网络调度设备向网络转发设备发送的标识符, 所述第一标识符为源控 制器向所述网络调度设备发送的标识符, 所述第一标识符和所述第二标识 符具有匹配关系; 18. A networking method based on software-defined network, characterized in that it includes: the target controller receives the first identifier in a pair of identifiers sent by the network scheduling device or the source controller, the identifier pair includes the first identifier The identifier and the second identifier, the second identifier is the identifier sent by the network scheduling device to the network forwarding device, the first identifier is the identifier sent by the source controller to the network scheduling device, The first identifier and the second identifier have a matching relationship;
所述目标控制器在软件定义网络的控制平面广播第一目标控制器匹 配信息, 所述第一目标控制器匹配信息包括所述第一标识符和所述目标控 制器的地址信息; 所述目标控制器接收所述网络转发设备在确定所述第一标识符和所 述第二标识符满足所述匹配关系后、 根据所述目标控制器的地址信息发送 的第三网络转发设备匹配信息, 所述第三网络转发设备匹配信息包括所述 第二标识符和所述网络转发设备的地址信息; The target controller broadcasts first target controller matching information on the control plane of the software-defined network, where the first target controller matching information includes the first identifier and the address information of the target controller; The target controller receives the third network forwarding device matching sent by the network forwarding device according to the address information of the target controller after determining that the first identifier and the second identifier satisfy the matching relationship. Information, the third network forwarding device matching information includes the second identifier and the address information of the network forwarding device;
所述目标控制器确定所述网络转发设备发送的所述第二标识符与所 述第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信息, 建 立与所述网络转发设备的连接。 The target controller determines that the second identifier sent by the network forwarding device and the first identifier satisfy the matching relationship, and establishes a connection with the network forwarding device according to the address information of the network forwarding device. connect.
19、 根据权利要求 18所述的方法, 其特征在于, 所述目标控制器建 立与所述网络转发设备的连接之后, 还包括: 19. The method according to claim 18, characterized in that, after the target controller establishes a connection with the network forwarding device, it further includes:
所述目标控制器向所述网络调度设备发送组网成功通知消息, 以使所 述网络调度设备向源控制器发送释放控制权响应消息; 或者 The target controller sends a networking success notification message to the network scheduling device, so that the network scheduling device sends a control right release response message to the source controller; or
所述目标控制器向所述源控制器发送组网成功通知消息, 以使所述源 控制器释放控制权。 The target controller sends a networking success notification message to the source controller, so that the source controller releases control rights.
20、 根据权利要求 18或 19所述的方法, 其特征在于, 所述目标控制 器的地址信息包括所述目标控制器的默认地址; 20. The method according to claim 18 or 19, characterized in that the address information of the target controller includes the default address of the target controller;
所述网络转发设备的地址信息包括所述网络转发设备的默认地址或 所述网络调度设备为所述网络转发设备分配的连接地址, 所述连接地址与 所述源控制器的默认地址属于同一网段。 The address information of the network forwarding device includes the default address of the network forwarding device or the connection address assigned by the network scheduling device to the network forwarding device, and the connection address and the default address of the source controller belong to the same network. part.
21、 一种网络调度设备, 其特征在于, 包括: 21. A network scheduling device, characterized by: including:
生成模块, 用于生成用于源控制器和网络转发设备进行组网的标识符 对; A generation module, used to generate an identifier pair for networking between the source controller and the network forwarding device;
标识符发送模块, 用于将所述标识符对中的第一标识符发送给源控制 器, 将所述标识符对中的第二标识符发送给网络转发设备, 所述第一标识 符和所述第二标识符具有匹配关系, 以使所述源控制器和所述网络转发设 备根据所述第一标识符和所述第二标识符的匹配关系进行组网。 An identifier sending module, configured to send the first identifier in the identifier pair to the source controller, and send the second identifier in the identifier pair to the network forwarding device, the first identifier and The second identifier has a matching relationship, so that the source controller and the network forwarding device perform networking according to the matching relationship between the first identifier and the second identifier.
22、 根据权利要求 21所述的网络调度设备, 其特征在于, 还包括: 接收模块, 用于在所述标识符发送模块将所述标识符对中的第一标识 符发送给源控制器, 将所述标识符对中的第二标识符发送给网络转发设备 之后, 接收所述源控制器发送的释放控制权请求信息; 其中, 所述源控制 器和所述网络转发设备组网成功之后, 所述源控制器对所述网络转发设备 具有控制权; 22. The network scheduling device according to claim 21, further comprising: a receiving module, configured to send the first identifier in the identifier pair to the source controller in the identifier sending module, After sending the second identifier in the pair of identifiers to the network forwarding device, receiving the control right release request information sent by the source controller; wherein, after the source controller and the network forwarding device are successfully networked , the source controller transmits data to the network forwarding device have control;
选择模块, 用于根据所述软件定义网络的状态信息, 在已注册的控制 器中, 选择目标控制器与所述网络转发设备进行组网; A selection module, configured to select a target controller among the registered controllers to form a network with the network forwarding device according to the status information of the software-defined network;
所述标识符发送模块还用于, 向所述目标控制器发送所述第一标识 符, 以使所述目标控制器和所述网络转发设备根据所述第一标识符和所述 第二标识符的匹配关系进行组网; The identifier sending module is also configured to send the first identifier to the target controller, so that the target controller and the network forwarding device use the first identifier and the second identifier to Networking is carried out based on the matching relationship between symbols;
所述接收模块还用于, 接收所述目标控制器发送的组网成功通知消 息, 向所述源控制器发送释放控制权响应信息。 The receiving module is also configured to receive a networking success notification message sent by the target controller, and send a control right release response message to the source controller.
23、 根据权利要求 21或 22所述的网络调度设备, 其特征在于, 所述 接收模块还用于, 在所述生成模块生成用于网络转发设备和源控制器进行 组网的标识符对之前, 接收所述网络转发设备发送的标识符请求信息, 所 述标识符请求信息中包括所述网络转发设备的标识; 23. The network scheduling device according to claim 21 or 22, wherein the receiving module is further configured to: before the generating module generates an identifier pair for networking between the network forwarding device and the source controller. , receiving the identifier request information sent by the network forwarding device, where the identifier request information includes the identification of the network forwarding device;
还包括: 认证模块, 用于根据所述网络转发设备的标识以及合法网络 转发设备标识列表, 确定所述网络转发设备认证通过; It also includes: an authentication module, configured to determine that the network forwarding device has passed the authentication based on the identification of the network forwarding device and the list of legal network forwarding device identifications;
所述选择模块还用于, 根据所述软件定义网络的状态信息, 在已注册 的控制器中, 选择所述源控制器与所述网络转发设备进行组网。 The selection module is further configured to, according to the status information of the software-defined network, select the source controller and the network forwarding device among the registered controllers for networking.
24、 根据权利要求 23所述的网络调度设备, 其特征在于, 24. The network scheduling device according to claim 23, characterized in that,
所述网络转发设备接收所述网络调度设备发送的所述第二标识符, 在 软件定义网络的控制平面广播第一网络转发设备匹配信息, 所述第一网络 转发设备匹配信息包括所述第二标识符和所述网络转发设备的地址信息, 接收所述源控制器在确定所述第一标识符和所述第二标识符满足所述匹 配关系后、 根据所述网络转发设备的地址信息发送的第一源控制器匹配信 息, 所述第一源控制器匹配信息包括所述第一标识符和所述源控制器的地 址信息, 确定所述源控制器发送的所述第一标识符与所述第二标识符满足 所述匹配关系, 根据所述源控制器的地址信息, 建立与所述源控制器的连 接; 或者 The network forwarding device receives the second identifier sent by the network scheduling device, and broadcasts first network forwarding device matching information on the control plane of the software-defined network, where the first network forwarding device matching information includes the second The identifier and the address information of the network forwarding device are sent by the receiving source controller according to the address information of the network forwarding device after determining that the first identifier and the second identifier satisfy the matching relationship. The first source controller matching information, the first source controller matching information includes the first identifier and the address information of the source controller, it is determined that the first identifier sent by the source controller is consistent with The second identifier satisfies the matching relationship, and a connection with the source controller is established based on the address information of the source controller; or
所述源控制器接收所述网络调度设备发送的所述第一标识符, 在软件 定义网络的控制平面广播第二源控制器匹配信息, 所述第二源控制器匹配 信息包括所述第一标识符和所述源控制的地址信息, 接收所述网络转发设 备在确定所述第一标识符和所述第二标识符满足所述匹配关系后、 根据所 述源控制器的地址信息发送的第二网络转发设备匹配信息, 所述第二网络 转发设备匹配信息中包括所述第二标识符和所述网络转发设备的地址信 息, 确定所述网络转发设备发送的所述第二标识符与所述第一标识符满足 所述匹配关系, 根据所述网络转发设备的地址信息, 建立与所述网络转发 设备的连接。 The source controller receives the first identifier sent by the network scheduling device, and broadcasts second source controller matching information on the control plane of the software-defined network, where the second source controller matching information includes the first identifier and the source-controlled address information, after the receiving network forwarding device determines that the first identifier and the second identifier satisfy the matching relationship, according to the The second network forwarding device matching information sent by the address information of the source controller, the second network forwarding device matching information includes the second identifier and the address information of the network forwarding device, determining the network forwarding device The sent second identifier and the first identifier satisfy the matching relationship, and a connection with the network forwarding device is established according to the address information of the network forwarding device.
25、 一种网络转发设备, 其特征在于, 包括: 25. A network forwarding device, characterized by including:
接收模块, 用于接收网络调度设备发送的标识符对中的第二标识符; 所述标识符对包括第一标识符和所述第二标识符, 所述第一标识符为所述 网络调度设备向源控制器发送的标识符, 所述第一标识符和所述第二标识 符具有匹配关系; A receiving module, configured to receive the second identifier in the identifier pair sent by the network scheduling device; the identifier pair includes a first identifier and the second identifier, and the first identifier is the network scheduling device. An identifier sent by the device to the source controller, where the first identifier and the second identifier have a matching relationship;
广播模块, 用于在软件定义网络的控制平面广播第一网络转发设备匹 配信息, 所述第一网络转发设备匹配信息包括所述第二标识符和所述网络 转发设备的地址信息; A broadcast module, configured to broadcast the first network forwarding device matching information on the control plane of the software-defined network, where the first network forwarding device matching information includes the second identifier and the address information of the network forwarding device;
所述接收模块还用于, 接收所述源控制器在确定所述第一标识符和所 述第二标识符满足所述匹配关系后、 根据所述网络转发设备的地址信息发 送的第一源控制器匹配信息, 所述第一源控制器匹配信息包括所述第一标 识符和所述源控制器的地址信息; The receiving module is also configured to receive the first source sent by the source controller according to the address information of the network forwarding device after determining that the first identifier and the second identifier satisfy the matching relationship. Controller matching information, the first source controller matching information includes the first identifier and address information of the source controller;
处理模块, 用于确定所述源控制器发送的所述第一标识符与所述第二 标识符满足所述匹配关系, 根据所述源控制器的地址信息, 建立与所述源 控制器的连接。 A processing module, configured to determine that the first identifier and the second identifier sent by the source controller satisfy the matching relationship, and establish a connection with the source controller according to the address information of the source controller. connect.
26、 根据权利要求 25所述的网络转发设备, 其特征在于, 所述接收 模块还用于, 接收所述源控制器在所述软件定义网络的控制平面广播的第 二源控制器匹配信息, 所述第二源控制器匹配信息包括所述第一标识符和 所述源控制器的地址信息; 26. The network forwarding device according to claim 25, wherein the receiving module is further configured to receive the second source controller matching information broadcast by the source controller in the control plane of the software-defined network, The second source controller matching information includes the first identifier and address information of the source controller;
所述处理模块还用于, 确定所述第一标识符和所述第二标识符满足所 述匹配关系, 根据所述源控制器的地址信息, 向所述源控制器发送第二网 络转发设备匹配信息, 所述第二网络转发设备匹配信息包括所述第二标识 符和所述网络转发设备的地址信息, 以使所述源控制器根据所述第一标识 符和所述第二标识符的匹配关系和所述网络转发设备的地址信息, 建立与 所述网络转发设备的连接。 The processing module is further configured to determine that the first identifier and the second identifier satisfy the matching relationship, and send a second network forwarding device to the source controller according to the address information of the source controller. Matching information, the second network forwarding device matching information includes the second identifier and the address information of the network forwarding device, so that the source controller performs the processing according to the first identifier and the second identifier The matching relationship and the address information of the network forwarding device establish a connection with the network forwarding device.
27、 根据权利要求 25或 26所述的网络转发设备, 其特征在于, 所述 接收模块还用于, 在所述源控制器根据所述源控制器的工作状态, 触发对 所述网络转发设备的控制权切换, 所述源控制器向所述网络调度设备发送 释放控制权请求消息, 所述网络调度设备向目标控制器发送所述第一标识 符条件下, 所述处理模块建立与所述源控制器的连接之后, 所述网络转发 设备接收所述目标控制器在所述软件定义网络的控制平面广播的第一目 标控制器匹配信息, 所述第一目标控制器匹配信息包括所述第一标识符和 所述目标控制器的地址信息; 27. The network forwarding device according to claim 25 or 26, characterized in that, the receiving module is further configured to: trigger the network forwarding device to the network forwarding device according to the working state of the source controller according to the source controller. To switch control rights, the source controller sends a release control right request message to the network scheduling device, and under the condition that the network scheduling device sends the first identifier to the target controller, the processing module establishes the connection with the After the source controller is connected, the network forwarding device receives the first target controller matching information broadcast by the target controller on the control plane of the software-defined network, and the first target controller matching information includes the first target controller matching information. an identifier and address information of the target controller;
所述处理模块还用于, 确定所述目标控制器广播的所述第一标识符和 所述第二标识符满足所述匹配关系; The processing module is also configured to determine that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship;
还包括, 发送模块, 用于根据所述目标控制器的地址信息, 向所述目 标控制器发送第三网络转发设备匹配信息, 所述第三网络转发设备匹配信 息包括所述第二标识符和所述网络转发设备的地址信息, 以使所述目标控 制器根据所述第一标识符和所述第二标识符的匹配关系以及所述网络转 发设备的地址信息, 建立与所述网络转发设备的连接。 It also includes a sending module, configured to send third network forwarding device matching information to the target controller according to the address information of the target controller, where the third network forwarding device matching information includes the second identifier and The address information of the network forwarding device, so that the target controller establishes a communication with the network forwarding device based on the matching relationship between the first identifier and the second identifier and the address information of the network forwarding device. Connection.
28、 一种控制器, 所述控制器为源控制器, 其特征在于, 包括: 接收模块, 用于接收网络调度设备发送的标识符对中的第一标识符; 所述标识符对包括所述第一标识符和第二标识符, 所述第二标识符为所述 网络调度设备向网络转发设备发送的标识符, 所述第一标识符和所述第二 标识符具有匹配关系; 28. A controller, the controller being a source controller, characterized in that it includes: a receiving module, configured to receive the first identifier in a pair of identifiers sent by a network scheduling device; the identifier pair includes all The first identifier and the second identifier, the second identifier is an identifier sent by the network scheduling device to the network forwarding device, and the first identifier and the second identifier have a matching relationship;
广播模块, 用于在软件定义网络的控制平面广播第二源控制器匹配信 息, 所述第二源控制器匹配信息包括所述第一标识符和所述源控制的地址 A broadcast module, configured to broadcast second source controller matching information on the control plane of the software-defined network, where the second source controller matching information includes the first identifier and the address of the source control.
I Ή自、 ., I Ήfrom, .,
所述接收模块还用于, 接收所述网络转发设备在确定所述第一标识符 和所述第二标识符满足所述匹配关系后、 根据所述源控制器的地址信息发 送的第二网络转发设备匹配信息, 所述第二网络转发设备匹配信息中包括 所述第二标识符和所述网络转发设备的地址信息; The receiving module is also configured to receive a second network message sent by the network forwarding device according to the address information of the source controller after determining that the first identifier and the second identifier satisfy the matching relationship. Forwarding device matching information, the second network forwarding device matching information includes the second identifier and address information of the network forwarding device;
处理模块, 用于确定所述网络转发设备发送的所述第二标识符与所述 第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信息, 建立 与所述网络转发设备的连接。 A processing module configured to determine that the second identifier sent by the network forwarding device and the first identifier satisfy the matching relationship, and establish a connection with the network forwarding device according to the address information of the network forwarding device. connect.
29、 根据权利要求 28所述的控制器, 其特征在于, 29. The controller according to claim 28, characterized in that,
所述接收模块还用于, 接收所述网络转发设备在所述软件定义网络的 控制平面广播的第一网络转发设备匹配信息, 所述第一网络转发设备匹配 信息包括第二标识符和所述网络转发设备的地址信息; The receiving module is further configured to receive first network forwarding device matching information broadcast by the network forwarding device in the control plane of the software-defined network, where the first network forwarding device matching information includes a second identifier and the The address information of the network forwarding device;
所述处理模块, 还用于确定所述第一标识符和所述第二标识符满足所 述匹配关系; The processing module is also used to determine that the first identifier and the second identifier satisfy the matching relationship;
还包括, 第一发送模块, 用于根据所述网络转发设备的地址信息, 向 所述网络转发设备发送第一源控制器匹配信息, 所述第一源控制器匹配信 息包括所述第一标识符和所述源控制器的地址信息, 以使所述网络转发设 备根据所述第一标识符和所述第二标识符的匹配关系以及所述源控制的 地址信息建立与所述源控制器的连接。 It also includes: a first sending module, configured to send first source controller matching information to the network forwarding device according to the address information of the network forwarding device, where the first source controller matching information includes the first identification identifier and the address information of the source controller, so that the network forwarding device establishes a connection with the source controller based on the matching relationship between the first identifier and the second identifier and the address information of the source control. Connection.
30、 根据权利要求 28或 29所述的控制器, 其特征在于, 还包括: 第一切换模块, 用于在所述处理模块建立与所述网络转发设备的连接 之后, 根据所述源控制器的工作状态, 触发对所述网络转发设备的控制权 切换; 30. The controller according to claim 28 or 29, further comprising: a first switching module, configured to: after the processing module establishes a connection with the network forwarding device, according to the source controller The working status of the network forwarding device triggers the switching of control rights of the network forwarding device;
第二发送模块, 用于向所述网络调度设备发送释放控制权请求消息, 以使所述网络调度设备向目标控制器发送所述第一标识符; A second sending module, configured to send a release control request message to the network scheduling device, so that the network scheduling device sends the first identifier to the target controller;
所述接收模块还用于, 接收所述网络调度设备在所述目标控制器与所 述网络转发设备建立连接后, 发送的释放控制权响应信息。 The receiving module is also configured to receive control right release response information sent by the network scheduling device after the target controller establishes a connection with the network forwarding device.
31、 根据权利要求 28或 29所述的控制器, 其特征在于, 还包括: 第二切换模块, 用于在所述处理模块建立与所述网络转发设备的连接 之后, 根据所述源控制器的工作状态, 触发对所述网络转发设备的控制权 切换; 31. The controller according to claim 28 or 29, further comprising: a second switching module, configured to: after the processing module establishes a connection with the network forwarding device, according to the source controller The working status of the network forwarding device triggers the switching of control rights of the network forwarding device;
第三发送模块, 用于确定目标控制器, 向所述目标控制器发送所述第 一标识符, 以使所述目标控制器根据所述第一标识符和所述第二标识符的 匹配关系建立与所述网络转发设备的连接; The third sending module is used to determine the target controller, and sends the first identifier to the target controller, so that the target controller determines the target controller according to the matching relationship between the first identifier and the second identifier. Establishing a connection with the network forwarding device;
所述接收模块还用于, 接收所述目标控制器发送的所述目标控制器与 所述网络转发设备成功建立连接的通知消息; The receiving module is also configured to receive a notification message sent by the target controller that the connection between the target controller and the network forwarding device is successfully established;
所述处理模块还用于, 释放对所述网络转发设备的控制权。 The processing module is also configured to release control over the network forwarding device.
32、 一种控制器, 所述控制器为目标控制器, 其特征在于, 包括: 接收模块, 用于接收网络调度设备或源控制器发送的标识符对中的第 一标识符, 所述标识符对包括第一标识符和第二标识符, 所述第二标识符 为所述网络调度设备向网络转发设备发送的标识符, 所述第一标识符为源 控制器向所述网络调度设备发送的标识符, 所述第一标识符和所述第二标 识符具有匹配关系; 32. A controller, the controller is a target controller, characterized in that it includes: A receiving module, configured to receive the first identifier in an identifier pair sent by the network scheduling device or the source controller, where the identifier pair includes a first identifier and a second identifier, and the second identifier is the An identifier sent by the network scheduling device to the network forwarding device, the first identifier is an identifier sent by the source controller to the network scheduling device, and the first identifier and the second identifier have a matching relationship;
广播模块, 用于在软件定义网络的控制平面广播第一目标控制器匹配 信息, 所述第一目标控制器匹配信息包括所述第一标识符和所述目标控制 器的地址信息; A broadcast module, configured to broadcast the first target controller matching information on the control plane of the software-defined network, where the first target controller matching information includes the first identifier and the address information of the target controller;
所述接收模块还用于, 接收所述网络转发设备在确定所述第一标识符 和所述第二标识符满足所述匹配关系后、 根据所述目标控制器的地址信息 发送的第三网络转发设备匹配信息, 所述第三网络转发设备匹配信息包括 所述第二标识符和所述网络转发设备的地址信息; The receiving module is also configured to receive a third network message sent by the network forwarding device according to the address information of the target controller after determining that the first identifier and the second identifier satisfy the matching relationship. Forwarding device matching information, the third network forwarding device matching information includes the second identifier and address information of the network forwarding device;
处理模块, 用于确定所述网络转发设备发送的所述第二标识符与所述 第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信息, 建立 与所述网络转发设备的连接。 A processing module configured to determine that the second identifier sent by the network forwarding device and the first identifier satisfy the matching relationship, and establish a connection with the network forwarding device according to the address information of the network forwarding device. connect.
33、 根据权利要求 32所述的控制器, 其特征在于, 还包括, 发送模 块, 用于在所述处理模块建立与所述网络转发设备的连接之后, 33. The controller according to claim 32, further comprising: a sending module, configured to: after the processing module establishes a connection with the network forwarding device,
向所述网络调度设备发送组网成功通知消息, 以使所述网络调度设备 向源控制器发送释放控制权响应消息; 或者 Send a networking success notification message to the network scheduling device, so that the network scheduling device sends a control right release response message to the source controller; or
向所述源控制器发送组网成功通知消息, 以使所述源控制器释放控制 Send a networking success notification message to the source controller so that the source controller releases control
34、 一种基于软件定义网络的组网系统, 其特征在于, 包括: 网络调 度设备, 网络转发设备, 源控制器, 其中: 34. A networking system based on software-defined network, characterized by including: a network scheduling device, a network forwarding device, and a source controller, wherein:
所述网络调度设备, 用于生成用于源控制器和网络转发设备进行组网 的标识符对; 将所述标识符对中的第一标识符发送给源控制器, 将所述标 识符对中的第二标识符发送给网络转发设备, 所述第一标识符和所述第二 标识符具有匹配关系; The network scheduling device is configured to generate an identifier pair for networking between the source controller and the network forwarding device; send the first identifier in the identifier pair to the source controller, and send the identifier pair to the source controller. The second identifier in is sent to the network forwarding device, and the first identifier and the second identifier have a matching relationship;
所述网络转发设备, 用于接收网络调度设备发送的标识符对中的第二 标识符, 在软件定义网络的控制平面广播第一网络转发设备匹配信息, 所 述第一网络转发设备匹配信息包括所述第二标识符和所述网络转发设备 的地址信息, 接收所述源控制器在确定所述第一标识符和所述第二标识符 满足所述匹配关系后、 根据所述网络转发设备的地址信息发送的第一源控 制器匹配信息, 所述第一源控制器匹配信息包括所述第一标识符和所述源 控制器的地址信息, 确定所述源控制器发送的所述第一标识符与所述第二 标识符满足所述匹配关系, 根据所述源控制器的地址信息, 建立与所述源 控制器的连接; The network forwarding device is configured to receive the second identifier of the identifier pair sent by the network scheduling device, and broadcast the first network forwarding device matching information on the control plane of the software-defined network, where the first network forwarding device matching information includes the second identifier and the network forwarding device address information, receiving the first source controller matching information sent by the source controller according to the address information of the network forwarding device after determining that the first identifier and the second identifier satisfy the matching relationship. , the first source controller matching information includes the first identifier and the address information of the source controller, and it is determined that the first identifier and the second identifier sent by the source controller satisfy the requirements. According to the matching relationship, establish a connection with the source controller according to the address information of the source controller;
所述源控制器, 用于接收网络调度设备发送的标识符对中的第一标识 符, 在软件定义网络的控制平面广播第二源控制器匹配信息, 所述第二源 控制器匹配信息包括所述第一标识符和所述源控制的地址信息, 接收所述 网络转发设备在确定所述第一标识符和所述第二标识符满足所述匹配关 系后、 根据所述源控制器的地址信息发送的第二网络转发设备匹配信息, 所述第二网络转发设备匹配信息中包括所述第二标识符和所述网络转发 设备的地址信息, 确定所述网络转发设备发送的所述第二标识符与所述第 一标识符满足所述匹配关系, 根据所述网络转发设备的地址信息, 建立与 所述网络转发设备的连接。 The source controller is configured to receive the first identifier of the pair of identifiers sent by the network scheduling device, and broadcast second source controller matching information on the control plane of the software-defined network, where the second source controller matching information includes The first identifier and the address information of the source control are received by the network forwarding device according to the source controller after determining that the first identifier and the second identifier satisfy the matching relationship. The second network forwarding device matching information sent by the address information, the second network forwarding device matching information includes the second identifier and the address information of the network forwarding device, determining the second network forwarding device sent by the network forwarding device. The second identifier and the first identifier satisfy the matching relationship, and a connection with the network forwarding device is established according to the address information of the network forwarding device.
35、 根据权利要求 34所述的系统, 其特征在于, 所述系统还包括: 目标控制器; 35. The system according to claim 34, characterized in that, the system further includes: a target controller;
所述源控制器还用于: 根据所述源控制器的工作状态, 触发对所述网 络转发设备的控制权切换, 向所述网络调度设备发送释放控制权请求消 息, 接收所述网络调度设备在所述目标控制器与所述网络转发设备建立连 接后, 发送的释放控制权响应信息; The source controller is also configured to: trigger the switching of control rights to the network forwarding device according to the working status of the source controller, send a release control request message to the network scheduling device, and receive the network scheduling device. After the target controller establishes a connection with the network forwarding device, send a release control response message;
所述网络调度设备还用于, 接收所述源控制器发送的释放控制权请求 信息; 其中, 所述源控制器和所述网络转发设备组网成功之后, 所述源控 制器对所述网络转发设备具有控制权, 根据所述软件定义网络的状态信 息, 在已注册的控制器中, 选择所述目标控制器与所述网络转发设备进行 组网, 向所述目标控制器发送所述第一标识符, 接收所述目标控制器发送 的组网成功通知消息, 向所述源控制器发送释放控制权响应信息; The network scheduling device is also configured to receive control right release request information sent by the source controller; wherein, after the source controller and the network forwarding device are successfully networked, the source controller The forwarding device has control rights, and according to the status information of the software-defined network, among the registered controllers, selects the target controller to network with the network forwarding device, and sends the first to the target controller. An identifier, receiving the networking success notification message sent by the target controller, and sending a release control response message to the source controller;
所述目标控制器, 用于接收所述网络调度设备发送的标识符对中的第 一标识符, 在软件定义网络的控制平面广播第一目标控制器匹配信息, 所 述第一目标控制器匹配信息包括所述第一标识符和所述目标控制器的地 址信息, 接收所述网络转发设备在确定所述第一标识符和所述第二标识符 满足所述匹配关系后、 根据所述目标控制器的地址信息发送的第三网络转 发设备匹配信息, 所述第三网络转发设备匹配信息包括所述第二标识符和 所述网络转发设备的地址信息, 确定所述网络转发设备发送的所述第二标 识符与所述第一标识符满足所述匹配关系, 根据所述网络转发设备的地址 信息, 建立与所述网络转发设备的连接, 向所述网络调度设备发送组网成 功通知消息, 以使所述网络调度设备向源控制器发送释放控制权响应消 息; The target controller is configured to receive the first identifier of the pair of identifiers sent by the network scheduling device, broadcast the first target controller matching information on the control plane of the software-defined network, and the first target controller matches The information includes the first identifier and the location of the target controller. address information, receiving the third network forwarding device matching information sent by the network forwarding device according to the address information of the target controller after determining that the first identifier and the second identifier satisfy the matching relationship, The third network forwarding device matching information includes the second identifier and the address information of the network forwarding device, and it is determined that the second identifier sent by the network forwarding device and the first identifier satisfy the requirement matching relationship, establish a connection with the network forwarding device according to the address information of the network forwarding device, and send a networking success notification message to the network scheduling device, so that the network scheduling device sends a release control to the source controller Right response message;
所述网络转发设备还用于: 接收所述目标控制器在所述软件定义网络 的控制平面广播的第一目标控制器匹配信息, 所述第一目标控制器匹配信 息包括所述第一标识符和所述目标控制器的地址信息, 确定所述目标控制 器广播的所述第一标识符和所述第二标识符满足所述匹配关系, 根据所述 目标控制器的地址信息, 向所述目标控制器发送第三网络转发设备匹配信 息, 所述第三网络转发设备匹配信息包括所述第二标识符和所述网络转发 设备的地址信息, 以使所述目标控制器根据所述第一标识符和所述第二标 识符的匹配关系以及所述网络转发设备的地址信息, 建立与所述网络转发 设备的连接。 The network forwarding device is further configured to: receive first target controller matching information broadcast by the target controller on the control plane of the software-defined network, where the first target controller matching information includes the first identifier and the address information of the target controller, determining that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship, and based on the address information of the target controller, to the The target controller sends third network forwarding device matching information, where the third network forwarding device matching information includes the second identifier and the address information of the network forwarding device, so that the target controller responds according to the first The matching relationship between the identifier and the second identifier and the address information of the network forwarding device establishes a connection with the network forwarding device.
36、 根据权利要求 34所述的系统, 其特征在于, 所述系统还包括: 目标控制器; 36. The system according to claim 34, characterized in that, the system further includes: a target controller;
所述源控制器还用于, 根据所述源控制器的工作状态, 触发对所述网 络转发设备的控制权切换, 确定所述目标控制器, 向所述目标控制器发送 所述第一标识符, 以使所述目标控制器根据所述第一标识符和所述第二标 识符的匹配关系建立与所述网络转发设备的连接, 接收所述目标控制器发 送的所述目标控制器与所述网络转发设备成功建立连接的通知消息, 释放 对所述网络转发设备的控制权; The source controller is also configured to trigger a switching of control rights to the network forwarding device according to the working status of the source controller, determine the target controller, and send the first identification to the target controller. identifier, so that the target controller establishes a connection with the network forwarding device according to the matching relationship between the first identifier and the second identifier, and receives the link between the target controller and the network forwarding device sent by the target controller. The network forwarding device sends a notification message that the connection is successfully established, and releases control of the network forwarding device;
所述目标控制器用于, 接收所述源控制器发送的标识符对中的第一标 识符, 在软件定义网络的控制平面广播第一目标控制器匹配信息, 所述第 一目标控制器匹配信息包括所述第一标识符和所述目标控制器的地址信 息, 接收所述网络转发设备在确定所述第一标识符和所述第二标识符满足 所述匹配关系后、 根据所述目标控制器的地址信息发送的第三网络转发设 备匹配信息, 所述第三网络转发设备匹配信息包括所述第二标识符和所述 网络转发设备的地址信息, 确定所述网络转发设备发送的所述第二标识符 与所述第一标识符满足所述匹配关系, 根据所述网络转发设备的地址信 息, 建立与所述网络转发设备的连接, 向所述源控制器发送组网成功通知 消息, 以使所述源控制器释放控制权; The target controller is configured to receive the first identifier of the pair of identifiers sent by the source controller, and broadcast the first target controller matching information on the control plane of the software-defined network, where the first target controller matching information including the first identifier and the address information of the target controller, and receiving the network forwarding device according to the target control after determining that the first identifier and the second identifier satisfy the matching relationship. The third network forwarding device that sends the address information of the server Matching information is prepared, the third network forwarding device matching information includes the second identifier and the address information of the network forwarding device, and it is determined that the second identifier sent by the network forwarding device is the same as the first identification. If the symbol satisfies the matching relationship, establish a connection with the network forwarding device according to the address information of the network forwarding device, and send a networking success notification message to the source controller so that the source controller releases control rights. ;
所述网络转发设备还用于: 接收所述目标控制器在所述软件定义网络 的控制平面广播的第一目标控制器匹配信息, 所述第一目标控制器匹配信 息包括所述第一标识符和所述目标控制器的地址信息, 确定所述目标控制 器广播的所述第一标识符和所述第二标识符满足所述匹配关系, 根据所述 目标控制器的地址信息, 向所述目标控制器发送第三网络转发设备匹配信 息, 所述第三网络转发设备匹配信息包括所述第二标识符和所述网络转发 设备的地址信息, 以使所述目标控制器根据所述第一标识符和所述第二标 识符的匹配关系以及所述网络转发设备的地址信息, 建立与所述网络转发 设备的连接。 The network forwarding device is further configured to: receive first target controller matching information broadcast by the target controller on the control plane of the software-defined network, where the first target controller matching information includes the first identifier and the address information of the target controller, determining that the first identifier and the second identifier broadcast by the target controller satisfy the matching relationship, and based on the address information of the target controller, to the The target controller sends third network forwarding device matching information, where the third network forwarding device matching information includes the second identifier and the address information of the network forwarding device, so that the target controller responds according to the first The matching relationship between the identifier and the second identifier and the address information of the network forwarding device establishes a connection with the network forwarding device.
PCT/CN2014/075524 2014-04-16 2014-04-16 Software defined network based networking method and device WO2015157947A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201480000561.XA CN105264839B (en) 2014-04-16 2014-04-16 Network-building method and equipment based on software defined network
PCT/CN2014/075524 WO2015157947A1 (en) 2014-04-16 2014-04-16 Software defined network based networking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/075524 WO2015157947A1 (en) 2014-04-16 2014-04-16 Software defined network based networking method and device

Publications (1)

Publication Number Publication Date
WO2015157947A1 true WO2015157947A1 (en) 2015-10-22

Family

ID=54323381

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/075524 WO2015157947A1 (en) 2014-04-16 2014-04-16 Software defined network based networking method and device

Country Status (2)

Country Link
CN (1) CN105264839B (en)
WO (1) WO2015157947A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11431808B2 (en) * 2016-03-07 2022-08-30 Level 3 Communications, Llc Systems and methods for dynamically connecting network elements to enable a service
CN115174403A (en) * 2022-07-02 2022-10-11 华北电力大学 Resource scheduling and routing management method for multi-mode communication network in low-carbon park

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110034974B (en) * 2019-03-29 2020-02-21 武汉中电国为技术有限公司 Monitoring method and system based on wireless communication automatic addressing technology
CN112910720B (en) * 2021-05-06 2021-08-03 成都云智天下科技股份有限公司 Intelligent network scheduling method and system based on user experience quantitative index

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594689A (en) * 2012-02-22 2012-07-18 中兴通讯股份有限公司 Distributed network control method and device
CN103051629A (en) * 2012-12-24 2013-04-17 华为技术有限公司 Software defined network-based data processing system, method and node
CN103209121A (en) * 2013-03-15 2013-07-17 中兴通讯股份有限公司 Discovery method and device based on Open Flow protocol for control plane device
WO2013184941A1 (en) * 2012-06-06 2013-12-12 Huawei Technologies Co., Ltd. Method of seamless integration and independent evolution of information-centric networking via software defined networking

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9087319B2 (en) * 2002-03-11 2015-07-21 Oracle America, Inc. System and method for designing, developing and implementing internet service provider architectures

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594689A (en) * 2012-02-22 2012-07-18 中兴通讯股份有限公司 Distributed network control method and device
WO2013184941A1 (en) * 2012-06-06 2013-12-12 Huawei Technologies Co., Ltd. Method of seamless integration and independent evolution of information-centric networking via software defined networking
CN103051629A (en) * 2012-12-24 2013-04-17 华为技术有限公司 Software defined network-based data processing system, method and node
CN103209121A (en) * 2013-03-15 2013-07-17 中兴通讯股份有限公司 Discovery method and device based on Open Flow protocol for control plane device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11431808B2 (en) * 2016-03-07 2022-08-30 Level 3 Communications, Llc Systems and methods for dynamically connecting network elements to enable a service
US11736575B2 (en) 2016-03-07 2023-08-22 Level 3 Communications, Llc Systems and methods for dynamically connecting network elements to enable a service
CN115174403A (en) * 2022-07-02 2022-10-11 华北电力大学 Resource scheduling and routing management method for multi-mode communication network in low-carbon park
CN115174403B (en) * 2022-07-02 2024-03-12 华北电力大学 Method and device for resource scheduling and route management of multi-mode communication network in low-carbon park

Also Published As

Publication number Publication date
CN105264839A (en) 2016-01-20
CN105264839B (en) 2019-01-18

Similar Documents

Publication Publication Date Title
US11902116B2 (en) Packet processing method, forwarding plane device and network device
KR101396042B1 (en) Dynamic host configuration and network access authentication
US20060070115A1 (en) Server, VPN client, VPN system, and software
AU2014261983B2 (en) Communication managing method and communication system
US20170034308A1 (en) Method for commissioning and joining of a field device to a network
US10530699B2 (en) Processing method, apparatus, and system for a service flow processing policy
WO2016004556A1 (en) Service flow processing method, apparatus and device
US20160066354A1 (en) Communication system
CN111371664B (en) Virtual private network access method and equipment
US12075246B2 (en) Securing transmission paths in a mesh network
JP2016063233A (en) Communication control device
US9118588B2 (en) Virtual console-port management
JP2014510480A (en) Network communication system and method
WO2023010880A1 (en) Data transmission method and related device
WO2018129807A1 (en) Communication method, network exposure function network element, and control plane network element
WO2015157947A1 (en) Software defined network based networking method and device
WO2015096707A1 (en) Method, device and system for acquiring information about configuration server
US20220141027A1 (en) Automatic distribution of dynamic host configuration protocol (dhcp) keys via link layer discovery protocol (lldp)
WO2024001212A1 (en) Information transmission method and apparatus, and storage medium and electronic apparatus
US20170093825A1 (en) Sdn controller and method of identifying switch thereof
WO2023071522A1 (en) Connection establishment method and device, storage medium and electronic device
JP2018174550A (en) Communication system
CN114338508A (en) Method, equipment and system for detecting routing loop
CN117896177B (en) SRv6 communication method and system based on IPv6 password identification
JP6213028B2 (en) Communication system, communication method, communication program, and communication apparatus

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201480000561.X

Country of ref document: CN

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

Ref document number: 14889399

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

Country of ref document: EP

Kind code of ref document: A1