WO2017143722A1 - Network function implementing method, control device and network element - Google Patents

Network function implementing method, control device and network element Download PDF

Info

Publication number
WO2017143722A1
WO2017143722A1 PCT/CN2016/089652 CN2016089652W WO2017143722A1 WO 2017143722 A1 WO2017143722 A1 WO 2017143722A1 CN 2016089652 W CN2016089652 W CN 2016089652W WO 2017143722 A1 WO2017143722 A1 WO 2017143722A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
port
protocol
network
distributed control
Prior art date
Application number
PCT/CN2016/089652
Other languages
French (fr)
Chinese (zh)
Inventor
肖敏
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017143722A1 publication Critical patent/WO2017143722A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements

Definitions

  • the embodiments of the present invention relate to, but are not limited to, Software Defined Network (SDN) technology, and in particular, to a network function implementation method, a control device, and a network element.
  • SDN Software Defined Network
  • FIG. 1 is a schematic diagram of the SDN network component architecture in the related art, as shown in Figure 1.
  • the SDN adopts an architecture in which the control plane is separated from the data plane.
  • the control plane of the SDN is implemented by the SDN controller, and the data plane of the SDN is implemented by the network element, and the SDN controller and the network element are connected through the SDN southbound interface.
  • the SDN controller sends a forwarding table to the network element through the SDN southbound interface, so as to control the data forwarding, so as to achieve separation of data forwarding and forwarding control.
  • the network element needs to support the SDN South running between the network element and the SDN controller.
  • interface control protocol such as the OpenFlow protocol
  • other traditional control protocols such as the bidirectional forwarding detection (BFD) protocol, the link layer discovery protocol (LLDP), and the intra-domain, need to be supported between the network element and the network element. Routing Protocol (IGP), etc.
  • IGP Routing Protocol
  • the SDN southbound interface control protocol running between the network element and the SDN controller is called a centralized control protocol, and other traditional control protocols running between the network element and the network element are called distributions. Control protocol. That is to say, the network element must support both the centralized control protocol and the distributed control protocol.
  • the centralized control protocol can also implement the network functions that the distributed control protocol can implement, the centralized control protocol and the distributed control protocol will have different functions when implementing the same network functions such as operation, management, and maintenance (OAM) functions. Performance and real-time, and different SDN application scenarios have different requirements for the performance and real-time performance of the same network function. Therefore, for many SDN application scenarios, the network element needs to support the distributed control protocol and implement certain network functions by using the distributed control protocol to meet the performance and real-time requirements of these SDN application scenarios for these network functions.
  • OAM operation, management, and maintenance
  • the embodiment of the invention provides a network function implementation method, a control device and a network element, which can avoid the problem that the centralized control protocol and the distributed control protocol conflict when implementing the same network function at the same time.
  • the embodiment of the present invention provides a network function implementation method.
  • a software-defined network SDN controller establishes a control connection with a network element, the method includes:
  • the SDN controller queries the type of the distributed control protocol that the network element can support and the enabled state of the distributed control protocol on each port of the network element;
  • the SDN controller turns off the centralized control protocol on the port for implementing the same network functions as the distributed control protocol.
  • the method further includes: implementing the network function by using a centralized control protocol for a port in which the network element does not enable a distributed control protocol to implement a network function.
  • the SDN controller queries the type of the distributed control protocol that the network element can support and the enabled state of the distributed control protocol on each port of the network element, including:
  • the SDN controller sends a query message to the network element, where the query message is used to query the type of the distributed control protocol that the network element can support and the enable state of the distributed control protocol on each port of the network element;
  • the response message carries a distributed control protocol type that the network element can support, and an enabled state of the distributed control protocol on each port of the network element.
  • the response message is an extended network element function response OFPT_FEATURES_REPLY message.
  • the method further includes: the network element notifying the SDN of the enabled control state of the distributed control protocol type and/or the distributed control protocol on the port of the network element by using an advertisement message Controller.
  • the advertisement message is an extended OpenFlow asynchronous message.
  • the method further includes: the SDN controller sends a command message to the network element, where the command message is used to instruct the network element to enable or disable one or more distributed control protocols supported by the network element. Running on each port of the network element.
  • the command message configures an OFPT_SET_CONFIG message for the extended network element or an extended network element port modification OFPT_PORT_MOD message.
  • the distributed protocol information carried by the extension adopts a package format of a type-length-assignment TLV;
  • the Type field of the TLV indicates that the TLV carries distributed protocol information.
  • the Length field indicates the total length of all n distributed protocol tuples
  • the Assign Value field consists of n distributed protocol tuples, each of which contains three more fields: the distributed protocol type, the port number, and the enabled state.
  • the embodiment of the present invention further provides a control device, including a query module and a control module, where
  • the query module is configured to query the type of the distributed control protocol that the network element can support and the enable state of the distributed control protocol on each port of the network element when establishing a control connection with the network element;
  • the control module is configured to close the port on the port for enabling the same network function as the distributed control protocol for the port in which the distributed control protocol is enabled.
  • control module is further configured to implement the network function by using a centralized control protocol for a port in which the distributed control protocol is not enabled.
  • the method further includes: a first processing module, configured to receive a distributed control protocol type and/or a distributed control protocol supported by the network element from the network element, and the enabling state of each port of the network element changes The change information is output to the control module.
  • a first processing module configured to receive a distributed control protocol type and/or a distributed control protocol supported by the network element from the network element, and the enabling state of each port of the network element changes The change information is output to the control module.
  • control module is further configured to: send a command message to the network element, where the command The message is used to instruct the network element to enable or disable the operation of one or more distributed control protocols supported by the network element on each port of the network element.
  • the embodiment of the present invention further provides a network element, including:
  • the interface module is configured to receive the query message from the control device, and send, to the second processing module, which distributed control protocol and the various distributed control protocols are enabled on the ports of the network element according to the query message.
  • Status notification notification ;
  • the second processing module is configured to receive the query notification, and return a response message to the control device according to the query notification, where the response message carries the distributed control protocol type that the network element that needs to be queried can support, and the distributed control protocol is on each port of the network element.
  • the enabled state is configured to receive the query notification, and return a response message to the control device according to the query notification, where the response message carries the distributed control protocol type that the network element that needs to be queried can support, and the distributed control protocol is on each port of the network element.
  • the interface module is further configured to: receive a command message from the control device, and send a command notification to the second processing module according to the command message;
  • the second processing module is further configured to: receive a command notification, and enable or disable the operation of one or more distributed control protocols supported by the network element to which the network element belongs to each port of the network element according to the command notification.
  • an embodiment of the present invention further provides a computer readable storage medium, where the computer storable medium stores computer executable instructions, where the computer executable instructions are used to perform network function implementation of any of the foregoing method.
  • the technical solution of the present application includes: when a control connection is established between the SDN controller and the network element, the SDN controller queries the distributed control protocol type and the distributed control protocol that the network element can support in the network element. An enabled state on each port; for a port in which the distributed control protocol is enabled, the SDN controller turns off the centralized control protocol on the port for implementing the same network functions as the distributed control protocol.
  • the WLAN controller does not use the centralized control protocol to implement the same network function on the same network element port. The problem of conflicts between the centralized control protocol and the distributed control protocol while implementing the same network function is avoided.
  • FIG. 2 is a flowchart of a method for implementing a network function according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a format of a message extension TLV according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a control device according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a first embodiment of an SDN controller controlling an LLDP protocol according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of a second embodiment of an SDN controller controlling a BFD protocol according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a third embodiment of an SDN controller simultaneously controlling an LLDP protocol and a BFD protocol according to an embodiment of the present invention
  • FIG. 9 is a schematic diagram of a fourth embodiment of an SDN controller controlling an IGP protocol according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for implementing a network function according to an embodiment of the present invention, when an SDN controller and a network When a control connection is established between the elements, as shown in Figure 2, it includes:
  • the SDN controller sends a query message to the network element to query which distributed control protocols the network element can support and various distributed control protocols on the ports of the network element.
  • the network element receives the query message from the SDN controller, it returns a response message to report to the SDN controller various types of distributed control protocols supported by the network element itself, and various distributed control protocols. Enable status on each port of the NE.
  • the step further includes: the network element uniformly coding the distributed control protocols, for example, assigning codewords 1 to a distributed control protocol, such as LLDP, and assigning codewords 2 to a distributed control protocol, such as BFD.
  • a distributed control protocol such as LLDP
  • codewords 2 to a distributed control protocol, such as BFD.
  • each distributed control protocol has a unique codeword corresponding to the distributed control protocol.
  • the two enabled states of the various distributed control protocols on each port of the network element include an Enabled state and a Disabled state.
  • the query message sent by the SDN controller to the network element may use the network element function query (OFPT_FEATURES_REQUEST) message defined in the OpenFlow protocol; the response message sent by the network element to the SDN controller may be responded by the network element function defined in the OpenFlow protocol (OFPT_FEATURES_REPLY)
  • the message extension is obtained, and the extended protocol information of the extension can be encapsulated in a Type-Length-Value (TLV) format.
  • FIG. 3 is a schematic diagram of a format of a message extension TLV according to an embodiment of the present invention.
  • the Type field of the TLV indicates that the TLV carries distributed protocol information; the Length field indicates the total length of all n distributed protocol tuples; the Value field consists of n distributed protocol tuples, each distributed protocol tuple It also contains three fields: distributed protocol types such as codeword, port number, and enable status.
  • OpenFlow provides an open protocol that can be used on different switches and routers. Program the flow table.
  • the network function can still be implemented by using a centralized control protocol.
  • the WLAN controller does not use the centralized control protocol to implement the same network function on the same network element port. The problem of conflicts between the centralized control protocol and the distributed control protocol while implementing the same network function is avoided.
  • the network element in the SDN network may be controlled by multiple SDN controllers at the same time, and in addition to being controlled by the SDN controller, the network element may also be managed by the network management system and/or the network element configuration point, so during the network operation,
  • the distributed control protocol type supported by the network element and/or the enabling status of various distributed control protocols on each port of the network element may occur without prior knowledge of the SDN controller.
  • the embodiment of the present invention further includes:
  • the information about the type of the distributed control protocol that the network element can support and/or the change status of the enabled state of the distributed control protocol on each port of the network element is advertised to the SDN controller through an advertisement message.
  • the SDN controller closes the port that uses the centralized control protocol to implement the same network function, and the port for which the network element is not enabled with the distributed control protocol to implement the network function.
  • the network function is still implemented using a centralized control protocol.
  • the advertisement message may use the extended OpenFlow asynchronous message, that is, the extended distributed protocol state advertisement message, and the extended distributed protocol state advertisement message also carries the distributed protocol information in the TLV encapsulation format as shown in FIG. .
  • the SDN controller knows in real time the various types of distributed control protocols supported by the network element, and each Based on the enabled state of the distributed control protocol on each port of the network element, the method further includes:
  • the SDN controller sends a command message to the network element to instruct the network element to enable or disable the operation of one or more distributed control protocols supported by the network element on each port of the network element. That is to say, the SDN controller can modify the enabling state of each distributed control protocol supported by the network element on each port of the network element as needed.
  • the command message can be obtained by using the network element configuration (OFPT_SET_CONFIG) message defined in the OpenFlow protocol.
  • the extended OFPT_SET_CONFIG message also carries the distributed protocol information in the TLV encapsulation format as shown in FIG. 3.
  • the command message can also be obtained by using a network element port modification (OFPT_PORT_MOD) message extension defined in the OpenFlow protocol.
  • the extended OFPT_PORT_MOD message carries a distributed protocol type field and an enable status field.
  • FIG. 4 is a schematic structural diagram of a control device according to an embodiment of the present invention. As shown in FIG. 4, at least a query module and a control module are included;
  • the query module is configured to query the type of the distributed control protocol that the network element can support and the enable state of the distributed control protocol on each port of the network element when establishing a control connection with the network element;
  • the control module is configured to close the port on the port for enabling the same network function as the distributed control protocol for the port in which the distributed control protocol is enabled.
  • the query module is specifically configured to: when establishing a control connection with the network element, send a query message to the network element to query which distributed control protocols the network element can support and various distributed control protocols on the ports of the network element.
  • the status of the enable state is received from the network element to return various types of distributed control protocols supported by the network element and the response status of the various distributed control protocols on the ports of the network element.
  • the control module is also configured to implement the network function using a centralized control protocol for ports where the distributed control protocol is not enabled.
  • the control device of the embodiment of the present invention further includes: a first processing module, configured to receive a distributed control protocol type and/or a distributed control protocol supported by the network element from the network element, and the enabling state of each port of the network element changes The change information is output to the control module.
  • control module is further configured to: send a command message to the network element, to indicate that the network element modifies, for example, enabling or disabling the running of one or more distributed control protocols supported by the network element on each port of the network element.
  • FIG. 5 is a schematic structural diagram of a network element in an embodiment of the present invention, including at least an interface module and a second processing module;
  • the interface module is configured to receive the query message from the control device, and send, to the second processing module, which distributed control protocol and the various distributed control protocols are enabled on the ports of the network element according to the query message.
  • Status notification notification ;
  • the second processing module is configured to receive the query notification, and return a response message to the control device according to the query notification, where the response message carries the distributed control protocol type that the network element that needs to be queried can support, and the distributed control protocol is on each port of the network element.
  • the enabled state is configured to receive the query notification, and return a response message to the control device according to the query notification, where the response message carries the distributed control protocol type that the network element that needs to be queried can support, and the distributed control protocol is on each port of the network element.
  • the second processing module is further configured to notify the control device of the change information of the distributed control protocol type and/or the distributed control protocol supported by the network element to which the network element belongs to the network element.
  • the interface module is further configured to: receive a command message from the control device, and send a command notification to the second processing module according to the command message;
  • the second processing module is further configured to: receive a command notification, and enable or disable the operation of one or more distributed control protocols supported by the network element to which the network element belongs to each port of the network element according to the command notification.
  • FIG. 6 is a schematic diagram of a first embodiment of an SDN controller controlling an LLDP protocol according to an embodiment of the present invention.
  • an OpenFlow centralized control protocol is assumed between an SDN controller and a network element.
  • the LLDP distributed control protocol is run between the network element 1 and the network element 2.
  • the SDN controller controls the LLDP protocol supported by the network element by using the extended OpenFlow protocol, including:
  • the SDN controller learns by sending an inquiry message that both the network element 1 and the network element 2 support the LLDP protocol.
  • the LLDP protocol is enabled on port 1 of network element 1 and port 2 of network element 2. Specifically include:
  • the SDN controller sends a query message to the network element 1 to query which distributed control protocols the network element 1 can support and various distributed control protocols in the network element 1
  • the enable state on each port after receiving the query message sent by the SDN controller, the network element 1 returns a response message, and reports to the SDN controller that the network element 1 itself supports the LLDP protocol, and the LLDP protocol is on each port of the network element 1. Enable status.
  • the SDN controller sends a query message to the network element 2 to query which distributed control protocols and various distributed control protocols the network element 2 can support.
  • the enabled state on the port among them,
  • the query message sent by the SDN controller to the network element 1 and the network element 2 may use the OFPT_FEATURES_REQUEST query message defined in the OpenFlow protocol, and the response message replied by the network element 1 and the network element 2 to the SDN controller may be responded by the OFPT_FEATURES_REPLY defined in the OpenFlow protocol.
  • the message extension is obtained, and the distributed protocol information carried by the extension can be in the encapsulation format of the Type-Length-Value (TLV). As shown in FIG. 3, the Type field of the TLV indicates that the TLV carries the distributed protocol.
  • the Length field indicates the total length of all n distributed protocol tuples
  • the Value assignment field consists of n distributed protocol tuples, each of which contains three fields: a distributed protocol type such as a code Word, port number, and enable status.
  • both the port 1 of the network element 1 and the port 2 of the network element 2 are enabled with the LLDP protocol, so that the network element 1 and the network element 2 can implement the network function of mutual discovery by using the LLDP protocol.
  • the SDN controller does not use the OpenFlow protocol on the port 1 of the network element 1 and the port of the network element 2
  • the network function of the mutual discovery is implemented on the network 1 so that the port 1 of the network element 1 receives two types of conflicting LLDP packets at the same time: the port 2 of the network element 2 transmits LLDP packets and the SDN controller passes the OpenFlow.
  • the protocol indicates that the LLDP packet sent by the port 2 of the network element 2 causes the LLDP protocol state machine on the port 1 of the network element 1 to be confused.
  • the network management system independent of the SDN controller respectively connects the port 1 of the network element 1
  • the LLDP protocol enable state on the port 2 of the network element 2 is changed from the enable to the off, and the network element 1 and the network element 2 respectively report the change by sending an advertisement message to the SDN controller.
  • the advertisement message sent by the network element 1 and the network element 2 to the SDN controller may use an extended OpenFlow asynchronous message, that is, an extended distributed protocol state advertisement message, and is also carried in the extended distributed protocol state advertisement message.
  • the illustrated distributed protocol information is used in a TLV encapsulation format
  • the SDN controller learns that the port 1 of the network element 1 and the port 2 of the network element 2 are no longer enabled with the LLDP protocol to implement the mutual discovery network function, the SDN controller starts to use the OpenFlow protocol on the port 1 of the network element 1 and the port of the network element 2.
  • the SDN controller sends a Packet_out message containing the LLDP packet and the sending port number to the network element 1, instructing the network element 1 to send the LLDP packet from the port 1, and the network element 2 will receive the received packet.
  • the LLDP packet and the receiving port number are sent to the SDN controller through the Packet_in message.
  • the SDN controller sends the Packet_out message containing the LLDP packet and the sending port number to the network element 2, indicating that the network element 2 is sent out from the port 2.
  • LLDP packet, and the network element 1 sends the received LLDP packet and the receiving port number to the SDN controller through the Packet_in message.
  • the SDN controller can implement the mutual discovery network function on the port 1 of the network element 1 and the port 2 of the network element 2 by using the OpenFlow protocol.
  • the SDN controller may also instruct the port 1 of the network element 1 and the port 2 of the network element 2 to enable the LLDP protocol by sending a command message to the network element 1 and the network element 2, respectively.
  • the SDN controller stops using the OpenFlow protocol to implement mutual discovery network functions on port 1 of network element 1 and port 2 of network element 2. among them,
  • the command message sent by the SDN controller to the network element 1 and the network element 2 can be obtained by using the OFPT_SET_CONFIG message defined in the OpenFlow protocol.
  • the extended OFPT_SET_CONFIG message also carries the distributed protocol as shown in FIG.
  • the command message sent by the SDN controller to the network element 1 and the network element 2 can also be extended by the OFPT_PORT_MOD message defined in the OpenFlow protocol.
  • the extended OFPT_PORT_MOD message carries a distributed protocol type field and an enable status field.
  • the SDN controller re-enables the automatic between the network element 1 and the network element 2.
  • the mutual discovery can send a command message to the network element 1 and the network element 2, respectively, indicating that the port 1 of the network element 1 and the port 2 of the network element 2 re-enable the LLDP protocol.
  • the SDN controller stops using the OpenFlow protocol on port 1 of the network element 1 and The network function of mutual discovery is implemented on port 2 of network element 2.
  • FIG. 7 is a schematic diagram of a second embodiment of an SDN controller controlling a BFD protocol according to an embodiment of the present invention.
  • an OpenFlow centralized control protocol is assumed between an SDN controller and a network element.
  • the BFD distributed control protocol is run between the network element 3 and the network element 4.
  • the SDN controller controls the BFD protocol supported by the network element by using the extended OpenFlow protocol, including:
  • the SDN controller knows that the network element 3 supports the BFD protocol and the BFD protocol is in the closed state on port 3 of the network element 3, and the network element 4 does not support the BFD protocol. Specifically include:
  • the SDN controller sends an inquiry message to the network element 3 to query which distributed control protocols the network element 3 can support and various distributed control protocols in the network element 3.
  • the SDN controller sends an inquiry message to the network element 4 to query which distributed control protocols and various distributed control protocols the network element 4 can support.
  • the enabling state of each port of the network element 4 after receiving the query message sent by the SDN controller, the network element 4 returns a response message, and reports to the SDN controller the distributed control protocol supported by the network element 4, wherein there is no BFD protocol. That is, the network element 4 does not support the BFD protocol. That is to say, the BFD protocol is disabled on the port 3 of the network element 3, and the network element 4 does not support the BFD protocol, so that the network element 3 and the network element 4 cannot use the BFD protocol to implement the network function for real-time monitoring of the link state.
  • the SDN controller learns that the port 3 of the network element 3 and the port 4 of the network element 4 have not enabled the BFD protocol to implement the network function of real-time monitoring of the link state
  • the port of the network element 3 and the port of the network element 4 are started by using the OpenFlow protocol. 4 Network function to realize real-time monitoring of link status.
  • the SDN controller sends a Packet_out message containing the BFD packet and the sending port number to the network element 3, and instructs the network element 3 to send the BFD packet from the port 3,
  • the SDN controller sends a BFD packet to the network element 4 to instruct the network element 4 to process the received BFD packet.
  • the SDN controller sends the BFD packet and the port number to the network element 4.
  • the packet_out message indicates that the network element 4 sends the BFD packet from the port 4, and the SDN controller sends the flow table of the BFD packet to the network element 3 to instruct the network element 3 to process the received BFD packet.
  • the SDN controller can implement the network function of real-time monitoring of the link state on the port 3 of the network element 3 and the port 4 of the network element 4 by using the OpenFlow protocol.
  • the network management system is independent of the SDN controller and the BFD protocol is newly installed on the network element 4, and the BFD protocol on the port 4 of the network element 4 is in the closed state.
  • the network element 4 can report the advertised message to the SDN controller. The above changes.
  • the SDN controller may also instruct the port 3 of the network element 3 and the port 4 of the network element 4 to enable the BFD protocol by sending a command message to the network element 3 and the network element 4 respectively.
  • the SDN controller stops using the OpenFlow protocol to implement the network function of link state real-time monitoring on port 3 of network element 3 and port 4 of network element 4.
  • the SDN controller learns that the BFD protocol is newly installed on the network element 4, and the BFD protocol on the port 4 of the network element 4 is in the closed state
  • the link state between the network element 3 and the network element 4 is enabled in real time.
  • the monitoring can send a command message to the network element 3 and the network element 4, respectively, indicating that the port 3 of the network element 3 and the port 4 of the network element 4 enable the BFD protocol.
  • the SDN controller stops using the OpenFlow protocol in the network element 3 Network function of real-time monitoring of link status on port 3 and port 4 of network element 4.
  • FIG. 8 is a schematic diagram of a third embodiment of the SDN controller simultaneously controlling the LLDP protocol and the BFD protocol according to the embodiment of the present invention.
  • the OpenFlow set is run between the SDN controller and the network element.
  • the LLDP protocol and the BFD distributed control protocol are run between the network element 1 and the network element 2.
  • the SDN controller simultaneously performs the LLDP protocol and the BFD protocol supported by the network element through the extended OpenFlow protocol. Control, including:
  • the SDN controller knows that the network element 5 supports the LLDP protocol and the BFD protocol, and the LLDP protocol is enabled on the port 5 of the network element 5, and the BFD protocol is disabled on the port 5 of the network element 5, and the network element is closed. 6
  • the LLDP protocol is supported and the BFD protocol is not supported.
  • the LLDP protocol is enabled on port 6 of the network element 6. Specifically include:
  • the SDN controller sends a query message to the network element 5 to query which distributed control protocols the network element 5 can support and various distributed control protocols in the network element 5.
  • the LLDP and BFD protocols are supported by the SDN controller. Enable status on each port of element 5.
  • the SDN controller sends a query message to the network element 6 to query which distributed control protocols and various distributed control protocols the network element 6 can support.
  • the NE 6 returns a response message after receiving the query message sent by the SDN controller, and reports the distributed control protocol supported by the network element 6 and the distributed control protocol to the SDN controller.
  • there is an LLDP protocol and no BFD protocol that is, the network element 6 supports the LLDP protocol and does not support the BFD protocol.
  • the LLDP protocol is enabled on the port 5 of the network element 5 and the port 6 of the network element 6, so that the network element 5 and the network element 6 can implement the network function of mutual discovery by using the LLDP protocol.
  • the SDN controller does not use the OpenFlow protocol to implement the network function of mutual discovery on the port 5 of the network element 5 and the port 6 of the network element 6 to avoid conflicts.
  • the SDN controller If the BFD protocol is disabled on the port 5 of the network element 5, the network element 6 does not support the BFD protocol. Therefore, the network element 5 and the network element 6 cannot use the BFD protocol to implement the network function for real-time monitoring of the link state. Then, after the SDN controller knows that the port 5 of the network element 5 and the port 6 of the network element 6 have not enabled the BFD protocol to implement the network function for real-time monitoring of the link state, the SDN controller starts to use the OpenFlow protocol on port 5 and network element 6 of the network element 5. Network function for real-time monitoring of link status on port 6.
  • the network management device independently of the SDN controller separately changes the LLDP protocol enable state on the port 5 of the network element 5 and the port 6 of the network element 6 from the enable to the off, and then includes: the network element 5
  • the network element 6 and the network element 6 respectively report the change by sending an announcement message to the SDN controller.
  • the network management system is independent of the SDN controller, the BFD protocol is newly installed on the network element 6, and the BFD protocol on the port 6 of the network element 6 is in the closed state, and the network element 6 sends an advertisement message to the SDN controller. Report the above changes.
  • the OpenFlow protocol is used to implement the port 5 of the network element 5 and the port 6 of the network element 6 by using the OpenFlow protocol. Network features discovered by each other.
  • the SDN controller may also indicate that the port 5 of the network element 5 and the port 6 of the network element 6 simultaneously enable the LLDP protocol by sending a command message to the network element 5 and the network element 6, respectively. BFD protocol.
  • the SDN controller stops using the OpenFlow protocol to implement the mutually discovered network function and the network function of the link state real-time monitoring on the port 5 of the network element 5 and the port 6 of the network element 6.
  • the SDN controller learns that the LLDP protocol on the port 5 of the network element 5 and the port 6 of the network element 6 is changed from the enabled state to the closed state, the automatic mutual discovery between the network element 5 and the network element 6 is re-enabled.
  • the command message may be sent to the network element 5 and the network element 6, respectively, and the port 5 of the network element 5 and the port 6 of the network element 6 are respectively enabled to re-enable the LLDP protocol.
  • the SDN controller stops using the OpenFlow protocol on port 5 of the network element 5 and The network function of mutual discovery is implemented on port 6 of the network element 6.
  • a command message may be sent to the network element 5 and the network element 6 to indicate that the port 5 of the network element 5 and the port 6 of the network element 6 enable the BFD protocol.
  • the SDN controller stops using the OpenFlow protocol in the network element 5. The network function of real-time monitoring of link status is implemented on port 5 and port 6 of network element 6.
  • FIG. 9 is a schematic diagram of a fourth embodiment of an SDN controller controlling an IGP protocol according to an embodiment of the present invention.
  • an OpenFlow centralized control protocol is assumed between an SDN controller and a network element.
  • the IGP distributed control protocol is run between the network element 7, the network element 8, and the network element 9.
  • the SDN controller controls the IGP protocol supported by the network element by using the extended OpenFlow protocol, including:
  • the SDN controller knows that the network element 7, the network element 8, and the network element 9 support the IGP protocol, and the IGP protocol is on port 7 and port 8 of the network element 7, port 7 and port 8 of the network element 8, and the network. Both port 9 and port 10 of element 9 are enabled. Specifically include:
  • the SDN controller sends a query message to the network element 7 to query which distributed control protocols and various distributions the network element 7 can support.
  • the SDN controller sends a query message to the network element 8 to query which distributed control protocols and various distributed control protocols the network element 8 can support.
  • the enabled state on the top Similarly, once the control connection is established between the SDN controller and the network element 9, the SDN controller sends a query message to the network element 9 to query which distributed control protocols and various distributed control protocols the network element 9 can support.
  • the enabled state on the top a response message after receiving the query message sent by the SDN controller, and reports to the SDN controller that the network element 9 supports the IGP protocol, and the IGP protocol is on each port of the network element 9.
  • the port 7 and the port 8 of the network element 7, the port 7 and the port 8 of the network element 8, and the port 9 and the port 10 of the network element 9 are both enabled with the IGP protocol, so that the network element 7 and the network element 8 are And the network element 9 can implement the network function of routing and forwarding by using the IGP protocol.
  • the SDN controller learns that port 7 and port 8 of the network element 7, port 7 and port 8 of the network element 8, and port 9 and port 10 of the network element 9 are enabling the IGP protocol to implement the network function of routing and forwarding
  • the network function of routing forwarding is implemented on port 7 and port 8 of network element 7, port 7 and port 8 of network element 8, and port 9 and port 10 of network element 9 by using the OpenFlow protocol. That is, the SDN controller does not calculate the route between the network element 7, the network element 8, and the network element 9, and does not use the OpenFlow protocol to deliver the corresponding forwarding flow to the network element 7, the network element 8, and the network element 9.
  • the forwarding table generated by the IGP protocol on the network element 7, the network element 8, and the network element 9 is in conflict with the forwarding flow table sent by the SDN controller through the OpenFlow protocol, causing confusion on the forwarding state of the network element.
  • the network management system independent of the SDN controller respectively connects port 7 and port 8 of the network element 7, port 7 and port 8 of the network element 8, and port 9 and port 10 of the network element 9 to the IGP protocol.
  • the enable state is changed from enabled to off, and includes: the network element 7, the network element 8, and the network element 9 respectively report the change by sending an advertisement message to the SDN controller.
  • the SDN controller starts after knowing that port 7 and port 8 of the network element 7, port 7 and port 8 of the network element 8, and port 9 and port 10 of the network element 9 are no longer enabled with the network function of the IGP protocol for routing and forwarding.
  • the SDN controller calculates the routes between port 7 and port 8 of network element 7, port 7 and port 8 of network element 8, and port 9 and port 10 of network element 9, forming each network element.
  • the corresponding forwarding flow table is corresponding to the calculated route, and then the corresponding forwarding flow table is delivered to the network element 7, the network element 8, and the network element 9 through the OpenFlow protocol.
  • the SDN controller can implement the network function of routing and forwarding on the port 7 and port 8 of the network element 7, the port 7 and port 8 of the network element 8, and the port 9 and port 10 of the network element 9 by using the OpenFlow protocol.
  • the SDN controller may also indicate the port 7 and the port 8 of the network element 7 and the network element 8 by sending a command message to the network element 7, the network element 8, and the network element 9, respectively.
  • Ports 7 and 8, and port 9 and port 10 of network element 9 enable the IGP protocol.
  • the SDN controller stops using the OpenFlow protocol to implement the network function of route forwarding on port 7 and port 8 of network element 7, port 7 and port 8 of network element 8, and port 9 and port 10 of network element 9.
  • the SDN controller learns that the port 7 and port 8 of the network element 7, the port 7 and port 8 of the network element 8, and the port 9 and port 10 of the network element 9 are changed from the enabled state to the closed state, Re-enable the route forwarding between the network element 7, the network element 8, and the network element 9, and send a command message to the network element 7, the network element 8, and the network element 9, respectively, indicating port 7 and port 8 of the network element 7, Port 7 and port 8 of network element 8, port 9 and port 10 of network element 9 re-enable the IGP protocol.
  • the SDN controller stops using the OpenFlow protocol in the network element 7 Port 7 and port 8, port 7 and port 8 of network element 8, port 9 and port 10 of network element 9 implement network functions for route forwarding.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the network function implementation method, the control device and the network element provided by the embodiment of the present invention when the SDN controller learns that a certain port of the network element is enabling the distributed control protocol to implement a certain network function, the centralized control protocol is no longer used in the same network element port. Implementing the same network function avoids the conflict between the centralized control protocol and the distributed control protocol when simultaneously implementing the same network function.

Landscapes

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

Abstract

Disclosed are a network function implementing method, a control device and a network element. The method comprises: when a control connection is established between an SDN controller and the network element, the SDN controller queries the type of a distributed control protocol that the network element can support and enabling states of the distributed control protocol on each port of the network element; and for a port where the distributed control protocol is in an enabled state, the SDN controller shuts down a centralized control protocol on the port which is used for implementing the same network function as the distributed control protocol. In the technical scheme provided by the invention, when the SDN controller acquires that some port of the network element is enabling the distributed control protocol to implement a network function, the SDN controller no longer uses the centralized control protocol to implement the same network function on the same port of the network element, thereby avoiding the situation where conflicts may occur when the centralized control protocol and the distributed control protocol achieve the same network function at the same time.

Description

一种网络功能实现方法及控制装置和网元Network function realization method, control device and network element 技术领域Technical field
本发明实施例涉及但不限于软件定义网络(SDN,Software Defined Network)技术,尤指一种网络功能实现方法及控制装置和网元。The embodiments of the present invention relate to, but are not limited to, Software Defined Network (SDN) technology, and in particular, to a network function implementation method, a control device, and a network element.
背景技术Background technique
开放网络基金会(ONF,Open Networking Foundation)制定的软件定义网络(SDN,Software Defined Network)架构1.0标准描述了SDN的基本组件,图1为相关技术中SDN网络组件架构示意图,如图1所示,SDN采用控制平面与数据平面相分离的架构,SDN的控制平面由SDN控制器来实现,SDN的数据平面由网元来实现,SDN控制器与网元之间通过SDN南向接口相连。SDN控制器通过SDN南向接口向网元下发转发表,从而达到控制数据转发的目的,以实现数据转发和转发控制的分离。The Software Defined Network (SDN) Architecture 1.0 standard developed by the Open Networking Foundation (ONF) describes the basic components of SDN. Figure 1 is a schematic diagram of the SDN network component architecture in the related art, as shown in Figure 1. The SDN adopts an architecture in which the control plane is separated from the data plane. The control plane of the SDN is implemented by the SDN controller, and the data plane of the SDN is implemented by the network element, and the SDN controller and the network element are connected through the SDN southbound interface. The SDN controller sends a forwarding table to the network element through the SDN southbound interface, so as to control the data forwarding, so as to achieve separation of data forwarding and forwarding control.
随着SDN技术的演进以及SDN部署的增多,人们发现,不论是从传统网络演进而来的SDN网络,还是新建的SDN网络,网元除了需要支持网元与SDN控制器之间运行的SDN南向接口控制协议,比如开放流(OpenFlow)协议外,还需要支持网元与网元之间运行的其它传统控制协议,比如双向转发检测(BFD)协议、链路层发现协议(LLDP)和域内路由协议(IGP)等,本文中,将网元与SDN控制器之间运行的SDN南向接口控制协议称为集中式控制协议,网元与网元之间运行的其它传统控制协议称为分布式控制协议。也就是说,网元既要支持集中式控制协议,又要支持分布式控制协议。With the evolution of SDN technology and the increase of SDN deployment, it is found that whether it is an SDN network evolved from a traditional network or a newly built SDN network, the network element needs to support the SDN South running between the network element and the SDN controller. In addition to the interface control protocol, such as the OpenFlow protocol, other traditional control protocols, such as the bidirectional forwarding detection (BFD) protocol, the link layer discovery protocol (LLDP), and the intra-domain, need to be supported between the network element and the network element. Routing Protocol (IGP), etc. In this paper, the SDN southbound interface control protocol running between the network element and the SDN controller is called a centralized control protocol, and other traditional control protocols running between the network element and the network element are called distributions. Control protocol. That is to say, the network element must support both the centralized control protocol and the distributed control protocol.
虽然集中式控制协议也能够实现分布式控制协议所能实现的网络功能,但是集中式控制协议与分布式控制协议在实现相同的网络功能如操作、管理和维护(OAM)功能时会具备不同的性能和实时性,而不同SDN应用场景对于同一网络功能的性能及实时性会有不同的要求。于是,对于很多SDN应用场景来说,网元需要支持分布式控制协议并利用分布式控制协议实现某些网络功能,才能满足这些SDN应用场景对这些网络功能的性能及实时性要求。Although the centralized control protocol can also implement the network functions that the distributed control protocol can implement, the centralized control protocol and the distributed control protocol will have different functions when implementing the same network functions such as operation, management, and maintenance (OAM) functions. Performance and real-time, and different SDN application scenarios have different requirements for the performance and real-time performance of the same network function. Therefore, for many SDN application scenarios, the network element needs to support the distributed control protocol and implement certain network functions by using the distributed control protocol to meet the performance and real-time requirements of these SDN application scenarios for these network functions.
对于同时支持集中式控制协议和分布式控制协议的网元来说,虽然在利 用上述两类控制协议实现相同的网络功能时会有性能及实时性上的区别,但是,利用上述两类控制协议来同时实现相同的网络功能时仍会发生冲突,针对如何避免集中式控制协议和分布式控制协议同时实现相同的网络功能的问题,目前尚未提出有效的解决方案。For network elements that support both centralized control protocols and distributed control protocols, There are performance and real-time differences when implementing the same network functions using the above two types of control protocols. However, conflicts still occur when using the above two types of control protocols to simultaneously implement the same network functions, and how to avoid centralized control protocols. The problem of implementing the same network function at the same time as the distributed control protocol has not yet proposed an effective solution.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种网络功能实现方法及控制装置和网元,能够避免集中式控制协议和分布式控制协议同时实现相同的网络功能时发生冲突的问题。The embodiment of the invention provides a network function implementation method, a control device and a network element, which can avoid the problem that the centralized control protocol and the distributed control protocol conflict when implementing the same network function at the same time.
一方面,本发明实施例提供了一种网络功能实现方法,当软件定义网络SDN控制器与网元之间建立起控制连接时,包括:In one aspect, the embodiment of the present invention provides a network function implementation method. When a software-defined network SDN controller establishes a control connection with a network element, the method includes:
SDN控制器查询网元能够支持的分布式控制协议类型及分布式控制协议在网元各端口上的使能状态;The SDN controller queries the type of the distributed control protocol that the network element can support and the enabled state of the distributed control protocol on each port of the network element;
对于分布式控制协议处于启用状态的端口,SDN控制器关闭所述端口上用于实现与所述分布式控制协议相同网络功能的集中式控制协议。For ports in which the distributed control protocol is enabled, the SDN controller turns off the centralized control protocol on the port for implementing the same network functions as the distributed control protocol.
可选地,该方法还包括:对于所述网元未启用分布式控制协议实现网络功能的端口,利用集中式控制协议实现所述网络功能。Optionally, the method further includes: implementing the network function by using a centralized control protocol for a port in which the network element does not enable a distributed control protocol to implement a network function.
可选地,所述SDN控制器查询网元能够支持的分布式控制协议类型及分布式控制协议在网元各端口上的使能状态包括:Optionally, the SDN controller queries the type of the distributed control protocol that the network element can support and the enabled state of the distributed control protocol on each port of the network element, including:
所述SDN控制器向网元发送查询消息,查询消息用于查询网元能够支持的分布式控制协议类型以及分布式控制协议在网元各端口上的使能状态;The SDN controller sends a query message to the network element, where the query message is used to query the type of the distributed control protocol that the network element can support and the enable state of the distributed control protocol on each port of the network element;
接收来自所述网元返回的响应消息,响应消息携带网元能够支持的分布式控制协议类型,以及分布式控制协议在所述网元各端口上的使能状态。Receiving a response message from the network element, the response message carries a distributed control protocol type that the network element can support, and an enabled state of the distributed control protocol on each port of the network element.
可选地,所述查询消息为OpenFlow协议中定义的网元功能查询OFPT_FEATURES_REQUEST消息;Optionally, the query message is an OFPT_FEATURES_REQUEST message for the network element function defined in the OpenFlow protocol;
所述响应消息为扩展的网元功能响应OFPT_FEATURES_REPLY消息。 The response message is an extended network element function response OFPT_FEATURES_REPLY message.
可选地,该方法还包括:所述网元将能够支持的分布式控制协议类型和/或分布式控制协议在网元各端口上的使能状态发生变化信息通过通告消息通告给所述SDN控制器。Optionally, the method further includes: the network element notifying the SDN of the enabled control state of the distributed control protocol type and/or the distributed control protocol on the port of the network element by using an advertisement message Controller.
可选地,所述通告消息为扩展的OpenFlow异步消息。Optionally, the advertisement message is an extended OpenFlow asynchronous message.
可选地,该方法还包括:所述SDN控制器向网元发送命令消息,所述命令消息用以指示所述网元启用或关闭网元所支持的一种或一种以上分布式控制协议在所述网元各端口上的运行。Optionally, the method further includes: the SDN controller sends a command message to the network element, where the command message is used to instruct the network element to enable or disable one or more distributed control protocols supported by the network element. Running on each port of the network element.
可选地,所述命令消息为扩展的网元配置OFPT_SET_CONFIG消息或者扩展的网元端口修改OFPT_PORT_MOD消息。Optionally, the command message configures an OFPT_SET_CONFIG message for the extended network element or an extended network element port modification OFPT_PORT_MOD message.
可选地,所述扩展携带的分布式协议信息采用类型-长度-赋值TLV的封装格式;Optionally, the distributed protocol information carried by the extension adopts a package format of a type-length-assignment TLV;
其中,TLV的类型Type字段表示该TLV携带有分布式协议信息;The Type field of the TLV indicates that the TLV carries distributed protocol information.
长度Length字段表示所有n个分布式协议元组的总长度;The Length field indicates the total length of all n distributed protocol tuples;
赋值Value字段由n个分布式协议元组组成,每个分布式协议元组又包含三个字段:分布式协议类型、端口号和使能状态。The Assign Value field consists of n distributed protocol tuples, each of which contains three more fields: the distributed protocol type, the port number, and the enabled state.
另一方面,本发明实施例又提供了一种控制装置,包括查询模块,控制模块;其中,In another aspect, the embodiment of the present invention further provides a control device, including a query module and a control module, where
查询模块,设置为在与网元之间建立起控制连接时,查询网元能够支持的分布式控制协议类型及分布式控制协议在网元各端口上的使能状态;The query module is configured to query the type of the distributed control protocol that the network element can support and the enable state of the distributed control protocol on each port of the network element when establishing a control connection with the network element;
控制模块,设置为对于分布式控制协议处于启用状态的端口,关闭所述端口上用于实现与所述分布式控制协议相同网络功能的集中式控制协议。The control module is configured to close the port on the port for enabling the same network function as the distributed control protocol for the port in which the distributed control protocol is enabled.
可选地,所述控制模块还设置为:对于分布式控制协议处于未启用状态的端口,利用集中式控制协议实现该网络功能。Optionally, the control module is further configured to implement the network function by using a centralized control protocol for a port in which the distributed control protocol is not enabled.
可选地,还包括:第一处理模块,设置为接收来自所述网元的网元能够支持的分布式控制协议类型和/或分布式控制协议在网元各端口上的使能状态发生变化的变化信息,并输出给控制模块。Optionally, the method further includes: a first processing module, configured to receive a distributed control protocol type and/or a distributed control protocol supported by the network element from the network element, and the enabling state of each port of the network element changes The change information is output to the control module.
可选地,所述控制模块还设置为:向所述网元发送命令消息,所述命令 消息用以指示网元启用或关闭网元所支持的一种或一种以上分布式控制协议在所述网元各端口上的运行。Optionally, the control module is further configured to: send a command message to the network element, where the command The message is used to instruct the network element to enable or disable the operation of one or more distributed control protocols supported by the network element on each port of the network element.
再一方面,本发明实施例再提供了一种网元,包括:In another aspect, the embodiment of the present invention further provides a network element, including:
接口模块,设置为接收来自控制装置的查询消息,根据查询消息向第二处理模块发送需要查询的网元能够支持哪些分布式控制协议以及各种分布式控制协议在网元各端口上的使能状态的查询通知;The interface module is configured to receive the query message from the control device, and send, to the second processing module, which distributed control protocol and the various distributed control protocols are enabled on the ports of the network element according to the query message. Status notification notification;
第二处理模块,设置为接收到查询通知,根据查询通知向控制装置返回响应消息,响应消息携带需要查询的网元能够支持的分布式控制协议类型,以及分布式控制协议在网元各端口上的使能状态。The second processing module is configured to receive the query notification, and return a response message to the control device according to the query notification, where the response message carries the distributed control protocol type that the network element that needs to be queried can support, and the distributed control protocol is on each port of the network element. The enabled state.
可选地,所述第二处理模块还设置为,将自身所属网元能够支持的分布式控制协议类型和/或分布式控制协议在网元各端口上的使能状态发生变化的变化信息通告给所述控制装置。Optionally, the second processing module is further configured to: notify, by using a distributed control protocol type that the network element to which the network element belongs, and/or a change information of the distributed control protocol to change the enabled state of each port of the network element. Give the control device.
可选地,所述接口模块还设置为:接收来自所述控制装置的命令消息,根据命令消息向所述第二处理模块发送命令通知;Optionally, the interface module is further configured to: receive a command message from the control device, and send a command notification to the second processing module according to the command message;
所述第二处理模块还设置为:接收命令通知,根据命令通知启用或关闭自身所属网元所支持的一种或一种以上分布式控制协议在网元各端口上的运行。The second processing module is further configured to: receive a command notification, and enable or disable the operation of one or more distributed control protocols supported by the network element to which the network element belongs to each port of the network element according to the command notification.
又一方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的网络功能实现方法。In another aspect, an embodiment of the present invention further provides a computer readable storage medium, where the computer storable medium stores computer executable instructions, where the computer executable instructions are used to perform network function implementation of any of the foregoing method.
与现有技术相比,本申请技术方案包括:当SDN控制器与网元之间建立起控制连接时,SDN控制器查询网元能够支持的分布式控制协议类型及分布式控制协议在网元各端口上的使能状态;对于分布式控制协议处于启用状态的端口,SDN控制器关闭所述端口上用于实现与所述分布式控制协议相同网络功能的集中式控制协议。本发明实施例提供的技术方案中,当SDN控制器获知网元某端口正在启用分布式控制协议实现某网络功能后,不再利用集中式控制协议在相同网元端口上实现相同的网络功能,避免了集中式控制协议和分布式控制协议同时实现相同的网络功能时发生冲突的问题。 Compared with the prior art, the technical solution of the present application includes: when a control connection is established between the SDN controller and the network element, the SDN controller queries the distributed control protocol type and the distributed control protocol that the network element can support in the network element. An enabled state on each port; for a port in which the distributed control protocol is enabled, the SDN controller turns off the centralized control protocol on the port for implementing the same network functions as the distributed control protocol. In the technical solution provided by the embodiment of the present invention, after the SDN controller learns that a certain port of the network element is enabling the distributed control protocol to implement a certain network function, the WLAN controller does not use the centralized control protocol to implement the same network function on the same network element port. The problem of conflicts between the centralized control protocol and the distributed control protocol while implementing the same network function is avoided.
本发明实施例的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the embodiments of the invention will be set forth in the description in the description which The objectives and other advantages of the invention may be realized and obtained by means of the structure particularly pointed in the appended claims.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1为相关技术中SDN网络组件架构示意图;1 is a schematic diagram of a SDN network component architecture in the related art;
图2为本发明实施例中网络功能实现方法的流程图;2 is a flowchart of a method for implementing a network function according to an embodiment of the present invention;
图3为本发明实施例中消息扩展TLV的格式示意图;3 is a schematic diagram of a format of a message extension TLV according to an embodiment of the present invention;
图4为本发明实施例中控制装置的组成结构示意图;4 is a schematic structural diagram of a control device according to an embodiment of the present invention;
图5为本发明实施例中网元的组成结构示意图;FIG. 5 is a schematic structural diagram of a network element in an embodiment of the present invention;
图6为本发明实施例中SDN控制器控制LLDP协议的第一实施例的示意图;6 is a schematic diagram of a first embodiment of an SDN controller controlling an LLDP protocol according to an embodiment of the present invention;
图7为本发明实施例中SDN控制器控制BFD协议的第二实施例的示意图;FIG. 7 is a schematic diagram of a second embodiment of an SDN controller controlling a BFD protocol according to an embodiment of the present invention; FIG.
图8为本发明实施例中SDN控制器同时控制LLDP协议和BFD协议的第三实施例的示意图;FIG. 8 is a schematic diagram of a third embodiment of an SDN controller simultaneously controlling an LLDP protocol and a BFD protocol according to an embodiment of the present invention;
图9为本发明实施例中SDN控制器控制IGP协议的第四实施例的示意图。FIG. 9 is a schematic diagram of a fourth embodiment of an SDN controller controlling an IGP protocol according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
图2为本发明实施例中网络功能实现方法的流程图,当SDN控制器与网 元之间建立起控制连接时,如图2所示,包括:2 is a flowchart of a method for implementing a network function according to an embodiment of the present invention, when an SDN controller and a network When a control connection is established between the elements, as shown in Figure 2, it includes:
步骤200:SDN控制器查询网元能够支持的分布式控制协议类型及分布式控制协议在网元各端口上的使能状态。Step 200: The SDN controller queries the type of the distributed control protocol that the network element can support and the enabled state of the distributed control protocol on each port of the network element.
SDN控制器与网元之间一旦建立起控制连接,SDN控制器随即向网元发送查询消息,以查询网元能够支持哪些分布式控制协议以及各种分布式控制协议在网元各端口上的使能状态;而网元在收到来自SDN控制器的查询消息后返回响应消息,以向SDN控制器上报网元自身所支持的各种分布式控制协议类型,以及各种分布式控制协议在网元各端口上的使能状态。Once the control connection is established between the SDN controller and the network element, the SDN controller sends a query message to the network element to query which distributed control protocols the network element can support and various distributed control protocols on the ports of the network element. After the network element receives the query message from the SDN controller, it returns a response message to report to the SDN controller various types of distributed control protocols supported by the network element itself, and various distributed control protocols. Enable status on each port of the NE.
可选地,本步骤还包括:网元通过对各种分布式控制协议进行统一的编码,比如:给分布式控制协议如LLDP分配码字1,给分布式控制协议如BFD分配码字2等,只要使得每种分布式控制协议都有该分布式控制协议唯一对应的码字即可。Optionally, the step further includes: the network element uniformly coding the distributed control protocols, for example, assigning codewords 1 to a distributed control protocol, such as LLDP, and assigning codewords 2 to a distributed control protocol, such as BFD. As long as each distributed control protocol has a unique codeword corresponding to the distributed control protocol.
各种分布式控制协议在网元各端口上的两种使能状态包括启用(Enabled)状态和关闭(Disabled)状态。The two enabled states of the various distributed control protocols on each port of the network element include an Enabled state and a Disabled state.
网元在向SDN控制器发送的响应消息中携带网元所支持的各种分布式控制协议对应的码字,以及这些码字与端口号、使能状态的对应关系,以实现对网元所支持的各种分布式控制协议类型以及各种分布式控制协议在网元各端口上的使能状态的上报。The response message sent by the network element to the SDN controller carries the codewords corresponding to the various distributed control protocols supported by the network element, and the correspondence between the codewords and the port number and the enabled state, so as to implement the network element The types of distributed control protocols supported and the status of enabling the various distributed control protocols on the ports of the NEs are reported.
其中,among them,
SDN控制器向网元发送的查询消息可以使用OpenFlow协议中定义的网元功能查询(OFPT_FEATURES_REQUEST)消息;网元向SDN控制器回复的响应消息可以通过OpenFlow协议中定义的网元功能响应(OFPT_FEATURES_REPLY)消息扩展得到,扩展携带的分布式协议信息可采用类型-长度-赋值(TLV,Type-Length-Value)的封装格式,图3为本发明实施例中消息扩展TLV的格式示意图,如图3所示,TLV的Type字段表示该TLV携带了分布式协议信息;Length字段表示所有n个分布式协议元组的总长度;Value字段由n个分布式协议元组组成,每个分布式协议元组又包含三个字段:分布式协议类型如码字、端口号和使能状态。The query message sent by the SDN controller to the network element may use the network element function query (OFPT_FEATURES_REQUEST) message defined in the OpenFlow protocol; the response message sent by the network element to the SDN controller may be responded by the network element function defined in the OpenFlow protocol (OFPT_FEATURES_REPLY) The message extension is obtained, and the extended protocol information of the extension can be encapsulated in a Type-Length-Value (TLV) format. FIG. 3 is a schematic diagram of a format of a message extension TLV according to an embodiment of the present invention. The Type field of the TLV indicates that the TLV carries distributed protocol information; the Length field indicates the total length of all n distributed protocol tuples; the Value field consists of n distributed protocol tuples, each distributed protocol tuple It also contains three fields: distributed protocol types such as codeword, port number, and enable status.
其中,OpenFlow提供了一个开放的协议,能在不同的交换机和路由器上 对流表进行编程。Among them, OpenFlow provides an open protocol that can be used on different switches and routers. Program the flow table.
步骤201:对于分布式控制协议处于启用状态的端口,SDN控制器关闭所述端口上用于实现与所述分布式控制协议相同网络功能的集中式控制协议。Step 201: For a port in which the distributed control protocol is enabled, the SDN controller closes the centralized control protocol on the port for implementing the same network function as the distributed control protocol.
可选地,对于网元未启用分布式控制协议实现网络功能的端口,仍然可以利用集中式控制协议实现该网络功能。Optionally, for a port in which the network element does not enable the distributed control protocol to implement the network function, the network function can still be implemented by using a centralized control protocol.
本发明实施例提供的技术方案中,当SDN控制器获知网元某端口正在启用分布式控制协议实现某网络功能后,不再利用集中式控制协议在相同网元端口上实现相同的网络功能,避免了集中式控制协议和分布式控制协议同时实现相同的网络功能时发生冲突的问题。In the technical solution provided by the embodiment of the present invention, after the SDN controller learns that a certain port of the network element is enabling the distributed control protocol to implement a certain network function, the WLAN controller does not use the centralized control protocol to implement the same network function on the same network element port. The problem of conflicts between the centralized control protocol and the distributed control protocol while implementing the same network function is avoided.
可选地,Optionally,
由于SDN网络中的网元可能同时受到多个SDN控制器的控制,而且除了受到SDN控制器的控制,网元还可能受到网管和/或网元配置点的管理,所以在网络运行过程中,网元所支持的分布式控制协议类型和/或各种分布式控制协议在网元各端口上的使能状态可能会发生SDN控制器事先不知情的变化,当网元所支持的分布式控制协议类型和/或各种分布式控制协议在网元各端口上的使能状态发生变化时,本发明实施例还包括:Since the network element in the SDN network may be controlled by multiple SDN controllers at the same time, and in addition to being controlled by the SDN controller, the network element may also be managed by the network management system and/or the network element configuration point, so during the network operation, The distributed control protocol type supported by the network element and/or the enabling status of various distributed control protocols on each port of the network element may occur without prior knowledge of the SDN controller. When the network element supports distributed control When the type of the protocol and/or the various distributed control protocols are changed on the ports of the network element, the embodiment of the present invention further includes:
网元将能够支持的分布式控制协议类型和/或分布式控制协议在网元各端口上的使能状态发生变化信息通过通告消息通告给SDN控制器。The information about the type of the distributed control protocol that the network element can support and/or the change status of the enabled state of the distributed control protocol on each port of the network element is advertised to the SDN controller through an advertisement message.
这样,对于网元正在启用分布式控制协议实现网络功能的端口,SDN控制器关闭了该端口上利用集中式控制协议实现相同的网络功能,对于网元未启用分布式控制协议实现网络功能的端口,仍然利用集中式控制协议实现该网络功能。In this way, for the port where the network element is enabling the distributed control protocol to implement the network function, the SDN controller closes the port that uses the centralized control protocol to implement the same network function, and the port for which the network element is not enabled with the distributed control protocol to implement the network function. The network function is still implemented using a centralized control protocol.
其中,通告消息可以使用扩展的OpenFlow异步消息,即扩展的分布式协议状态通告消息,在扩展的分布式协议状态通告消息中也携带如图3所示的采用如TLV封装格式的分布式协议信息。The advertisement message may use the extended OpenFlow asynchronous message, that is, the extended distributed protocol state advertisement message, and the extended distributed protocol state advertisement message also carries the distributed protocol information in the TLV encapsulation format as shown in FIG. .
可选地,Optionally,
在SDN控制器实时掌握网元所支持的各种分布式控制协议类型,以及各 种分布式控制协议在网元各端口上的使能状态的基础上,该方法还包括:The SDN controller knows in real time the various types of distributed control protocols supported by the network element, and each Based on the enabled state of the distributed control protocol on each port of the network element, the method further includes:
SDN控制器向网元发送命令消息,以指示网元启用或关闭网元所支持的一种或一种以上分布式控制协议在网元各端口上的运行。也就是说,SDN控制器可以根据需要随时修改网元所支持的各种分布式控制协议在网元各端口上的使能状态。The SDN controller sends a command message to the network element to instruct the network element to enable or disable the operation of one or more distributed control protocols supported by the network element on each port of the network element. That is to say, the SDN controller can modify the enabling state of each distributed control protocol supported by the network element on each port of the network element as needed.
其中,命令消息可以通过OpenFlow协议中定义的网元配置(OFPT_SET_CONFIG)消息扩展得到,在扩展的OFPT_SET_CONFIG消息中也携带如图3所示的采用如TLV封装格式的分布式协议信息。命令消息也可以通过OpenFlow协议中定义的网元端口修改(OFPT_PORT_MOD)消息扩展得到,扩展的OFPT_PORT_MOD消息中携带有分布式协议类型字段和使能状态字段。The command message can be obtained by using the network element configuration (OFPT_SET_CONFIG) message defined in the OpenFlow protocol. The extended OFPT_SET_CONFIG message also carries the distributed protocol information in the TLV encapsulation format as shown in FIG. 3. The command message can also be obtained by using a network element port modification (OFPT_PORT_MOD) message extension defined in the OpenFlow protocol. The extended OFPT_PORT_MOD message carries a distributed protocol type field and an enable status field.
图4为本发明实施例中控制装置的组成结构示意图,如图4所示,至少包括查询模块,控制模块;其中,4 is a schematic structural diagram of a control device according to an embodiment of the present invention. As shown in FIG. 4, at least a query module and a control module are included;
查询模块,设置为在与网元之间建立起控制连接时,查询网元能够支持的分布式控制协议类型及分布式控制协议在网元各端口上的使能状态;The query module is configured to query the type of the distributed control protocol that the network element can support and the enable state of the distributed control protocol on each port of the network element when establishing a control connection with the network element;
控制模块,设置为对于分布式控制协议处于启用状态的端口,关闭所述端口上用于实现与所述分布式控制协议相同网络功能的集中式控制协议。The control module is configured to close the port on the port for enabling the same network function as the distributed control protocol for the port in which the distributed control protocol is enabled.
具体地,specifically,
查询模块具体设置为:在与网元之间建立起控制连接时,向网元发送查询消息,以查询网元能够支持哪些分布式控制协议以及各种分布式控制协议在网元各端口上的使能状态;接收来自网元返回携带网元自身所支持的各种分布式控制协议类型,以及各种分布式控制协议在网元各端口上的使能状态的响应消息。The query module is specifically configured to: when establishing a control connection with the network element, send a query message to the network element to query which distributed control protocols the network element can support and various distributed control protocols on the ports of the network element. The status of the enable state is received from the network element to return various types of distributed control protocols supported by the network element and the response status of the various distributed control protocols on the ports of the network element.
控制模块还设置为:对于分布式控制协议处于未启用状态的端口,仍然利用集中式控制协议实现该网络功能。The control module is also configured to implement the network function using a centralized control protocol for ports where the distributed control protocol is not enabled.
本发明实施例控制装置还包括:第一处理模块,设置为接收来自网元的网元能够支持的分布式控制协议类型和/或分布式控制协议在网元各端口上的使能状态发生变化的变化信息,并输出给控制模块。 The control device of the embodiment of the present invention further includes: a first processing module, configured to receive a distributed control protocol type and/or a distributed control protocol supported by the network element from the network element, and the enabling state of each port of the network element changes The change information is output to the control module.
可选地,控制模块还设置为:向网元发送命令消息,以指示网元修改如启用或关闭网元所支持的一种或一种以上分布式控制协议在网元各端口上的运行。Optionally, the control module is further configured to: send a command message to the network element, to indicate that the network element modifies, for example, enabling or disabling the running of one or more distributed control protocols supported by the network element on each port of the network element.
图5为本发明实施例中网元的组成结构示意图,至少包括接口模块,第二处理模块;其中,FIG. 5 is a schematic structural diagram of a network element in an embodiment of the present invention, including at least an interface module and a second processing module;
接口模块,设置为接收来自控制装置的查询消息,根据查询消息向第二处理模块发送需要查询的网元能够支持哪些分布式控制协议以及各种分布式控制协议在网元各端口上的使能状态的查询通知;The interface module is configured to receive the query message from the control device, and send, to the second processing module, which distributed control protocol and the various distributed control protocols are enabled on the ports of the network element according to the query message. Status notification notification;
第二处理模块,设置为接收到查询通知,根据查询通知向控制装置返回响应消息,响应消息携带需要查询的网元能够支持的分布式控制协议类型,以及分布式控制协议在网元各端口上的使能状态。The second processing module is configured to receive the query notification, and return a response message to the control device according to the query notification, where the response message carries the distributed control protocol type that the network element that needs to be queried can support, and the distributed control protocol is on each port of the network element. The enabled state.
可选地,Optionally,
第二处理模块还设置为,将自身所属网元能够支持的分布式控制协议类型和/或分布式控制协议在网元各端口上的使能状态发生变化的变化信息通告给控制装置。The second processing module is further configured to notify the control device of the change information of the distributed control protocol type and/or the distributed control protocol supported by the network element to which the network element belongs to the network element.
可选地,Optionally,
接口模块还设置为:接收来自控制装置的命令消息,根据命令消息向第二处理模块发送命令通知;The interface module is further configured to: receive a command message from the control device, and send a command notification to the second processing module according to the command message;
第二处理模块还设置为:接收到命令通知,根据命令通知启用或关闭自身所属网元所支持的一种或一种以上分布式控制协议在网元各端口上的运行。The second processing module is further configured to: receive a command notification, and enable or disable the operation of one or more distributed control protocols supported by the network element to which the network element belongs to each port of the network element according to the command notification.
下面结合具体实施例对本发明技术方案进行详细描述。The technical solutions of the present invention are described in detail below in conjunction with specific embodiments.
图6为本发明实施例中SDN控制器控制LLDP协议的第一实施例的示意图,如图6所示,在第一实施例中,假设SDN控制器与网元之间运行OpenFlow集中式控制协议,网元1与网元2之间运行LLDP分布式控制协议。在第一实施例中,SDN控制器通过扩展的OpenFlow协议对网元所支持的LLDP协议进行控制,包括:FIG. 6 is a schematic diagram of a first embodiment of an SDN controller controlling an LLDP protocol according to an embodiment of the present invention. As shown in FIG. 6, in the first embodiment, an OpenFlow centralized control protocol is assumed between an SDN controller and a network element. The LLDP distributed control protocol is run between the network element 1 and the network element 2. In the first embodiment, the SDN controller controls the LLDP protocol supported by the network element by using the extended OpenFlow protocol, including:
SDN控制器通过发送查询消息获知:网元1和网元2都支持LLDP协议, 且LLDP协议在网元1的端口1和网元2的端口2上都处于启用状态。具体包括:The SDN controller learns by sending an inquiry message that both the network element 1 and the network element 2 support the LLDP protocol. The LLDP protocol is enabled on port 1 of network element 1 and port 2 of network element 2. Specifically include:
SDN控制器与网元1之间一旦建立起控制连接,SDN控制器随即向网元1发送查询消息,以查询网元1能够支持哪些分布式控制协议以及各种分布式控制协议在网元1各端口上的使能状态;网元1在收到SDN控制器发送的查询消息后返回响应消息,向SDN控制器上报网元1自身支持LLDP协议,以及LLDP协议在网元1各端口上的使能状态。同样地,SDN控制器与网元2之间一旦建立起控制连接,SDN控制器随即向网元2发送查询消息,以查询网元2能够支持哪些分布式控制协议以及各种分布式控制协议在网元2各端口上的使能状态;网元2在收到SDN控制器发送的查询消息后返回响应消息,向SDN控制器上报网元2自身支持LLDP协议,以及LLDP协议在网元2各端口上的使能状态。其中,Once the control connection is established between the SDN controller and the network element 1, the SDN controller sends a query message to the network element 1 to query which distributed control protocols the network element 1 can support and various distributed control protocols in the network element 1 The enable state on each port; after receiving the query message sent by the SDN controller, the network element 1 returns a response message, and reports to the SDN controller that the network element 1 itself supports the LLDP protocol, and the LLDP protocol is on each port of the network element 1. Enable status. Similarly, once the control connection is established between the SDN controller and the network element 2, the SDN controller sends a query message to the network element 2 to query which distributed control protocols and various distributed control protocols the network element 2 can support. The enabling state of each port of the network element 2; the network element 2 returns a response message after receiving the query message sent by the SDN controller, reporting to the SDN controller that the network element 2 itself supports the LLDP protocol, and the LLDP protocol is in the network element 2 The enabled state on the port. among them,
SDN控制器向网元1和网元2发送的查询消息可以使用OpenFlow协议中定义的OFPT_FEATURES_REQUEST查询消息,网元1和网元2向SDN控制器回复的响应消息可以通过OpenFlow协议中定义的OFPT_FEATURES_REPLY响应消息扩展得到,扩展携带的分布式协议信息可采用类型-长度-赋值(TLV,Type-Length-Value)的封装格式,如图3所示,TLV的Type类型字段表示该TLV携带了分布式协议信息;Length长度字段表示所有n个分布式协议元组的总长度;Value赋值字段由n个分布式协议元组组成,每个分布式协议元组又包含三个字段:分布式协议类型如码字、端口号和使能状态。The query message sent by the SDN controller to the network element 1 and the network element 2 may use the OFPT_FEATURES_REQUEST query message defined in the OpenFlow protocol, and the response message replied by the network element 1 and the network element 2 to the SDN controller may be responded by the OFPT_FEATURES_REPLY defined in the OpenFlow protocol. The message extension is obtained, and the distributed protocol information carried by the extension can be in the encapsulation format of the Type-Length-Value (TLV). As shown in FIG. 3, the Type field of the TLV indicates that the TLV carries the distributed protocol. Information; the Length field indicates the total length of all n distributed protocol tuples; the Value assignment field consists of n distributed protocol tuples, each of which contains three fields: a distributed protocol type such as a code Word, port number, and enable status.
第一实施例中,假设网元1的端口1和网元2的端口2都启用了LLDP协议,使得网元1和网元2可以利用LLDP协议实现相互发现的网络功能。这样,SDN控制器在获知网元1的端口1和网元2的端口2正在启用LLDP协议实现相互发现的网络功能后,不再利用OpenFlow协议在网元1的端口1和网元2的端口2上实现相互发现的网络功能,以免网元1的端口1同时收到两种相互冲突的LLDP报文:网元2的端口2由于启用LLDP协议后发送的LLDP报文以及SDN控制器通过OpenFlow协议指示网元2的端口2发送的LLDP报文,造成网元1的端口1上LLDP协议状态机的混乱。In the first embodiment, it is assumed that both the port 1 of the network element 1 and the port 2 of the network element 2 are enabled with the LLDP protocol, so that the network element 1 and the network element 2 can implement the network function of mutual discovery by using the LLDP protocol. In this way, after learning that the port 1 of the network element 1 and the port 2 of the network element 2 are enabling the LLDP protocol to implement the mutual discovery network function, the SDN controller does not use the OpenFlow protocol on the port 1 of the network element 1 and the port of the network element 2 The network function of the mutual discovery is implemented on the network 1 so that the port 1 of the network element 1 receives two types of conflicting LLDP packets at the same time: the port 2 of the network element 2 transmits LLDP packets and the SDN controller passes the OpenFlow. The protocol indicates that the LLDP packet sent by the port 2 of the network element 2 causes the LLDP protocol state machine on the port 1 of the network element 1 to be confused.
在第一实施例中,假设独立于SDN控制器的网管分别将网元1的端口1 和网元2的端口2上的LLDP协议使能状态从启用修改为关闭,那么,还包括:网元1和网元2分别通过向SDN控制器发送通告消息的方式上报上述变化。其中,网元1和网元2向SDN控制器发送的通告消息可以使用扩展的OpenFlow异步消息,即扩展的分布式协议状态通告消息,在扩展的分布式协议状态通告消息中也携带如图3所示的采用如TLV封装格式的分布式协议信息;In the first embodiment, it is assumed that the network management system independent of the SDN controller respectively connects the port 1 of the network element 1 And the LLDP protocol enable state on the port 2 of the network element 2 is changed from the enable to the off, and the network element 1 and the network element 2 respectively report the change by sending an advertisement message to the SDN controller. The advertisement message sent by the network element 1 and the network element 2 to the SDN controller may use an extended OpenFlow asynchronous message, that is, an extended distributed protocol state advertisement message, and is also carried in the extended distributed protocol state advertisement message. The illustrated distributed protocol information is used in a TLV encapsulation format;
这样,SDN控制器在获知网元1的端口1和网元2的端口2不再启用LLDP协议实现相互发现的网络功能后,开始利用OpenFlow协议在网元1的端口1和网元2的端口2上实现相互发现的网络功能。In this way, after the SDN controller learns that the port 1 of the network element 1 and the port 2 of the network element 2 are no longer enabled with the LLDP protocol to implement the mutual discovery network function, the SDN controller starts to use the OpenFlow protocol on the port 1 of the network element 1 and the port of the network element 2. 2 Implement network functions for mutual discovery.
根据OpenFlow协议的规定,SDN控制器通过向网元1发送包含LLDP报文和发送端口号的Packet_out消息,指示网元1从端口1向外发送LLDP报文,而网元2会将收到的LLDP报文和接收端口号通过Packet_in消息发送给SDN控制器;同理,SDN控制器通过向网元2发送包含LLDP报文和发送端口号的Packet_out消息,指示网元2从端口2向外发送LLDP报文,而网元1会将收到的LLDP报文和接收端口号通过Packet_in消息发送给SDN控制器。这样,SDN控制器就可以利用OpenFlow协议在网元1的端口1和网元2的端口2上实现相互发现的网络功能。According to the provisions of the OpenFlow protocol, the SDN controller sends a Packet_out message containing the LLDP packet and the sending port number to the network element 1, instructing the network element 1 to send the LLDP packet from the port 1, and the network element 2 will receive the received packet. The LLDP packet and the receiving port number are sent to the SDN controller through the Packet_in message. Similarly, the SDN controller sends the Packet_out message containing the LLDP packet and the sending port number to the network element 2, indicating that the network element 2 is sent out from the port 2. LLDP packet, and the network element 1 sends the received LLDP packet and the receiving port number to the SDN controller through the Packet_in message. In this way, the SDN controller can implement the mutual discovery network function on the port 1 of the network element 1 and the port 2 of the network element 2 by using the OpenFlow protocol.
可选地,在第一实施例中,SDN控制器还可以通过向网元1和网元2分别发送命令消息的方式指示网元1的端口1和网元2的端口2启用LLDP协议。与此同时,SDN控制器停止利用OpenFlow协议在网元1的端口1和网元2的端口2上实现相互发现的网络功能。其中,Optionally, in the first embodiment, the SDN controller may also instruct the port 1 of the network element 1 and the port 2 of the network element 2 to enable the LLDP protocol by sending a command message to the network element 1 and the network element 2, respectively. At the same time, the SDN controller stops using the OpenFlow protocol to implement mutual discovery network functions on port 1 of network element 1 and port 2 of network element 2. among them,
SDN控制器向网元1和网元2发送的命令消息可以通过OpenFlow协议中定义的OFPT_SET_CONFIG消息扩展得到,在扩展的OFPT_SET_CONFIG消息中也携带如图3所示的采用如TLV封装格式的分布式协议信息;SDN控制器向网元1和网元2发送的命令消息也可以通过OpenFlow协议中定义的OFPT_PORT_MOD消息扩展得到,扩展的OFPT_PORT_MOD消息中携带有分布式协议类型字段和使能状态字段;The command message sent by the SDN controller to the network element 1 and the network element 2 can be obtained by using the OFPT_SET_CONFIG message defined in the OpenFlow protocol. The extended OFPT_SET_CONFIG message also carries the distributed protocol as shown in FIG. The command message sent by the SDN controller to the network element 1 and the network element 2 can also be extended by the OFPT_PORT_MOD message defined in the OpenFlow protocol. The extended OFPT_PORT_MOD message carries a distributed protocol type field and an enable status field.
这样,SDN控制器在获知网元1的端口1和网元2的端口2上的LLDP协议从启用状态变为关闭状态后,为了重新使能网元1和网元2之间的自动 相互发现,可以向网元1和网元2分别发送命令消息,分别指示网元1的端口1和网元2的端口2重新启用LLDP协议。与此同时,为了避免利用LLDP协议和利用OpenFlow协议同时实现网元1与网元2之间相互发现的网络功能所带来的冲突,SDN控制器停止利用OpenFlow协议在网元1的端口1和网元2的端口2上实现相互发现的网络功能。In this way, after the LLDP protocol on the port 1 of the network element 1 and the port 2 of the network element 2 is changed from the enabled state to the closed state, the SDN controller re-enables the automatic between the network element 1 and the network element 2. The mutual discovery can send a command message to the network element 1 and the network element 2, respectively, indicating that the port 1 of the network element 1 and the port 2 of the network element 2 re-enable the LLDP protocol. At the same time, in order to avoid conflicts caused by the LLDP protocol and the network function that is mutually discovered between the network element 1 and the network element 2 by using the OpenFlow protocol, the SDN controller stops using the OpenFlow protocol on port 1 of the network element 1 and The network function of mutual discovery is implemented on port 2 of network element 2.
图7为本发明实施例中SDN控制器控制BFD协议的第二实施例的示意图,如图7所示,在第二实施例中,假设SDN控制器与网元之间运行OpenFlow集中式控制协议,网元3与网元4之间运行BFD分布式控制协议。在第一实施例中,SDN控制器通过扩展的OpenFlow协议对网元所支持的BFD协议进行控制,包括:FIG. 7 is a schematic diagram of a second embodiment of an SDN controller controlling a BFD protocol according to an embodiment of the present invention. As shown in FIG. 7, in the second embodiment, an OpenFlow centralized control protocol is assumed between an SDN controller and a network element. The BFD distributed control protocol is run between the network element 3 and the network element 4. In the first embodiment, the SDN controller controls the BFD protocol supported by the network element by using the extended OpenFlow protocol, including:
SDN控制器通过发送查询消息获知,网元3支持BFD协议且BFD协议在网元3的端口3上处于关闭状态,网元4不支持BFD协议。具体包括:The SDN controller knows that the network element 3 supports the BFD protocol and the BFD protocol is in the closed state on port 3 of the network element 3, and the network element 4 does not support the BFD protocol. Specifically include:
SDN控制器与网元3之间一旦建立起控制连接,SDN控制器随即向网元3发送查询消息,以查询网元3能够支持哪些分布式控制协议以及各种分布式控制协议在网元3各端口上的使能状态;网元3在收到SDN控制器发送的查询消息后返回响应消息,向SDN控制器上报网元3支持BFD协议,以及BFD协议在网元3各端口上的使能状态。同样地,SDN控制器与网元4之间一旦建立起控制连接,SDN控制器随即向网元4发送查询消息,以查询网元4能够支持哪些分布式控制协议以及各种分布式控制协议在网元4各端口上的使能状态;网元4在收到SDN控制器发送的查询消息后返回响应消息,向SDN控制器上报网元4支持的分布式控制协议,其中没有BFD协议,也即网元4不支持BFD协议。也就是说,在网元3的端口3上关闭了BFD协议,网元4不支持BFD协议,使得网元3和网元4无法利用BFD协议实现链路状态实时监控的网络功能。Once the control connection is established between the SDN controller and the network element 3, the SDN controller sends an inquiry message to the network element 3 to query which distributed control protocols the network element 3 can support and various distributed control protocols in the network element 3. The enable state of each port; the network element 3 returns a response message after receiving the query message sent by the SDN controller, and reports to the SDN controller that the network element 3 supports the BFD protocol, and the BFD protocol is enabled on each port of the network element 3. Can state. Similarly, once the control connection is established between the SDN controller and the network element 4, the SDN controller sends an inquiry message to the network element 4 to query which distributed control protocols and various distributed control protocols the network element 4 can support. The enabling state of each port of the network element 4; after receiving the query message sent by the SDN controller, the network element 4 returns a response message, and reports to the SDN controller the distributed control protocol supported by the network element 4, wherein there is no BFD protocol. That is, the network element 4 does not support the BFD protocol. That is to say, the BFD protocol is disabled on the port 3 of the network element 3, and the network element 4 does not support the BFD protocol, so that the network element 3 and the network element 4 cannot use the BFD protocol to implement the network function for real-time monitoring of the link state.
在SDN控制器获知网元3的端口3和网元4的端口4没有启用BFD协议实现链路状态实时监控的网络功能后,开始利用OpenFlow协议在网元3的端口3和网元4的端口4上实现链路状态实时监控的网络功能。After the SDN controller learns that the port 3 of the network element 3 and the port 4 of the network element 4 have not enabled the BFD protocol to implement the network function of real-time monitoring of the link state, the port of the network element 3 and the port of the network element 4 are started by using the OpenFlow protocol. 4 Network function to realize real-time monitoring of link status.
根据OpenFlow协议的规定,SDN控制器通过向网元3发送包含BFD报文和发送端口号的Packet_out消息,指示网元3从端口3向外发送BFD报文, SDN控制器通过向网元4下发处理BFD报文的流表,指示网元4对收到的BFD报文进行处理;SDN控制器通过向网元4发送包含BFD报文和发送端口号的Packet_out消息,指示网元4从端口4向外发送BFD报文,SDN控制器通过向网元3下发处理BFD报文的流表,指示网元3对收到的BFD报文进行处理。这样,SDN控制器就可以利用OpenFlow协议在网元3的端口3和网元4的端口4上实现链路状态实时监控的网络功能。According to the stipulations of the OpenFlow protocol, the SDN controller sends a Packet_out message containing the BFD packet and the sending port number to the network element 3, and instructs the network element 3 to send the BFD packet from the port 3, The SDN controller sends a BFD packet to the network element 4 to instruct the network element 4 to process the received BFD packet. The SDN controller sends the BFD packet and the port number to the network element 4. The packet_out message indicates that the network element 4 sends the BFD packet from the port 4, and the SDN controller sends the flow table of the BFD packet to the network element 3 to instruct the network element 3 to process the received BFD packet. In this way, the SDN controller can implement the network function of real-time monitoring of the link state on the port 3 of the network element 3 and the port 4 of the network element 4 by using the OpenFlow protocol.
假设独立于SDN控制器的网管在网元4上新安装了BFD协议,且配置网元4的端口4上的BFD协议处于关闭状态,网元4可以通过向SDN控制器发送通告消息的方式上报上述变化。It is assumed that the network management system is independent of the SDN controller and the BFD protocol is newly installed on the network element 4, and the BFD protocol on the port 4 of the network element 4 is in the closed state. The network element 4 can report the advertised message to the SDN controller. The above changes.
可选地,SDN控制器还可以通过向网元3和网元4分别发送命令消息的方式指示网元3的端口3和网元4的端口4启用BFD协议。与此同时,SDN控制器会停止利用OpenFlow协议在网元3的端口3和网元4的端口4上实现链路状态实时监控的网络功能。Optionally, the SDN controller may also instruct the port 3 of the network element 3 and the port 4 of the network element 4 to enable the BFD protocol by sending a command message to the network element 3 and the network element 4 respectively. At the same time, the SDN controller stops using the OpenFlow protocol to implement the network function of link state real-time monitoring on port 3 of network element 3 and port 4 of network element 4.
可选地,SDN控制器在获知网元4新安装了BFD协议且网元4的端口4上的BFD协议处于关闭状态后,为了使能网元3和网元4之间的链路状态实时监控,可向网元3和网元4分别发送命令消息,指示网元3的端口3和网元4的端口4启用BFD协议。与此同时,为了避免利用BFD协议和利用OpenFlow协议同时实现网元3与网元4之间链路状态实时监控的网络功能所带来的冲突,SDN控制器会停止利用OpenFlow协议在网元3的端口3和网元4的端口4上实现链路状态实时监控的网络功能。Optionally, after the SDN controller learns that the BFD protocol is newly installed on the network element 4, and the BFD protocol on the port 4 of the network element 4 is in the closed state, the link state between the network element 3 and the network element 4 is enabled in real time. The monitoring can send a command message to the network element 3 and the network element 4, respectively, indicating that the port 3 of the network element 3 and the port 4 of the network element 4 enable the BFD protocol. At the same time, in order to avoid the conflict caused by the BFD protocol and the network function of real-time monitoring of the link state between the network element 3 and the network element 4 by using the OpenFlow protocol, the SDN controller stops using the OpenFlow protocol in the network element 3 Network function of real-time monitoring of link status on port 3 and port 4 of network element 4.
图8为本发明实施例中SDN控制器同时控制LLDP协议和BFD协议的第三实施例的示意图,如图8所示,第三实施例中,假设SDN控制器与网元之间运行OpenFlow集中式控制协议,网元1与网元2之间运行LLDP和BFD分布式控制协议,在第三实施例中,SDN控制器通过扩展的OpenFlow协议对网元所支持的LLDP协议和BFD协议同时进行控制,包括:FIG. 8 is a schematic diagram of a third embodiment of the SDN controller simultaneously controlling the LLDP protocol and the BFD protocol according to the embodiment of the present invention. As shown in FIG. 8, in the third embodiment, it is assumed that the OpenFlow set is run between the SDN controller and the network element. The LLDP protocol and the BFD distributed control protocol are run between the network element 1 and the network element 2. In the third embodiment, the SDN controller simultaneously performs the LLDP protocol and the BFD protocol supported by the network element through the extended OpenFlow protocol. Control, including:
SDN控制器通过发送查询消息获知:网元5支持LLDP协议和BFD协议,且LLDP协议在网元5的端口5上处于启用状态,BFD协议在网元5的端口5上处于关闭状态,网元6支持LLDP协议而不支持BFD协议,且LLDP协议在网元6的端口6上处于启用状态。具体包括: The SDN controller knows that the network element 5 supports the LLDP protocol and the BFD protocol, and the LLDP protocol is enabled on the port 5 of the network element 5, and the BFD protocol is disabled on the port 5 of the network element 5, and the network element is closed. 6 The LLDP protocol is supported and the BFD protocol is not supported. The LLDP protocol is enabled on port 6 of the network element 6. Specifically include:
SDN控制器与网元5之间一旦建立起控制连接,SDN控制器随即向网元5发送查询消息,以查询网元5能够支持哪些分布式控制协议以及各种分布式控制协议在网元5各端口上的使能状态;网元5在收到SDN控制器发送的查询消息后返回响应消息,向SDN控制器上报网元5自身支持LLDP协议和BFD协议,以及LLDP协议和BFD协议在网元5各端口上的使能状态。同样地,SDN控制器与网元6之间一旦建立起控制连接,SDN控制器随即向网元6发送查询消息,以查询网元6能够支持哪些分布式控制协议以及各种分布式控制协议在网元6各端口上的使能状态,网元6在收到SDN控制器发送的查询消息后返回响应消息,向SDN控制器上报网元6自身支持的分布式控制协议以及这些分布式控制协议在网元6各端口上的使能状态,其中有LLDP协议而没有BFD协议,即网元6支持LLDP协议而不支持BFD协议。Once the control connection is established between the SDN controller and the network element 5, the SDN controller sends a query message to the network element 5 to query which distributed control protocols the network element 5 can support and various distributed control protocols in the network element 5. The LLDP and BFD protocols are supported by the SDN controller. Enable status on each port of element 5. Similarly, once the control connection is established between the SDN controller and the network element 6, the SDN controller sends a query message to the network element 6 to query which distributed control protocols and various distributed control protocols the network element 6 can support. After the status of the NE 6 is enabled, the NE 6 returns a response message after receiving the query message sent by the SDN controller, and reports the distributed control protocol supported by the network element 6 and the distributed control protocol to the SDN controller. In the enabled state of each port of the network element 6, there is an LLDP protocol and no BFD protocol. That is, the network element 6 supports the LLDP protocol and does not support the BFD protocol.
第三实施例中,假设网元5的端口5和网元6的端口6都启用了LLDP协议,使得网元5和网元6可以利用LLDP协议实现相互发现的网络功能。这样,SDN控制器在获知后,不再利用OpenFlow协议在网元5的端口5和网元6的端口6上实现相互发现的网络功能,以免产生冲突。In the third embodiment, it is assumed that the LLDP protocol is enabled on the port 5 of the network element 5 and the port 6 of the network element 6, so that the network element 5 and the network element 6 can implement the network function of mutual discovery by using the LLDP protocol. In this way, the SDN controller does not use the OpenFlow protocol to implement the network function of mutual discovery on the port 5 of the network element 5 and the port 6 of the network element 6 to avoid conflicts.
如果网元5的端口5上关闭了BFD协议,网元6不支持BFD协议,使得网元5和网元6无法利用BFD协议实现链路状态实时监控的网络功能。那么,SDN控制器获知网元5的端口5和网元6的端口6没有启用BFD协议实现链路状态实时监控的网络功能后,会开始利用OpenFlow协议在网元5的端口5和网元6的端口6上实现链路状态实时监控的网络功能。If the BFD protocol is disabled on the port 5 of the network element 5, the network element 6 does not support the BFD protocol. Therefore, the network element 5 and the network element 6 cannot use the BFD protocol to implement the network function for real-time monitoring of the link state. Then, after the SDN controller knows that the port 5 of the network element 5 and the port 6 of the network element 6 have not enabled the BFD protocol to implement the network function for real-time monitoring of the link state, the SDN controller starts to use the OpenFlow protocol on port 5 and network element 6 of the network element 5. Network function for real-time monitoring of link status on port 6.
第三实施例中,假设独立于SDN控制器的网管分别将网元5的端口5和网元6的端口6上的LLDP协议使能状态从启用修改为关闭,那么,还包括:网元5和网元6分别通过向SDN控制器发送通告消息的方式上报上述变化。同样,如果独立于SDN控制器的网管在网元6上新安装了BFD协议,且配置网元6的端口6上的BFD协议处于关闭状态,网元6通过向SDN控制器发送通告消息的方式上报上述变化。In the third embodiment, it is assumed that the network management device independently of the SDN controller separately changes the LLDP protocol enable state on the port 5 of the network element 5 and the port 6 of the network element 6 from the enable to the off, and then includes: the network element 5 The network element 6 and the network element 6 respectively report the change by sending an announcement message to the SDN controller. Similarly, if the network management system is independent of the SDN controller, the BFD protocol is newly installed on the network element 6, and the BFD protocol on the port 6 of the network element 6 is in the closed state, and the network element 6 sends an advertisement message to the SDN controller. Report the above changes.
SDN控制器获知网元5的端口5和网元6的端口6不再启用LLDP协议实现相互发现的网络功能后,开始利用OpenFlow协议在网元5的端口5和网元6的端口6上实现相互发现的网络功能。 After the SDN controller knows that the port 5 of the network element 5 and the port 6 of the network element 6 are no longer enabled with the LLDP protocol to implement the mutual discovery network function, the OpenFlow protocol is used to implement the port 5 of the network element 5 and the port 6 of the network element 6 by using the OpenFlow protocol. Network features discovered by each other.
可选地,在第三实施例中,SDN控制器还可以通过向网元5和网元6分别发送命令消息的方式指示网元5的端口5和网元6的端口6同时启用LLDP协议和BFD协议。与此同时,SDN控制器停止利用OpenFlow协议在网元5的端口5和网元6的端口6上实现相互发现的网络功能和链路状态实时监控的网络功能。Optionally, in the third embodiment, the SDN controller may also indicate that the port 5 of the network element 5 and the port 6 of the network element 6 simultaneously enable the LLDP protocol by sending a command message to the network element 5 and the network element 6, respectively. BFD protocol. At the same time, the SDN controller stops using the OpenFlow protocol to implement the mutually discovered network function and the network function of the link state real-time monitoring on the port 5 of the network element 5 and the port 6 of the network element 6.
这样,SDN控制器在获知网元5的端口5和网元6的端口6上的LLDP协议从启用状态变为关闭状态后,为了重新使能网元5和网元6之间的自动相互发现,可以向网元5和网元6分别发送命令消息,分别指示网元5的端口5和网元6的端口6重新启用LLDP协议。与此同时,为了避免利用LLDP协议和利用OpenFlow协议同时实现网元5与网元6之间相互发现的网络功能所带来的冲突,SDN控制器停止利用OpenFlow协议在网元5的端口5和网元6的端口6上实现相互发现的网络功能。In this way, after the SDN controller learns that the LLDP protocol on the port 5 of the network element 5 and the port 6 of the network element 6 is changed from the enabled state to the closed state, the automatic mutual discovery between the network element 5 and the network element 6 is re-enabled. The command message may be sent to the network element 5 and the network element 6, respectively, and the port 5 of the network element 5 and the port 6 of the network element 6 are respectively enabled to re-enable the LLDP protocol. At the same time, in order to avoid the conflict caused by the LLDP protocol and the network function of mutually discovering between the network element 5 and the network element 6 by using the OpenFlow protocol, the SDN controller stops using the OpenFlow protocol on port 5 of the network element 5 and The network function of mutual discovery is implemented on port 6 of the network element 6.
同样,SDN控制器在获知网元6新安装了BFD协议且网元6的端口6上的BFD协议处于关闭状态后,为了使能网元5和网元6之间的链路状态实时监控,可以向网元5和网元6分别发送命令消息,指示网元5的端口5和网元6的端口6启用BFD协议。与此同时,为了避免利用BFD协议和利用OpenFlow协议同时实现网元5与网元6之间链路状态实时监控的网络功能所带来的冲突,SDN控制器停止利用OpenFlow协议在网元5的端口5和网元6的端口6上实现链路状态实时监控的网络功能。Similarly, after the SDN controller learns that the BFD protocol is newly installed on the network element 6, and the BFD protocol on the port 6 of the network element 6 is in the closed state, in order to enable real-time monitoring of the link state between the network element 5 and the network element 6, A command message may be sent to the network element 5 and the network element 6 to indicate that the port 5 of the network element 5 and the port 6 of the network element 6 enable the BFD protocol. At the same time, in order to avoid the conflict caused by the BFD protocol and the network function of real-time monitoring of the link state between the network element 5 and the network element 6 by using the OpenFlow protocol, the SDN controller stops using the OpenFlow protocol in the network element 5. The network function of real-time monitoring of link status is implemented on port 5 and port 6 of network element 6.
图9为本发明实施例中SDN控制器控制IGP协议的第四实施例的示意图,如图9所示,在第四实施例中,假设SDN控制器与网元之间运行OpenFlow集中式控制协议,网元7、网元8、网元9之间运行IGP分布式控制协议。在第四实施例中,SDN控制器通过扩展的OpenFlow协议对网元所支持的IGP协议进行控制,包括:FIG. 9 is a schematic diagram of a fourth embodiment of an SDN controller controlling an IGP protocol according to an embodiment of the present invention. As shown in FIG. 9, in the fourth embodiment, an OpenFlow centralized control protocol is assumed between an SDN controller and a network element. The IGP distributed control protocol is run between the network element 7, the network element 8, and the network element 9. In the fourth embodiment, the SDN controller controls the IGP protocol supported by the network element by using the extended OpenFlow protocol, including:
SDN控制器通过发送查询消息获知:网元7、网元8、网元9都支持IGP协议,且IGP协议在网元7的端口7和端口8、网元8的端口7和端口8、网元9的端口9和端口10上都处于启用状态。具体包括:The SDN controller knows that the network element 7, the network element 8, and the network element 9 support the IGP protocol, and the IGP protocol is on port 7 and port 8 of the network element 7, port 7 and port 8 of the network element 8, and the network. Both port 9 and port 10 of element 9 are enabled. Specifically include:
SDN控制器与网元7之间一旦建立起控制连接,SDN控制器随即向网元7发送查询消息,以查询网元7能够支持哪些分布式控制协议以及各种分布 式控制协议在网元7各端口上的使能状态;网元7在收到SDN控制器发送的查询消息后返回响应消息,向SDN控制器上报网元7自身支持IGP协议,以及IGP协议在网元7各端口上的使能状态。同样地,SDN控制器与网元8之间一旦建立起控制连接,SDN控制器随即向网元8发送查询消息,以查询网元8能够支持哪些分布式控制协议以及各种分布式控制协议在网元8各端口上的使能状态;网元8在收到SDN控制器发送的查询消息后返回响应消息,向SDN控制器上报网元8支持IGP协议,以及IGP协议在网元8各端口上的使能状态。同样地,SDN控制器与网元9之间一旦建立起控制连接,SDN控制器随即向网元9发送查询消息,以查询网元9能够支持哪些分布式控制协议以及各种分布式控制协议在网元9各端口上的使能状态;网元9在收到SDN控制器发送的查询消息后返回响应消息,向SDN控制器上报网元9支持IGP协议,以及IGP协议在网元9各端口上的使能状态。Once the control connection is established between the SDN controller and the network element 7, the SDN controller sends a query message to the network element 7 to query which distributed control protocols and various distributions the network element 7 can support. The enabling state of the control protocol on each port of the network element 7; the network element 7 returns a response message after receiving the query message sent by the SDN controller, reporting to the SDN controller that the network element 7 itself supports the IGP protocol, and the IGP protocol is Enable status on each port of NE 7. Similarly, once the control connection is established between the SDN controller and the network element 8, the SDN controller sends a query message to the network element 8 to query which distributed control protocols and various distributed control protocols the network element 8 can support. The enable state on each port of the network element 8; after receiving the query message sent by the SDN controller, the network element 8 returns a response message, and reports to the SDN controller that the network element 8 supports the IGP protocol, and the IGP protocol is on each port of the network element 8. The enabled state on the top. Similarly, once the control connection is established between the SDN controller and the network element 9, the SDN controller sends a query message to the network element 9 to query which distributed control protocols and various distributed control protocols the network element 9 can support. The enable state on each port of the network element 9; the network element 9 returns a response message after receiving the query message sent by the SDN controller, and reports to the SDN controller that the network element 9 supports the IGP protocol, and the IGP protocol is on each port of the network element 9. The enabled state on the top.
第四实施例中,假设网元7的端口7和端口8、网元8的端口7和端口8、网元9的端口9和端口10都启用了IGP协议,使得网元7、网元8和网元9可以利用IGP协议实现路由转发的网络功能。这样,在SDN控制器获知网元7的端口7和端口8、网元8的端口7和端口8、网元9的端口9和端口10正在启用IGP协议实现路由转发的网络功能后,不再利用OpenFlow协议在网元7的端口7和端口8、网元8的端口7和端口8、网元9的端口9和端口10上实现路由转发的网络功能。也就是说,SDN控制器不会计算网元7、网元8、网元9之间的路由,也不会利用OpenFlow协议给网元7、网元8、网元9下发相应的转发流表,以免网元7、网元8、网元9上通过IGP协议生成的转发表与SDN控制器通过OpenFlow协议下发的转发流表发生冲突,造成网元上转发状态的混乱。In the fourth embodiment, it is assumed that the port 7 and the port 8 of the network element 7, the port 7 and the port 8 of the network element 8, and the port 9 and the port 10 of the network element 9 are both enabled with the IGP protocol, so that the network element 7 and the network element 8 are And the network element 9 can implement the network function of routing and forwarding by using the IGP protocol. In this way, after the SDN controller learns that port 7 and port 8 of the network element 7, port 7 and port 8 of the network element 8, and port 9 and port 10 of the network element 9 are enabling the IGP protocol to implement the network function of routing and forwarding, The network function of routing forwarding is implemented on port 7 and port 8 of network element 7, port 7 and port 8 of network element 8, and port 9 and port 10 of network element 9 by using the OpenFlow protocol. That is, the SDN controller does not calculate the route between the network element 7, the network element 8, and the network element 9, and does not use the OpenFlow protocol to deliver the corresponding forwarding flow to the network element 7, the network element 8, and the network element 9. In the table, the forwarding table generated by the IGP protocol on the network element 7, the network element 8, and the network element 9 is in conflict with the forwarding flow table sent by the SDN controller through the OpenFlow protocol, causing confusion on the forwarding state of the network element.
在第四实施例中,假设独立于SDN控制器的网管分别将网元7的端口7和端口8、网元8的端口7和端口8、网元9的端口9和端口10上的IGP协议使能状态从启用修改为关闭,呢么,还包括:网元7、网元8、网元9分别通过向SDN控制器发送通告消息的方式上报上述变化。In the fourth embodiment, it is assumed that the network management system independent of the SDN controller respectively connects port 7 and port 8 of the network element 7, port 7 and port 8 of the network element 8, and port 9 and port 10 of the network element 9 to the IGP protocol. The enable state is changed from enabled to off, and includes: the network element 7, the network element 8, and the network element 9 respectively report the change by sending an advertisement message to the SDN controller.
这样,SDN控制器在获知网元7的端口7和端口8、网元8的端口7和端口8、网元9的端口9和端口10不再启用IGP协议实现路由转发的网络功能后,开始利用OpenFlow协议在网元7的端口7和端口8、网元8的端口7 和端口8、网元9的端口9和端口10上实现路由转发的网络功能。In this way, the SDN controller starts after knowing that port 7 and port 8 of the network element 7, port 7 and port 8 of the network element 8, and port 9 and port 10 of the network element 9 are no longer enabled with the network function of the IGP protocol for routing and forwarding. Port 7 and port 8 of network element 7 and port 7 of network element 8 using OpenFlow protocol Network function for implementing route forwarding on port 8, port 9 and port 10 of network element 9.
根据OpenFlow协议的规定,SDN控制器会计算网元7的端口7和端口8、网元8的端口7和端口8、网元9的端口9和端口10之间的路由,形成每个网元上对应于所计算出路由的转发流表,然后通过OpenFlow协议给网元7、网元8、网元9下发相应的转发流表。这样,SDN控制器就可以利用OpenFlow协议在网元7的端口7和端口8、网元8的端口7和端口8、网元9的端口9和端口10上实现路由转发的网络功能。According to the provisions of the OpenFlow protocol, the SDN controller calculates the routes between port 7 and port 8 of network element 7, port 7 and port 8 of network element 8, and port 9 and port 10 of network element 9, forming each network element. The corresponding forwarding flow table is corresponding to the calculated route, and then the corresponding forwarding flow table is delivered to the network element 7, the network element 8, and the network element 9 through the OpenFlow protocol. In this way, the SDN controller can implement the network function of routing and forwarding on the port 7 and port 8 of the network element 7, the port 7 and port 8 of the network element 8, and the port 9 and port 10 of the network element 9 by using the OpenFlow protocol.
可选地,在第四实施例中,SDN控制器还可以通过向网元7、网元8、网元9分别发送命令消息的方式指示网元7的端口7和端口8、网元8的端口7和端口8、网元9的端口9和端口10启用IGP协议。与此同时,SDN控制器停止利用OpenFlow协议在网元7的端口7和端口8、网元8的端口7和端口8、网元9的端口9和端口10上实现路由转发的网络功能。Optionally, in the fourth embodiment, the SDN controller may also indicate the port 7 and the port 8 of the network element 7 and the network element 8 by sending a command message to the network element 7, the network element 8, and the network element 9, respectively. Ports 7 and 8, and port 9 and port 10 of network element 9 enable the IGP protocol. At the same time, the SDN controller stops using the OpenFlow protocol to implement the network function of route forwarding on port 7 and port 8 of network element 7, port 7 and port 8 of network element 8, and port 9 and port 10 of network element 9.
这样,SDN控制器在获知网元7的端口7和端口8、网元8的端口7和端口8、网元9的端口9和端口10上的IGP协议从启用状态变为关闭状态后,为了重新使能网元7、网元8、网元9之间的路由转发,可以向网元7、网元8、网元9分别发送命令消息,分别指示网元7的端口7和端口8、网元8的端口7和端口8、网元9的端口9和端口10重新启用IGP协议。与此同时,为了避免利用IGP协议和利用OpenFlow协议同时实现网元7、网元8和网元9之间路由转发的网络功能所带来的冲突,SDN控制器停止利用OpenFlow协议在网元7的端口7和端口8、网元8的端口7和端口8、网元9的端口9和端口10上实现路由转发的网络功能。In this way, after the SDN controller learns that the port 7 and port 8 of the network element 7, the port 7 and port 8 of the network element 8, and the port 9 and port 10 of the network element 9 are changed from the enabled state to the closed state, Re-enable the route forwarding between the network element 7, the network element 8, and the network element 9, and send a command message to the network element 7, the network element 8, and the network element 9, respectively, indicating port 7 and port 8 of the network element 7, Port 7 and port 8 of network element 8, port 9 and port 10 of network element 9 re-enable the IGP protocol. At the same time, in order to avoid the conflict caused by the network function of routing and forwarding between the network element 7, the network element 8 and the network element 9 by using the IGP protocol and the OpenFlow protocol, the SDN controller stops using the OpenFlow protocol in the network element 7 Port 7 and port 8, port 7 and port 8 of network element 8, port 9 and port 10 of network element 9 implement network functions for route forwarding.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。 It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述,仅为本发明的较佳实例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above is only a preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
本发明实施例提出的网络功能实现方法及控制装置和网元,当SDN控制器获知网元某端口正在启用分布式控制协议实现某网络功能后,不再利用集中式控制协议在相同网元端口上实现相同的网络功能,避免了集中式控制协议和分布式控制协议同时实现相同的网络功能时发生冲突的问题。 The network function implementation method, the control device and the network element provided by the embodiment of the present invention, when the SDN controller learns that a certain port of the network element is enabling the distributed control protocol to implement a certain network function, the centralized control protocol is no longer used in the same network element port. Implementing the same network function avoids the conflict between the centralized control protocol and the distributed control protocol when simultaneously implementing the same network function.

Claims (17)

  1. 一种网络功能实现方法,当软件定义网络SDN控制器与网元之间建立起控制连接时,包括:A network function implementation method, when a software-defined network SDN controller establishes a control connection with a network element, including:
    SDN控制器查询网元能够支持的分布式控制协议类型及分布式控制协议在网元各端口上的使能状态;The SDN controller queries the type of the distributed control protocol that the network element can support and the enabled state of the distributed control protocol on each port of the network element;
    对于分布式控制协议处于启用状态的端口,SDN控制器关闭所述端口上用于实现与所述分布式控制协议相同网络功能的集中式控制协议。For ports in which the distributed control protocol is enabled, the SDN controller turns off the centralized control protocol on the port for implementing the same network functions as the distributed control protocol.
  2. 根据权利要求1所述的网络功能实现方法,该方法还包括:对于所述网元未启用分布式控制协议实现网络功能的端口,利用集中式控制协议实现所述网络功能。The network function implementation method according to claim 1, further comprising: implementing the network function by using a centralized control protocol for a port in which the network element does not enable a distributed control protocol to implement a network function.
  3. 根据权利要求1所述的网络功能实现方法,其中,所述SDN控制器查询网元能够支持的分布式控制协议类型及分布式控制协议在网元各端口上的使能状态包括:The network function implementation method according to claim 1, wherein the SDN controller queries the type of the distributed control protocol that the network element can support and the enabled state of the distributed control protocol on each port of the network element, including:
    所述SDN控制器向网元发送查询消息,查询消息用于查询网元能够支持的分布式控制协议类型以及分布式控制协议在网元各端口上的使能状态;The SDN controller sends a query message to the network element, where the query message is used to query the type of the distributed control protocol that the network element can support and the enable state of the distributed control protocol on each port of the network element;
    接收来自所述网元返回的响应消息,响应消息携带网元能够支持的分布式控制协议类型,以及分布式控制协议在所述网元各端口上的使能状态。Receiving a response message from the network element, the response message carries a distributed control protocol type that the network element can support, and an enabled state of the distributed control protocol on each port of the network element.
  4. 根据权利要求3所述的网络功能实现方法,其中,所述查询消息为OpenFlow协议中定义的网元功能查询OFPT_FEATURES_REQUEST消息;The method for implementing a network function according to claim 3, wherein the query message is an OFPT_FEATURES_REQUEST message for a network element function defined in the OpenFlow protocol;
    所述响应消息为扩展的网元功能响应OFPT_FEATURES_REPLY消息。The response message is an extended network element function response OFPT_FEATURES_REPLY message.
  5. 根据权利要求1所述的网络功能实现方法,该方法还包括:所述网元将能够支持的分布式控制协议类型和/或分布式控制协议在网元各端口上的使能状态发生变化信息通过通告消息通告给所述SDN控制器。The method for implementing a network function according to claim 1, further comprising: changing the enabling state of the distributed control protocol type and/or the distributed control protocol supported by the network element on each port of the network element. The SDN controller is advertised by an announcement message.
  6. 根据权利要求5所述的网络功能实现方法,其中,所述通告消息为扩展的OpenFlow异步消息。The network function implementation method according to claim 5, wherein the advertisement message is an extended OpenFlow asynchronous message.
  7. 根据权利要求1所述的网络功能实现方法,该方法还包括:所述SDN控制器向网元发送命令消息,所述命令消息用以指示所述网元启用或关闭网 元所支持的一种或一种以上分布式控制协议在所述网元各端口上的运行。The method for implementing a network function according to claim 1, further comprising: the SDN controller sending a command message to the network element, the command message being used to instruct the network element to enable or disable the network The operation of one or more distributed control protocols supported by the element on each port of the network element.
  8. 根据权利要求7所述的网络功能实现方法,其中,所述命令消息为扩展的网元配置OFPT_SET_CONFIG消息或者扩展的网元端口修改OFPT_PORT_MOD消息。The network function implementing method according to claim 7, wherein the command message configures an OFPT_SET_CONFIG message or an extended network element port modification OFPT_PORT_MOD message for the extended network element.
  9. 根据权利要求4、6或8所述的网络功能实现方法,其中,所述扩展携带的分布式协议信息采用类型-长度-赋值TLV的封装格式;The network function implementation method according to claim 4, 6 or 8, wherein the distributed protocol information carried by the extension adopts a package format of a type-length-assignment TLV;
    其中,TLV的类型Type字段表示该TLV携带有分布式协议信息;The Type field of the TLV indicates that the TLV carries distributed protocol information.
    长度Length字段表示所有n个分布式协议元组的总长度;The Length field indicates the total length of all n distributed protocol tuples;
    赋值Value字段由n个分布式协议元组组成,每个分布式协议元组又包含三个字段:分布式协议类型、端口号和使能状态。The Assign Value field consists of n distributed protocol tuples, each of which contains three more fields: the distributed protocol type, the port number, and the enabled state.
  10. 一种控制装置,包括查询模块,控制模块;其中,A control device includes a query module and a control module; wherein
    查询模块,设置为在与网元之间建立起控制连接时,查询网元能够支持的分布式控制协议类型及分布式控制协议在网元各端口上的使能状态;The query module is configured to query the type of the distributed control protocol that the network element can support and the enable state of the distributed control protocol on each port of the network element when establishing a control connection with the network element;
    控制模块,设置为对于分布式控制协议处于启用状态的端口,关闭所述端口上用于实现与所述分布式控制协议相同网络功能的集中式控制协议。The control module is configured to close the port on the port for enabling the same network function as the distributed control protocol for the port in which the distributed control protocol is enabled.
  11. 根据权利要求10所述的控制装置,所述控制模块还设置为:对于分布式控制协议处于未启用状态的端口,利用集中式控制协议实现该网络功能。The control device according to claim 10, wherein the control module is further configured to implement the network function using a centralized control protocol for a port in which the distributed control protocol is not enabled.
  12. 根据权利要求10所述的控制装置,还包括:第一处理模块,设置为接收来自所述网元的网元能够支持的分布式控制协议类型和/或分布式控制协议在网元各端口上的使能状态发生变化的变化信息,并输出给控制模块。The control apparatus according to claim 10, further comprising: a first processing module configured to receive a distributed control protocol type and/or a distributed control protocol supported by the network element from the network element on each port of the network element The change information of the enabled state changes and is output to the control module.
  13. 根据权利要求10所述的控制装置,所述控制模块还设置为:向所述网元发送命令消息,所述命令消息用以指示网元启用或关闭网元所支持的一种或一种以上分布式控制协议在所述网元各端口上的运行。The control device according to claim 10, wherein the control module is further configured to: send a command message to the network element, where the command message is used to indicate that the network element enables or disables one or more supported by the network element. The operation of the distributed control protocol on each port of the network element.
  14. 一种网元,包括:A network element, including:
    接口模块,设置为接收来自控制装置的查询消息,根据查询消息向第二处理模块发送需要查询的网元能够支持哪些分布式控制协议以及各种分布式控制协议在网元各端口上的使能状态的查询通知; The interface module is configured to receive the query message from the control device, and send, to the second processing module, which distributed control protocol and the various distributed control protocols are enabled on the ports of the network element according to the query message. Status notification notification;
    第二处理模块,设置为接收到查询通知,根据查询通知向控制装置返回响应消息,响应消息携带需要查询的网元能够支持的分布式控制协议类型,以及分布式控制协议在网元各端口上的使能状态。The second processing module is configured to receive the query notification, and return a response message to the control device according to the query notification, where the response message carries the distributed control protocol type that the network element that needs to be queried can support, and the distributed control protocol is on each port of the network element. The enabled state.
  15. 根据权利要求14所述的网元,所述第二处理模块还设置为,将自身所属网元能够支持的分布式控制协议类型和/或分布式控制协议在网元各端口上的使能状态发生变化的变化信息通告给所述控制装置。The network element according to claim 14, wherein the second processing module is further configured to enable a distributed control protocol type and/or a distributed control protocol of the network element to be supported by the network element to which the network element belongs. The change information of the change is notified to the control device.
  16. 根据权利要求14所述的网元,所述接口模块还设置为:接收来自所述控制装置的命令消息,根据命令消息向所述第二处理模块发送命令通知;The network element according to claim 14, wherein the interface module is further configured to: receive a command message from the control device, and send a command notification to the second processing module according to the command message;
    所述第二处理模块还设置为:接收命令通知,根据命令通知启用或关闭自身所属网元所支持的一种或一种以上分布式控制协议在网元各端口上的运行。The second processing module is further configured to: receive a command notification, and enable or disable the operation of one or more distributed control protocols supported by the network element to which the network element belongs to each port of the network element according to the command notification.
  17. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-9任一项的网络功能实现方法。 A computer readable storage medium storing computer executable instructions for performing the network function implementation method of any of claims 1-9.
PCT/CN2016/089652 2016-02-22 2016-07-11 Network function implementing method, control device and network element WO2017143722A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610097496.8A CN107104811B (en) 2016-02-22 2016-02-22 Network function implementation method and control device
CN201610097496.8 2016-02-22

Publications (1)

Publication Number Publication Date
WO2017143722A1 true WO2017143722A1 (en) 2017-08-31

Family

ID=59658774

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/089652 WO2017143722A1 (en) 2016-02-22 2016-07-11 Network function implementing method, control device and network element

Country Status (2)

Country Link
CN (1) CN107104811B (en)
WO (1) WO2017143722A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650167B (en) * 2018-06-26 2021-02-23 华为技术有限公司 Communication method and device
CN109412850B (en) * 2018-10-25 2022-02-11 新华三技术有限公司合肥分公司 Message subscription control method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320345A (en) * 2014-10-30 2015-01-28 杭州华三通信技术有限公司 Method and device for collecting topological information in SDN network
CN104735001A (en) * 2013-12-24 2015-06-24 中兴通讯股份有限公司 Link discovery method, device and system in software-defined network
EP2975807A1 (en) * 2013-03-15 2016-01-20 ZTE Corporation Method and apparatus for discovering openflow protocol-based control plane device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2375023B (en) * 2001-04-26 2003-07-16 Marconi Comm Ltd Improvements in and relating to telecommunications networks
US8249104B2 (en) * 2008-10-30 2012-08-21 Futurewei Technologies, Inc. Optical network terminal management and control interface over Ethernet
CN103001887B (en) * 2012-11-22 2018-01-05 中兴通讯股份有限公司 A kind of link keep-alive method, controller and interchanger
US9729425B2 (en) * 2012-11-29 2017-08-08 Futurewei Technologies, Inc. Transformation and unified control of hybrid networks composed of OpenFlow switches and other programmable switches
US9100285B1 (en) * 2012-12-18 2015-08-04 Juniper Networks, Inc. Dynamic control channel establishment for software-defined networks having centralized control
US10333779B2 (en) * 2013-04-10 2019-06-25 Huawei Technologies Co., Ltd. System and method for providing a software defined protocol stack
WO2015051856A1 (en) * 2013-10-11 2015-04-16 Xieon Networks S.À.R.L. Centralized data path establishment augmented with distributed control messaging
CN104702438B (en) * 2015-03-13 2018-04-06 新华三技术有限公司 PE device management methods and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2975807A1 (en) * 2013-03-15 2016-01-20 ZTE Corporation Method and apparatus for discovering openflow protocol-based control plane device
CN104735001A (en) * 2013-12-24 2015-06-24 中兴通讯股份有限公司 Link discovery method, device and system in software-defined network
CN104320345A (en) * 2014-10-30 2015-01-28 杭州华三通信技术有限公司 Method and device for collecting topological information in SDN network

Also Published As

Publication number Publication date
CN107104811B (en) 2021-08-17
CN107104811A (en) 2017-08-29

Similar Documents

Publication Publication Date Title
CN107204867B (en) Information transmission method, device and system
US11374857B2 (en) Network device management method and apparatus, and system for indicating a network device to perform management operation
EP2553886B1 (en) Aggregating data traffic from access domains
US10498607B2 (en) SDN network system, controller, and controlling method
US20220078076A1 (en) Method, Apparatus, and System for Communication Between Controllers in TSN
EP2974147B1 (en) Loop-free hybrid network
WO2016165463A1 (en) Software defined network-based link failure reporting method and forwarding device
JP2018530268A (en) BIER information transmission method, reception method and apparatus
US10122654B2 (en) Divided hierarchical network system based on software-defined networks
CN105191339B (en) Software redundancy in non-isomorphic virtual rack
CN111147372B (en) Downlink message sending and forwarding method and device
US10404544B2 (en) Network topology determining method and apparatus, and centralized network status information storage device
CN104301238A (en) Message processing method, device and system
CN108965134B (en) Message forwarding method and device
US10805169B2 (en) Topology determining method, message response method, controller, and switch
WO2017015839A1 (en) Sdn-based arp realization method and apparatus
JP6109954B2 (en) System and method for pass-through mode in a virtual chassis system
WO2018219103A1 (en) Method and device for determining link state
CN105634952A (en) Fast notification method and apparatus for LSP message
WO2017143722A1 (en) Network function implementing method, control device and network element
CN107733727B (en) Zero configuration method, device and equipment
WO2016065925A1 (en) Controller replacing method and device
WO2012146104A1 (en) Method, device and system for updating port information
CN105765903A (en) Topology discovery method and device
CN115134232A (en) Virtual router management method, equipment, system and storage medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16891172

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16891172

Country of ref document: EP

Kind code of ref document: A1