WO2013078685A1 - 发送消息的方法、接收消息方法、开放流控制器及第一开放流交换机 - Google Patents

发送消息的方法、接收消息方法、开放流控制器及第一开放流交换机 Download PDF

Info

Publication number
WO2013078685A1
WO2013078685A1 PCT/CN2011/083391 CN2011083391W WO2013078685A1 WO 2013078685 A1 WO2013078685 A1 WO 2013078685A1 CN 2011083391 W CN2011083391 W CN 2011083391W WO 2013078685 A1 WO2013078685 A1 WO 2013078685A1
Authority
WO
WIPO (PCT)
Prior art keywords
open flow
message
controller
openflow
switch
Prior art date
Application number
PCT/CN2011/083391
Other languages
English (en)
French (fr)
Inventor
朱明明
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2011/083391 priority Critical patent/WO2013078685A1/zh
Priority to EP11876638.5A priority patent/EP2787694B1/en
Priority to PCT/CN2012/070136 priority patent/WO2013078780A1/zh
Priority to CN201280059046.XA priority patent/CN103975561B/zh
Publication of WO2013078685A1 publication Critical patent/WO2013078685A1/zh
Priority to US14/292,121 priority patent/US9641421B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0895Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • 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/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/036Updating the topology between route computation elements, e.g. between OpenFlow controllers

Definitions

  • the present invention relates to communication technologies, and in particular, to a method for sending a message, a method for receiving a message, an open flow controller, and a first open flow switch. .
  • OpenFlow is a new type of network model.
  • an open flow switch and an open flow controller may be included. Before the OpenFlow switch communicates with the OpenFlow controller, it is necessary to establish an OpenFlow switch and an OpenFlow controller. To establish a connection, you can manually configure the parameters of the connection to be established. After the parameters of the connection to be established are configured, the open flow switch and the OpenFlow controller perform the action of establishing a connection according to the parameters of the connection to be established.
  • the technical solution provided by the embodiment of the present invention can automatically acquire parameters of a connection to be established.
  • the open flow switch or open flow controller can establish an open flow switch to open flow controller based on automatically acquired parameters.
  • a method for sending a message includes:
  • the OpenFlow controller receives the first message sent by the first OpenFlow switch
  • the open flow controller determines that the first open flow switch belongs to the open flow controller according to the first message
  • the open flow controller sends a first response message to the first open flow switch, where the first response message is sent
  • a method for receiving a message includes: the first OpenFlow switch sends a first message to an OpenFlow controller, so that when the OpenFlow controller determines the first message according to the first message, When an open flow switch belongs to the open flow controller, the open flow controller sends a first response message to the first open flow switch, where the first response message includes type information of the first connection and parameters of the first connection a parameter related to the open flow controller, where the first connection is a connection between the first open flow switch to be established and the open flow controller to be established, and the first response message corresponds to the first message;
  • the first open flow switch receives the first response message.
  • a method for sending a message includes: an OpenFlow controller receiving a first message sent by a first OpenFlow switch;
  • the open flow controller determines that the first open flow switch belongs to the open flow controller according to the first message
  • the open flow controller sends a first response message to the first open flow switch, where the first response message is sent Corresponding to the first message;
  • the OpenFlow controller receives the second message sent by the first OpenFlow switch, where the second message includes type information of the first connection and parameters related to the first OpenFlow switch in the parameters of the first connection, where the A connection is a connection of the first open flow switch to be established to the open flow controller.
  • a method for receiving a message according to an embodiment of the present invention includes: the first OpenFlow switch sends a first message to an OpenFlow controller, so that when the OpenFlow controller determines the first message according to the first message, When an open flow switch belongs to the open flow controller, the open flow controller sends a first response message to the first open flow switch, where the first response message corresponds to the first message;
  • the first open flow switch sends a second message to the open flow controller, where the second message includes type information of the first connection and parameters related to the first open flow switch in the parameters of the first connection, where the first Connecting to the first open flow switch to be established and the open flow controller Connection.
  • a method for sending a message includes: an OpenFlow controller receiving a first message sent by a first OpenFlow switch;
  • the open flow controller determines that the first open flow switch belongs to the open flow controller according to the first message
  • the open flow controller sends a first response message to the first open flow switch, where the first response message is sent Corresponding to the first message;
  • the OpenFlow controller sends a second message to the first OpenFlow switch, where the second message includes type information of the first connection and parameters related to the OpenFlow controller in the parameters of the first connection, the first connection A connection between the first open flow switch to be established and the open flow controller.
  • a method for receiving a message according to an embodiment of the present invention includes: the first OpenFlow switch sends a first message to an OpenFlow controller, so that when the OpenFlow controller determines the first message according to the first message, When an open flow switch belongs to the open flow controller, the open flow controller sends a first response message to the first open flow switch, where the first response message corresponds to the first message;
  • the first open flow switch receives the second message sent by the open flow controller, where the second message includes type information of the first connection and parameters related to the open flow controller in the parameters of the first connection, where the first The connection is the connection of the first open flow switch to be established to the open flow controller.
  • a method for sending a message includes: an OpenFlow controller receiving a first message sent by a first OpenFlow switch;
  • the open flow controller determines that the first open flow switch belongs to the open flow controller according to the first message
  • the open flow controller sends a first response message to the first open flow switch, where the first response message is sent Corresponding to the first message;
  • the OpenFlow controller sends a second message to the first OpenFlow switch, the second message packet
  • the OpenFlow controller receives the second response message sent by the first OpenFlow switch, where the second response message includes parameters related to the first OpenFlow switch in the parameters of the first connection, where the second response message corresponds to In the second message.
  • a method for receiving a message according to an embodiment of the present invention includes: the first OpenFlow switch sends a first message to an OpenFlow controller, so that when the OpenFlow controller determines the first message according to the first message, When an open flow switch belongs to the open flow controller, the open flow controller sends a first response message to the first open flow switch, where the first response message corresponds to the first message;
  • the first open flow switch receives the second message sent by the open flow controller, where the second message includes type information of the first connection and parameters related to the open flow controller in the parameters of the first connection, where the first Connecting is a connection between the first open flow switch to be established and the open flow controller;
  • the first open flow switch sends a second response message to the open flow controller, where the second response message includes a parameter related to the first open flow switch in the parameter of the first connection, where the second response message corresponds to The second message.
  • a method for sending a message includes: an OpenFlow controller receiving a first message sent by a first OpenFlow switch;
  • the open flow controller determines that the first open flow switch belongs to the open flow controller according to the first message
  • the open flow controller sends a first response message to the first open flow switch, where the first response message is sent Corresponding to the first message;
  • the first connection is a connection between the first open flow switch to be established and the open flow controller;
  • the OpenFlow controller sends a second response message to the first OpenFlow switch, the second response message including parameters related to the OpenFlow controller of the parameters of the first connection.
  • a method for receiving a message according to an embodiment of the present invention includes: the first OpenFlow switch sends a first message to an OpenFlow controller, so that when the OpenFlow controller determines the first message according to the first message, When an open flow switch belongs to the open flow controller, the open flow controller sends a first response message to the first open flow switch, where the first response message corresponds to the first message;
  • the first open flow switch sends a second message to the open flow controller, where the second message includes type information of the first connection and parameters related to the first open flow switch in the parameters of the first connection, where the first Connecting is a connection between the first open flow switch to be established and the open flow controller;
  • the first OpenFlow switch receives a second response message sent by the OpenFlow controller, where the second response message includes parameters related to the OpenFlow controller in the parameters of the first connection.
  • an open flow controller provided by an embodiment of the present invention includes:
  • the receiver is configured to receive a first message sent by the first OpenFlow switch
  • the transmitter includes a determining unit and a transmitting unit
  • the determining unit is configured to determine, according to the first message, whether the first open flow switch belongs to the open flow controller;
  • the sending unit is configured to: when the determining unit determines that the first open flow switch belongs to the open flow controller, send a first response message to the first open flow switch, where the first response message includes type information of the first connection And a parameter related to the open flow controller in the parameter of the first connection, where the first connection is the first open flow switch to be established and the open flow controller The connection, the first response message corresponds to the first message.
  • a first open flow switch provided by the embodiment of the present invention includes: a transmitter, configured to send a first message to an open flow controller, so that when the open flow controller determines the first message according to the first message, When the first open flow switch belongs to the open flow controller, the open flow controller sends a first response message to the first open flow switch, where the first response message includes type information of the first connection and the first connection a parameter related to the open flow controller in the parameter, the first connection is a connection between the first open flow switch to be established and the open flow controller, and the first response message corresponds to the first message;
  • a receiver configured to receive the first response message.
  • an open flow controller provided by an embodiment of the present invention includes:
  • the receiver is configured to receive a first message sent by the first OpenFlow switch
  • the transmitter includes a determining unit and a transmitting unit
  • the determining unit is configured to determine, according to the first message, whether the first open flow switch belongs to the open flow controller;
  • the sending unit is configured to: when the determining unit determines that the first open flow switch belongs to the open flow controller, send a first response message to the first open flow switch, where the first response message corresponds to the first message ;
  • the receiver is further configured to receive a second message sent by the first open flow switch, where the second message includes type information of the first connection and parameters related to the first open flow switch in parameters of the first connection, where
  • the first connection is a connection of the first open flow switch to be established to the open flow controller.
  • a first open flow switch provided by the embodiment of the present invention includes: a transmitter and a receiver;
  • the transmitter is configured to send a first message to the OpenFlow controller, so that when the OpenFlow controller determines, according to the first message, that the first OpenFlow switch belongs to the OpenFlow controller, The OpenFlow controller sends a first response message to the first OpenFlow switch, where the first response message corresponds to the first message;
  • the receiver is configured to receive the first response message
  • the transmitter is further configured to send a second message to the OpenFlow controller, where the second message includes type information of the first connection and parameters related to the first OpenFlow switch in the parameters of the first connection, where the first The connection is the connection of the first open flow switch to be established to the open flow controller.
  • an open flow controller provided by an embodiment of the present invention includes:
  • the receiver is configured to receive a first message sent by the first OpenFlow switch
  • the transmitter includes a determining unit and a transmitting unit
  • the determining unit is configured to determine, according to the first message, whether the first open flow switch belongs to the open flow controller;
  • the sending unit is configured to: when the determining unit determines that the first open flow switch belongs to the open flow controller, send a first response message to the first open flow switch, where the first response message corresponds to the first message ;
  • the transmitter is further configured to send, to the first OpenFlow switch, a second message, where the second message includes type information of the first connection and parameters related to the OpenFlow controller in the parameters of the first connection, where the first The connection is the connection of the first open flow switch to be established to the open flow controller.
  • a first open flow switch provided by the embodiment of the present invention includes: a transmitter and a receiver;
  • the transmitter is configured to send a first message to the OpenFlow controller, so that when the OpenFlow controller determines, according to the first message, that the first OpenFlow switch belongs to the OpenFlow controller, the OpenFlow controller
  • the first OpenFlow switch sends a first response message, where the first response message corresponds to the first message
  • the receiver is configured to receive the first response message
  • the receiver is further configured to receive a second message sent by the OpenFlow controller, where the second message includes type information of the first connection and parameters related to the OpenFlow controller in the parameters of the first connection, where the first The connection is the connection of the first open flow switch to be established to the open flow controller.
  • an open flow controller provided by an embodiment of the present invention includes:
  • the receiver is configured to receive a first message sent by the first OpenFlow switch
  • the transmitter includes a determining unit and a transmitting unit
  • the determining unit is configured to determine, according to the first message, whether the first open flow switch belongs to the open flow controller;
  • the sending unit is configured to: when the determining unit determines that the first open flow switch belongs to the open flow controller, send a first response message to the first open flow switch, where the first response message corresponds to the first message ;
  • the transmitter is further configured to send, to the first OpenFlow switch, a second message, where the second message includes type information of the first connection and parameters related to the OpenFlow controller in the parameters of the first connection, where the first Connecting is a connection between the first open flow switch to be established and the open flow controller;
  • the receiver is further configured to receive a second response message sent by the first open flow switch, where the second response message includes a parameter related to the first open flow switch in the parameter of the first connection, the second response message Corresponds to the second message.
  • a first open flow switch provided by the embodiment of the present invention includes: a transmitter and a receiver;
  • the transmitter is configured to send a first message to the OpenFlow controller, so that when the OpenFlow controller determines, according to the first message, that the first OpenFlow switch belongs to the OpenFlow controller, the OpenFlow controller The first open flow switch sends a first response message, where the first response is cancelled.
  • the information corresponds to the first message;
  • the receiver is configured to receive the first response message
  • the receiver is further configured to receive a second message sent by the OpenFlow controller, where the second message includes type information of the first connection and parameters related to the OpenFlow controller in the parameters of the first connection, where the first Connecting is a connection between the first open flow switch to be established and the open flow controller;
  • the transmitter is further configured to send a second response message to the OpenFlow controller, where the second response message includes a parameter related to the first OpenFlow switch in the parameter of the first connection, where the second response message corresponds to The second message.
  • an open flow controller provided by an embodiment of the present invention includes:
  • the receiver is configured to receive a first message sent by the first OpenFlow switch
  • the transmitter includes a determining unit and a transmitting unit
  • the determining unit is configured to determine, according to the first message, whether the first open flow switch belongs to the open flow controller;
  • the sending unit is configured to: when the determining unit determines that the first open flow switch belongs to the open flow controller, send a first response message to the first open flow switch, where the first response message corresponds to the first message ;
  • the receiver is further configured to receive a second message sent by the first open flow switch, where the second message includes type information of the first connection and parameters related to the first open flow switch in parameters of the first connection, where
  • the first connection is a connection between the first open flow switch to be established and the open flow controller;
  • the transmitter is further configured to send a second response message to the first open flow switch, where the second response message includes parameters related to the open flow controller of the parameters of the first connection.
  • a first open flow switch provided by the embodiment of the present invention includes: a transmitter and a receiver; The transmitter is configured to send a first message to the OpenFlow controller, so that when the OpenFlow controller determines, according to the first message, that the first OpenFlow switch belongs to the OpenFlow controller, the OpenFlow controller The first OpenFlow switch sends a first response message, where the first response message corresponds to the first message;
  • the receiver is configured to receive the first response message
  • the transmitter is further configured to send a second message to the OpenFlow controller, where the second message includes type information of the first connection and parameters related to the first OpenFlow switch in the parameters of the first connection, where the first Connecting is a connection between the first open flow switch to be established and the open flow controller;
  • the receiver is further configured to receive a second response message sent by the OpenFlow controller, where the second response message includes parameters related to the OpenFlow controller in the parameters of the first connection.
  • the open flow switch receives the connection establishment request before the open flow controller (or the open flow switch), and the open flow switch (or the open flow controller) receives the The message sent to the peer end, which contains the parameters related to the peer in the parameters of the connection to be established.
  • the above mechanism implements automatic configuration of the parameters of the connection to be established. Therefore, the technical solution provided by the embodiment of the present invention can automatically acquire the parameters of the connection to be established.
  • the OpenFlow switch or OpenFlow controller can establish an OpenFlow switch to open flow controller based on automatically acquired parameters.
  • FIG. 1 is a flowchart of a method for sending a message according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for receiving a message according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another method for sending a message according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of another method for receiving a message according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of another method for sending a message according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of another method for receiving a message according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of another method for sending a message according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of another method for receiving a message according to an embodiment of the present invention.
  • FIG. 9 is a flowchart of another method for sending a message according to an embodiment of the present invention.
  • FIG. 10 is a flowchart of another method for receiving a message according to an embodiment of the present invention
  • FIG. 11 is a schematic structural diagram of an OpenFlow controller according to an embodiment of the present invention
  • FIG. 13 is a schematic structural diagram of another open flow controller according to an embodiment of the present invention
  • FIG. 14 is a schematic structural diagram of another first open flow switch according to an embodiment of the present invention
  • FIG. 15 is a schematic structural diagram of another open flow controller according to an embodiment of the present invention
  • FIG. 16 is a schematic structural diagram of another first open flow switch according to an embodiment of the present invention
  • FIG. 18 is a schematic structural diagram of another first open flow switch according to an embodiment of the present invention
  • FIG. 19 is a schematic structural diagram of another open flow controller according to an embodiment of the present invention
  • FIG. 11 is a schematic structural diagram of an OpenFlow controller according to an embodiment of the present invention
  • FIG. 13 is a schematic structural diagram of another open flow controller according to an embodiment of the present invention
  • FIG. 14 is a schematic structural
  • FIG. 20 is a schematic structural diagram of another first open flow switch according to an embodiment of the present invention.
  • the purpose of the present invention is to clearly and completely describe the technical solutions in the embodiments of the present invention, and it is obvious that the technical solutions in the embodiments of the present invention are clearly and completely described.
  • the described embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 1 is a flowchart of a method for sending a message according to an embodiment of the present invention, where the method includes:
  • the OpenFlow controller receives the first message sent by the first OpenFlow switch.
  • the OpenFlow Controller is a network device in the OpenFlow Network.
  • the OpenFlow controller can control the OpenFlow network.
  • the OpenFlow controller can send a flow table to the OpenFlow switch.
  • An OpenFlow Switch is also a type of network device in an OpenFlow network.
  • the OpenFlow switch can forward packets based on the flow table.
  • OpenFlow Controllers For OpenFlow Controllers, OpenFlow Switches, and OpenFlow Networks, refer to the OpenFlow Switch Specification 1.0 released by the OpenFlow Networking Foundation (OFN).
  • OFN OpenFlow Networking Foundation
  • the first OpenFlow switch sends the first message to the OpenFlow controller.
  • the first OpenFlow switch may send the first message in a broadcast form.
  • the entire broadcast domain can receive the first message.
  • the open flow controller is located in the broadcast domain.
  • the first OpenFlow switch can send the first message in multicast form.
  • all members of the multicast group can receive the first message.
  • the OpenFlow controller may also receive the first message sent by the first OpenFlow switch in multicast form.
  • the first OpenFlow switch may be based on the OpenFlow Discovery Protocol (OFDP) released by the Global Environment for Network Innovations (GENI), on all ports of the first OpenFlow switch.
  • the first message is sent in multicast form.
  • the OpenFlow Discovery Protocol is a protocol based on the Link Layer Discovery Protocol (LLDP).
  • the first message may include a source media access control (MAC) protocol address, and the source MAC protocol address is a MAC protocol address of the first open flow switch.
  • MAC media access control
  • the OpenFlow controller can receive the first message in the following manner:
  • the second open flow switch and the open flow controller establish a control channel (controller) Channel ).
  • the first OpenFlow switch sends the first message by broadcast or multicast.
  • the open flow controller is located in the broadcast domain; when the first message is multicast, the open flow controller is a member of the multicast group.
  • the second OpenFlow switch can forward the first message to the OpenFlow controller through the control channel.
  • control channel refer to the OpenFlow Switch Specification Version 1.0 released by OFN.
  • the first OpenFlow switch may send the first message by broadcast or multicast.
  • the first message can propagate throughout the broadcast domain or multicast group with broadcast or multicast and eventually reach the OpenFlow controller. Since the first open flow switch does not know the path of the open flow controller, it may take a long time for the first message to arrive at the open flow controller.
  • the second OpenFlow switch knows the path of the OpenFlow controller, so the time required for the second OpenFlow switch to forward the first message to the OpenFlow controller through the control channel can be relatively small.
  • Step 102 When the open flow controller determines, according to the first message, that the first open flow switch belongs to the open flow controller, the open flow controller sends a first response message to the first open flow switch, where the first The response message includes the type information of the first connection and the parameter related to the OpenFlow controller in the parameter of the first connection, where the first connection is a connection between the first OpenFlow switch and the OpenFlow controller to be established.
  • the first response message corresponds to the first message.
  • the open flow controller may determine, according to the first message, whether the first open flow switch is under the jurisdiction of the open flow controller. There are various methods for determining the present invention, and the present invention is not specifically limited. Two methods of determination are provided below:
  • the first method of determination is a first method of determination:
  • the OpenFlow controller can access a database containing the identity of the OpenFlow switch under the jurisdiction of the OpenFlow controller.
  • the first message includes an identifier of the first OpenFlow switch.
  • the OpenFlow controller determines that the first OpenFlow switch is under the jurisdiction of the OpenFlow controller. The second method of determination:
  • the first message contains the identity of the first open flow controller.
  • the first open flow controller determines that the open flow controller corresponding to the identifier of the first open flow controller included in the first message is the first open flow controller, the first open flow controller determines the first open flow switch. Belongs to the jurisdiction of the OpenFlow controller.
  • the OpenFlow controller determines that the first OpenFlow switch belongs to the OpenFlow controller according to the first message
  • the OpenFlow controller sends a first response message to the first OpenFlow switch.
  • the first response message corresponds to the first message.
  • the OpenFlow controller sends the first response message to the first open flow switch in unicast mode.
  • the destination MAC protocol address of the first response message is the MAC protocol address of the first OpenFlow switch.
  • the first response message may provide parameters for the connection of the first OpenFlow switch to the OpenFlow controller to be established.
  • the connection between the first open flow switch and the open flow controller is a first connection.
  • the first connection may be a Transmission Control Protocol (TCP) or a Secure Sockets Layer (SSL) protocol, which is not limited in the present invention.
  • TCP Transmission Control Protocol
  • SSL Secure Sockets Layer
  • the first response message includes type information of the first connection.
  • the type information of the first connection is used to identify the type of the first connection to be established.
  • the type information of the first connection may be carried in a certain field or multiple fields of the first response message.
  • the first response message contains parameters related to the OpenFlow controller among the parameters of the first connection.
  • the parameter of the first connection is a set of parameters that are needed to establish the first connection.
  • the parameters of the first connection include an Internet Protocol (IP) address of the OpenFlow controller, an IP address of the first OpenFlow switch, a manner of establishing a TCP connection, and an open flow.
  • IP Internet Protocol
  • the way to establish a TCP connection may be to establish a connection actively or to establish a connection passively.
  • the parameters of the first connection include parameters related to the OpenFlow controller and parameters related to the first OpenFlow switch.
  • the parameters related to the flow controller include an IP address of the OpenFlow controller and a TCP port number of the OpenFlow controller; parameters related to the first OpenFlow switch in the parameters of the first connection include an IP address of the first OpenFlow switch and a The TCP port number of an open flow switch.
  • the above mechanism implements automatic configuration of the parameters of the connection to be established.
  • the OpenFlow switch can establish an OpenFlow switch to the OpenFlow controller based on automatically acquired parameters.
  • the method may further include:
  • the OpenFlow controller performs an action of establishing the first connection, where the action includes, according to the type information of the first connection and the parameter of the first connection, related to the OpenFlow controller, to the first OpenFlow switch.
  • the establishment request of the first connection initiated by the parameter is responded to.
  • the act of establishing the first connection may be dictated by a technical standard corresponding to the first connection.
  • the standard for TCP specifies the actions that need to be performed to establish a TCP connection.
  • the act of establishing the first connection includes at least transmitting a setup request for the first connection and responding to the setup request for the first connection.
  • the sending the first connection establishment request refers to establishing a setup request of the first connection, and establishing, by the receiver that establishes the first connection, the first connection establishment request.
  • Responding to the setup request of the first connection means that the receiver establishing the first connection responds to the setup request of the first connection and sends a response to the initiator establishing the first connection.
  • the initiator that establishes the first connection may be the first open flow switch, or may be an open flow controller.
  • the type of the first connection is TCP
  • the way to establish a TCP connection determines the initiator that establishes the first connection.
  • the establishment request of the first connection is initiated by the first open flow switch.
  • the first open flow switch is configured according to the type information of the first connection and the parameter of the first connection.
  • a parameter related to the OpenFlow controller initiates a setup request for the first connection. After the first open flow switch receives the establishment request of the first connection, the first open flow switch responds to the establishment request of the first connection.
  • Embodiment 2 :
  • FIG. 2 is a flowchart of a method for receiving a message according to an embodiment of the present invention, where the method includes:
  • the first OpenFlow switch sends a first message to the OpenFlow controller, so that when the OpenFlow controller determines, according to the first message, that the first OpenFlow switch belongs to the OpenFlow controller, the OpenFlow control Sending a first response message to the first open flow switch, where the first response message includes type information of the first connection and parameters related to the open flow controller in the parameters of the first connection, where the first connection is to be Establishing a connection between the first open flow switch and the open flow controller, the first response message corresponding to the first message.
  • the first OpenFlow switch receives the first response message.
  • 202 may further include:
  • the first OpenFlow switch performs an action of establishing the first connection, where the action includes: controlling, according to the type information of the first connection, and parameters related to the OpenFlow controller in the parameters of the first connection to the OpenFlow
  • the device initiates a setup request for the first connection.
  • FIG. 3 is a flowchart of a method for sending a message according to an embodiment of the present invention, where the method includes: 301: The OpenFlow controller receives the first message sent by the first OpenFlow switch.
  • the open flow controller determines, according to the first message, that the first open flow switch belongs to the open flow controller, the open flow controller sends a first response message to the first open flow switch, where the first The response message corresponds to the first message.
  • the first response message in the embodiment does not include the type information of the first connection and the parameters related to the open flow controller in the parameters of the first connection.
  • the OpenFlow controller receives the second message sent by the first OpenFlow switch, where the second message includes type information of the first connection and parameters related to the first OpenFlow switch in the parameters of the first connection.
  • the first connection is a connection between the first open flow switch to be established and the open flow controller.
  • the OpenFlow controller In the scenario where the OpenFlow controller initiates the setup request of the first connection, the OpenFlow controller needs to know the parameters related to the first OpenFlow switch in the parameters of the first connection, so as to facilitate the OpenFlow controller and the first OpenFlow.
  • the switch communicates.
  • the parameters related to the first OpenFlow switch in the parameters of the first connection include the first OpenFlow switch.
  • the method may further include:
  • the OpenFlow controller performs an action of establishing the first connection, where the action includes: opening, according to the type information of the first connection, and a parameter related to the first OpenFlow switch in the parameter of the first connection
  • the flow switch initiates a setup request for the first connection.
  • FIG. 4 is a flowchart of a method for receiving a message according to an embodiment of the present invention, where the method includes: 401:
  • the first OpenFlow switch sends a first message to the OpenFlow controller, so that when the OpenFlow controller determines, according to the first message, that the first OpenFlow switch belongs to the OpenFlow controller, the OpenFlow control
  • the device sends a first response message to the first open flow switch, where the first response message corresponds to the first message.
  • the first OpenFlow switch receives the first response message.
  • the first OpenFlow switch sends a second message to the OpenFlow controller, where the second message includes type information of the first connection and parameters related to the first OpenFlow switch in parameters of the first connection, where The first connection is a connection of the first open flow switch to be established to the open flow controller.
  • the method may further include:
  • the first OpenFlow switch performs an action of establishing the first connection, where the action includes, according to the type information of the first connection and the parameter of the first connection, the OpenFlow controller is related to the first OpenFlow switch.
  • the parameter initiates the establishment of the first connection request to respond.
  • FIG. 5 is a flowchart of a method for sending a message according to an embodiment of the present invention, where the method includes:
  • the OpenFlow controller receives the first message sent by the first OpenFlow switch.
  • the open flow controller determines, according to the first message, that the first open flow switch belongs to the open flow controller, the open flow controller sends a first response message to the first open flow switch, where the first The response message corresponds to the first message.
  • the open flow controller sends a first response message to the first open flow switch, where the first The response message corresponds to the first message.
  • the first response message in this embodiment may not include the type information of the first connection and the parameters related to the open flow controller in the parameters of the first connection.
  • the OpenFlow controller sends a second message to the first OpenFlow switch, where the second message includes type information of the first connection and parameters related to the OpenFlow controller in the parameters of the first connection, where A connection is a connection of the first open flow switch to be established to the open flow controller.
  • the second message in this embodiment is sent by the OpenFlow controller.
  • the second message includes type information of the first connection and parameters related to the open flow controller in the parameters of the first connection.
  • the method may further include:
  • the OpenFlow controller performs an action of establishing the first connection, where the action includes, according to the type information of the first connection and the parameter of the first connection, related to the OpenFlow controller, to the first OpenFlow switch.
  • the establishment request of the first connection initiated by the parameter is responded to.
  • the establishment request of the first connection in this embodiment is initiated by the first open flow switch.
  • FIG. 6 is a flowchart of a method for receiving a message according to an embodiment of the present invention, where the method includes:
  • the first OpenFlow switch sends a first message to the OpenFlow controller, so that when the OpenFlow controller determines that the first OpenFlow switch belongs to the OpenFlow controller according to the first message, the OpenFlow control
  • the device sends a first response message to the first open flow switch, where the first response message corresponds to the first message.
  • the first response message corresponds to the first message.
  • the first OpenFlow switch receives the first response message.
  • the first OpenFlow switch receives the second message sent by the OpenFlow controller, where the second message includes type information of the first connection and parameters related to the OpenFlow controller in the parameters of the first connection, where The first connection is a connection of the first open flow switch to be established to the open flow controller.
  • the method may further include:
  • the first OpenFlow switch performs an action of establishing the first connection, where the action includes: controlling, according to the type information of the first connection, and parameters related to the OpenFlow controller in the parameters of the first connection to the OpenFlow
  • the device initiates a setup request for the first connection.
  • FIG. 7 is a flowchart of a method for sending a message according to an embodiment of the present invention, where the method includes:
  • the OpenFlow controller receives the first message sent by the first OpenFlow switch.
  • the open flow controller determines, according to the first message, that the first open flow switch belongs to the open flow controller, the open flow controller sends a first response message to the first open flow switch, where the first The response message corresponds to the first message.
  • the OpenFlow controller sends a second message to the first OpenFlow switch, where the second message includes type information of the first connection and parameters related to the OpenFlow controller in the parameters of the first connection, where a first open flow switch to be established and the open flow controller Connection.
  • the OpenFlow controller receives a second response message sent by the first OpenFlow switch, where the second response message includes a parameter related to the first OpenFlow switch in the parameter of the first connection, where the second response is The message corresponds to the second message.
  • the OpenFlow controller In the scenario where the OpenFlow controller initiates the setup request of the first connection, the OpenFlow controller needs to know the parameters related to the first OpenFlow switch in the parameters of the first connection, so as to facilitate the OpenFlow controller and the first OpenFlow.
  • the switch communicates.
  • the parameters related to the first OpenFlow switch in the parameters of the first connection include the first OpenFlow switch.
  • the method may further include:
  • the OpenFlow controller performs an action of establishing the first connection, where the action includes, according to the type information of the first connection, the parameter of the first connection, related to the first OpenFlow switch, to the first OpenFlow switch.
  • the parameter and the first connection parameter are responsive to the establishment request of the first connection initiated by the parameter related to the open flow controller.
  • the first open flow switch may obtain type information of the first connection and parameters related to the open flow controller in the parameters of the first connection, so the establishment request of the first connection may be initiated by the first open flow switch.
  • the method may further include:
  • the OpenFlow controller performs an action of establishing the first connection, where the action includes: according to the type information of the first connection, parameters related to the first OpenFlow switch in the parameters of the first connection, and the first connection
  • the parameter related to the OpenFlow controller in the parameter of the parameter initiates the establishment request of the first connection to the first OpenFlow switch.
  • the open flow controller may obtain type information of the first connection and parameters related to the first open flow switch in the parameters of the first connection, so the establishment request of the first connection may be open flow control Initiated by the controller.
  • the establishment request of the first connection in this embodiment may be initiated by the open flow controller.
  • FIG. 8 is a flowchart of a method for receiving a message according to an embodiment of the present invention, where the method includes:
  • the first OpenFlow switch sends a first message to the OpenFlow controller, so that when the OpenFlow controller determines, according to the first message, that the first OpenFlow switch belongs to the OpenFlow controller, the OpenFlow control
  • the device sends a first response message to the first open flow switch, where the first response message corresponds to the first message.
  • the first OpenFlow switch receives the first response message.
  • the first OpenFlow switch receives a second message sent by the OpenFlow controller, where the second message includes type information of the first connection and parameters related to the OpenFlow controller in the parameters of the first connection, where The first connection is a connection of the first open flow switch to be established to the open flow controller.
  • the first open flow switch sends a second response message to the open flow controller, where the second response message includes a parameter related to the first open flow switch in the parameter of the first connection, the second response message Corresponds to the second message.
  • the method may further include:
  • the first OpenFlow switch performs an action of establishing the first connection, where the action includes a root Determining, according to the type information of the first connection, the parameter related to the first OpenFlow switch, and the parameter related to the OpenFlow controller in the parameter of the first connection to the OpenFlow controller The establishment request of the first connection.
  • the method may further include:
  • the first OpenFlow switch performs an action of establishing the first connection, where the action includes: according to the type information of the first connection, parameters related to the first OpenFlow switch in the parameters of the first connection, and the first The parameters related to the OpenFlow controller in the connected parameters initiate a setup request for the first connection to the OpenFlow controller.
  • FIG. 9 is a flowchart of a method for sending a message according to an embodiment of the present invention, where the method includes:
  • the OpenFlow controller receives the first message sent by the first OpenFlow switch.
  • the open flow controller determines, according to the first message, that the first open flow switch belongs to the open flow controller, the open flow controller sends a first response message to the first open flow switch, where the first The response message corresponds to the first message.
  • the OpenFlow controller receives the second message sent by the first OpenFlow switch, where the second message includes type information of the first connection and parameters related to the first OpenFlow switch in the parameters of the first connection.
  • the first connection is a connection between the first open flow switch to be established and the open flow controller.
  • the second message in this embodiment is sent by the first open flow switch.
  • the second message includes type information of the first connection and parameters related to the first open flow switch in the parameters of the first connection.
  • the OpenFlow controller sends a second response message to the first OpenFlow switch, where the second response message includes parameters related to the OpenFlow controller in the parameters of the first connection.
  • the second response message in this embodiment is sent by the open flow controller.
  • the second message includes type information of the first connection and parameters of the first connection that are related to the open flow controller.
  • the method may further include:
  • the OpenFlow controller performs an action of establishing the first connection, where the action includes: according to the type information of the first connection, parameters related to the first OpenFlow switch in the parameters of the first connection, and the first connection
  • the parameter related to the OpenFlow controller in the parameter of the parameter initiates the establishment request of the first connection to the first OpenFlow switch.
  • the method may further include:
  • the OpenFlow controller performs an action of establishing the first connection, where the action includes, according to the type information of the first connection, the parameter of the first connection, related to the first OpenFlow switch, to the first OpenFlow switch.
  • the parameter and the first connection parameter are responsive to the establishment request of the first connection initiated by the parameter related to the open flow controller.
  • FIG. 10 is a flow chart of a method for establishing a connection according to an embodiment of the present invention, where the method includes:
  • the first OpenFlow switch sends a first message to the OpenFlow controller, so that when the OpenFlow controller determines, according to the first message, the first OpenFlow switch belongs to the OpenFlow control When the device is in charge, the OpenFlow controller sends a first response message to the first OpenFlow switch, where the first response message corresponds to the first message.
  • the first OpenFlow switch receives the first response message.
  • the first OpenFlow switch sends a second message to the OpenFlow controller, where the second message includes type information of the first connection and parameters related to the first OpenFlow switch in the parameters of the first connection, where
  • the first connection is a connection of the first open flow switch to be established to the open flow controller.
  • the first OpenFlow switch receives a second response message sent by the OpenFlow controller, where the second response message includes parameters related to the OpenFlow controller in parameters of the first connection.
  • the method further includes:
  • the first open flow switch performs an action of establishing the first connection, where the action includes: configuring, by the open flow controller, information about the type of the first connection, and the parameter of the first connection, related to the first open flow switch.
  • the parameter and the first connection parameter are responsive to the establishment request of the first connection initiated by the parameter related to the open flow controller.
  • the method further includes:
  • the first open flow switch performs an action of establishing the first connection, where the action includes, according to the type information of the first connection, the parameter of the first connection is related to the first open flow switch
  • the parameter and the first connection parameter are responsive to the establishment request of the first connection initiated by the parameter related to the open flow controller.
  • Embodiment 11 The embodiment of the invention provides an open flow controller, which can automatically acquire parameters of a connection to be established.
  • FIG. 11 is a schematic structural diagram of an OpenFlow controller according to an embodiment of the present invention, including:
  • Receiver 1101 and transmitter 1102 are Receiver 1101 and transmitter 1102;
  • the receiver 1101 is configured to receive a first message sent by the first OpenFlow switch.
  • the transmitter 1102 includes a determining unit 1103 and a sending unit 1104;
  • the determining unit 1103 is configured to determine, according to the first message, whether the first open flow switch belongs to the open flow controller;
  • the sending unit 1104 is configured to: when the determining unit 1103 determines that the first open flow switch belongs to the open flow controller, send a first response message to the first open flow switch, where the first response message includes the first connection Type information and a parameter related to the OpenFlow controller in the parameter of the first connection, where the first connection is a connection between the first OpenFlow switch and the OpenFlow controller to be established, and the first response message corresponds to The first message.
  • the determining unit 1103 specifically includes a detecting subunit and a first determining subunit
  • the detecting subunit is configured to detect whether the database includes an identifier of the first OpenFlow switch, where the first message includes an identifier of the first OpenFlow switch, and the database includes an identifier of an OpenFlow switch that is managed by the OpenFlow controller;
  • the first determining subunit is configured to determine that the first open flow switch belongs to the open flow controller when the detecting subunit detects that the database includes the identifier of the first open flow switch.
  • the determining unit 1103 specifically includes a determining subunit and a second determining subunit
  • the determining subunit is configured to determine whether the open flow controller corresponding to the identifier of the first open flow controller is the first open flow controller, and the first message includes an identifier of the first open flow controller;
  • the second determining subunit is configured to: when the determining subunit determines the first open flow controller When the corresponding open flow controller is identified as the first open flow controller, it is determined that the first open flow switch belongs to the open flow controller.
  • the receiver 1101 includes a first receiving subunit
  • the first receiving subunit is configured to receive, by the control channel, the first message that is sent by the second OpenFlow switch and is sent by the first OpenFlow switch in a broadcast form.
  • the receiver 1101 includes a second receiving subunit
  • the second receiving subunit is configured to receive, by using the control channel, the first message that is sent by the second OpenFlow switch and is sent by the first OpenFlow switch in a multicast manner, where the OpenFlow controller is corresponding to the multicast Member of a multicast group.
  • the open flow controller also includes an execution unit,
  • the executing unit is configured to perform an action of establishing the first connection, where the action includes: initiating, for the first open flow switch, the type information of the first connection and the parameter related to the OpenFlow controller in the parameter of the first connection The establishment request of the first connection is responded.
  • the OpenFlow controller provided in this embodiment can be implemented by the method provided in Embodiment 1.
  • FIG. 12 is a schematic structural diagram of a first open flow switch according to an embodiment of the present invention, including:
  • the transmitter 1201 is configured to send a first message to the OpenFlow controller, so that when the OpenFlow controller determines, according to the first message, that the first OpenFlow switch belongs to the OpenFlow controller, the OpenFlow controller Sending a first response message to the first open flow switch, where the first response message includes type information of the first connection and parameters of the first connection and the open flow control
  • the first connection is a connection between the first open flow switch to be established and the open flow controller, and the first response message corresponds to the first message;
  • the receiver 1202 is configured to receive the first response message.
  • the transmitter specifically includes a first sending subunit
  • the first sending subunit is configured to send the first message in a broadcast manner, so that after the second open flow switch receives the first message, the first message is forwarded to the first open flow controller by using a control channel.
  • the transmitter specifically includes a second sending subunit
  • the second sending subunit is configured to send the first message in a multicast manner, so that after the second open flow switch receives the first message, forwarding the first message to the first open flow controller by using a control channel.
  • the open flow controller is a member of the multicast group corresponding to the multicast.
  • the first open flow switch further includes an execution unit,
  • the execution unit is configured to perform an action of establishing the first connection, the action comprising: initiating the opening flow controller according to type information of the first connection and parameters related to the open flow controller in parameters of the first connection The establishment request of the first connection.
  • the first open flow switch provided in this embodiment can be implemented by the method provided in the second embodiment.
  • FIG. 13 is a schematic structural diagram of an OpenFlow controller according to an embodiment of the present invention, including:
  • Receiver 1301 and transmitter 1302 are Receiver 1301 and transmitter 1302;
  • the receiver 1301 is configured to receive a first message sent by the first OpenFlow switch.
  • the transmitter 1302 includes a determining unit 1303 and a sending unit 1304;
  • the determining unit 1303 is configured to determine, according to the first message, whether the first open flow switch belongs to the open flow controller;
  • the sending unit 1304 is configured to: when the determining unit 1303 determines that the first open flow switch belongs to the open flow controller, send a first response message to the first open flow switch, where the first response message corresponds to the first a message;
  • the receiver 1301 is further configured to receive a second message sent by the first open flow switch, where the second message includes type information of the first connection and parameters related to the first open flow switch in parameters of the first connection,
  • the first connection is a connection between the first open flow switch to be established and the open flow controller.
  • the determining unit 1303 specifically includes a detecting subunit and a first determining subunit
  • the detecting subunit is configured to detect whether the database includes an identifier of the first OpenFlow switch, where the first message includes an identifier of the first OpenFlow switch, and the database includes an identifier of an OpenFlow switch that is managed by the OpenFlow controller;
  • the first determining subunit is configured to determine that the first open flow switch belongs to the open flow controller when the detecting subunit detects that the database includes the identifier of the first open flow switch.
  • the determining unit specifically includes a determining subunit and a second determining subunit
  • the determining subunit is configured to determine whether the open flow controller corresponding to the identifier of the first open flow controller is the first open flow controller, and the first message includes an identifier of the first open flow controller;
  • the receiver includes a first receiving subunit
  • the first receiving subunit is configured to receive, by the control channel, the first message that is sent by the second OpenFlow switch and is sent by the first OpenFlow switch in a broadcast form.
  • the receiver includes a second receiving subunit
  • the second receiving subunit is configured to receive, by using the control channel, the first message that is sent by the second OpenFlow switch and is sent by the first OpenFlow switch in a multicast manner, where the OpenFlow controller is corresponding to the multicast Member of a multicast group.
  • the open flow controller also includes an execution unit,
  • the execution unit is configured to perform an action of establishing the first connection, where the action includes: according to the type information of the first connection and parameters related to the first open flow switch in the parameters of the first connection, to the first open flow switch Initiating a setup request for the first connection.
  • the OpenFlow controller provided in this embodiment can be implemented by the method provided in Embodiment 3.
  • FIG. 14 is a schematic structural diagram of a first open flow switch according to an embodiment of the present invention, including:
  • the transmitter 1401 is configured to send a first message to the OpenFlow controller, so that when the OpenFlow controller determines, according to the first message, that the first OpenFlow switch belongs to the OpenFlow controller, the OpenFlow controller Sending a first response message to the first open flow switch, where the first response message corresponds to the first message;
  • the receiver 1402 is configured to receive the first response message.
  • the transmitter 1401 is further configured to send a second message to the OpenFlow controller, where the second message packet is sent The type information of the first connection and the parameter related to the first open flow switch in the parameter of the first connection, where the first connection is a connection between the first open flow switch to be established and the open flow controller.
  • the transmitter 1401 specifically includes a first sending subunit
  • the first sending subunit is configured to send the first message in a broadcast manner, so that after the second open flow switch receives the first message, the first message is forwarded to the first open flow controller by using a control channel.
  • the transmitter 1401 specifically includes a second sending subunit
  • the second sending subunit is configured to send the first message in a multicast manner, so that after the second open flow switch receives the first message, the first message is forwarded to the first open flow controller by using a control channel,
  • the OpenFlow controller is a member of a multicast group corresponding to the multicast.
  • the first open flow switch further includes an execution unit,
  • the executing unit is configured to perform an action of establishing the first connection, where the action includes: initiating, by the OpenFlow controller, the type information of the first connection and the parameter related to the first OpenFlow switch in the parameter of the first connection The establishment request of the first connection is responded.
  • the first open flow switch provided in this embodiment can be implemented by the method provided in the fourth embodiment.
  • FIG. 15 is a schematic structural diagram of an OpenFlow controller according to an embodiment of the present invention, including:
  • Receiver 1501 and transmitter 1502 are Receiver 1501 and transmitter 1502;
  • the receiver 1501 is configured to receive a first message sent by the first OpenFlow switch.
  • the transmitter 1502 includes a determining unit 1503 and a sending unit 1504;
  • the determining unit 1503 is configured to determine, according to the first message, whether the first open flow switch belongs to the open flow controller;
  • the sending unit 1504 is configured to: when the determining unit 1503 determines that the first open flow switch belongs to the open flow controller, send a first response message to the first open flow switch, where the first response message corresponds to the first a message;
  • the transmitter 1502 is further configured to send, to the first OpenFlow switch, a second message, where the second message includes type information of the first connection and parameters related to the OpenFlow controller in parameters of the first connection, where the A connection is a connection of the first open flow switch to be established to the open flow controller.
  • the determining unit 1503 specifically includes a detecting subunit and a first determining subunit
  • the detecting subunit is configured to detect whether the database includes an identifier of the first OpenFlow switch, where the first message includes an identifier of the first OpenFlow switch, and the database includes an identifier of an OpenFlow switch that is managed by the OpenFlow controller;
  • the first determining subunit is configured to determine that the first open flow switch belongs to the open flow controller when the detecting subunit detects that the database includes the identifier of the first open flow switch.
  • the determining unit 1503 specifically includes a determining subunit and a second determining subunit
  • the determining subunit is configured to determine whether the open flow controller corresponding to the identifier of the first open flow controller is the first open flow controller, and the first message includes an identifier of the first open flow controller;
  • the receiver 1501 includes a first receiving subunit
  • the first receiving subunit is configured to receive, by the control channel, the first message that is sent by the second OpenFlow switch and is sent by the first OpenFlow switch in a broadcast form.
  • the receiver 1501 includes a second receiving subunit
  • the second receiving subunit is configured to receive, by using the control channel, the first message that is sent by the second OpenFlow switch and is sent by the first OpenFlow switch in a multicast manner, where the OpenFlow controller is corresponding to the multicast Member of a multicast group.
  • the open flow controller also includes an execution unit,
  • the executing unit is configured to perform an action of establishing the first connection, where the action includes: initiating, for the first open flow switch, the type information of the first connection and the parameter related to the OpenFlow controller in the parameter of the first connection The establishment request of the first connection is responded.
  • the OpenFlow controller provided in this embodiment can be implemented by the method provided in Embodiment 5.
  • FIG. 16 is a schematic structural diagram of a first open flow switch according to an embodiment of the present invention, including:
  • Transmitter 1601 and receiver 1602 are Transmitter 1601 and receiver 1602;
  • the transmitter 1601 is configured to send a first message to the OpenFlow controller, so that when the OpenFlow controller determines, according to the first message, that the first OpenFlow switch belongs to the OpenFlow controller, the OpenFlow controller Sending a first response message to the first open flow switch, where the first response message corresponds to the first message;
  • the receiver 1602 is configured to receive the first response message.
  • the receiver 1602 is further configured to receive a second message sent by the OpenFlow controller, where the second message is The information includes the type information of the first connection and the parameter related to the OpenFlow controller in the parameter of the first connection, where the first connection is a connection between the first open flow switch to be established and the OpenFlow controller.
  • the transmitter 1601 specifically includes a first sending subunit
  • the first sending subunit is configured to send the first message in a broadcast manner, so that after the second open flow switch receives the first message, the first message is forwarded to the first open flow controller by using a control channel.
  • the transmitter 1601 specifically includes a second sending subunit
  • the second sending subunit is configured to send the first message in a multicast manner, so that after the second open flow switch receives the first message, the first message is forwarded to the first open flow controller by using a control channel,
  • the OpenFlow controller is a member of a multicast group corresponding to the multicast.
  • the first open flow switch further includes an execution unit, configured to perform an action of establishing the first connection, the action including: according to the type information of the first connection and the parameter of the first connection and the open flow controller The relevant parameters initiate a setup request for the first connection to the open flow controller.
  • the first open flow switch provided in this embodiment can be implemented by the method provided in Embodiment 6.
  • FIG. 17 is a schematic structural diagram of an OpenFlow controller according to an embodiment of the present invention, including:
  • Receiver 1701 and transmitter 1702 are Receiver 1701 and transmitter 1702;
  • the receiver 1701 is configured to receive a first message sent by the first OpenFlow switch.
  • the transmitter 1702 includes a determining unit 1703 and a transmitting unit 1704;
  • the determining unit 1703 is configured to determine, according to the first message, whether the first open flow switch belongs to the open flow controller;
  • the sending unit 1704 is configured to: when the determining unit 1703 determines that the first open flow switch belongs to the open flow controller, send a first response message to the first open flow switch, where the first response message corresponds to the first a message;
  • the transmitter 1702 is further configured to send, to the first OpenFlow switch, a second message, where the second message includes type information of the first connection and parameters related to the OpenFlow controller in parameters of the first connection, where a connection is a connection between the first open flow switch to be established and the open flow controller;
  • the receiver 1701 is further configured to receive a second response message sent by the first open flow switch, where the second response message includes a parameter related to the first open flow switch in the parameter of the first connection, the second response The message corresponds to the second message.
  • the determining unit 1703 specifically includes a detecting subunit and a first determining subunit
  • the detecting subunit is configured to detect whether the database includes an identifier of the first OpenFlow switch, where the first message includes an identifier of the first OpenFlow switch, and the database includes an identifier of an OpenFlow switch that is managed by the OpenFlow controller;
  • the first determining subunit is configured to determine that the first open flow switch belongs to the open flow controller when the detecting subunit detects that the database includes the identifier of the first open flow switch.
  • the determining unit 1703 specifically includes a determining subunit and a second determining subunit
  • the determining subunit is configured to determine whether the open flow controller corresponding to the identifier of the first open flow controller is the first open flow controller, and the first message includes an identifier of the first open flow controller;
  • the second determining subunit is configured to: when the determining subunit determines the first open flow controller When the corresponding open flow controller is identified as the first open flow controller, it is determined that the first open flow switch belongs to the open flow controller.
  • the receiver 1701 includes a first receiving subunit
  • the first receiving subunit is configured to receive, by the control channel, the first message that is sent by the second OpenFlow switch and is sent by the first OpenFlow switch in a broadcast form.
  • the receiver 1701 includes a second receiving subunit
  • the second receiving subunit is configured to receive, by using the control channel, the first message that is sent by the second OpenFlow switch and is sent by the first OpenFlow switch in a multicast manner, where the OpenFlow controller is corresponding to the multicast Member of a multicast group.
  • the open flow controller also includes an execution unit,
  • the executing unit is configured to perform an action of establishing the first connection, where the action includes, according to the type information of the first connection, the parameter related to the first open flow switch in the parameter of the first connection And responding to the establishment request of the first connection initiated by the parameter related to the OpenFlow controller in the parameter of the first connection.
  • the open flow controller also includes an execution unit,
  • the execution unit is configured to perform an action of establishing the first connection, where the action includes: according to type information of the first connection, parameters related to the first open flow switch in parameters of the first connection, and parameters of the first connection.
  • the parameter related to the OpenFlow controller initiates the establishment request of the first connection to the first OpenFlow switch.
  • the OpenFlow controller provided in this embodiment can be implemented by the method provided in Embodiment 7.
  • Example 18 The embodiment of the present invention provides another first open flow switch, which can automatically obtain parameters of a connection to be established.
  • FIG. 18 is a schematic structural diagram of a first open flow switch according to an embodiment of the present invention, including:
  • the transmitter 1801 is configured to send a first message to the OpenFlow controller, so that when the OpenFlow controller determines, according to the first message, that the first OpenFlow switch belongs to the OpenFlow controller, the OpenFlow controller Sending a first response message to the first open flow switch, where the first response message corresponds to the first message;
  • the receiver 1802 is configured to receive the first response message.
  • the receiver 1802 is further configured to receive a second message sent by the OpenFlow controller, where the second message includes type information of the first connection and parameters related to the OpenFlow controller in parameters of the first connection, where a connection is a connection between the first open flow switch to be established and the open flow controller;
  • the transmitter 1801 is further configured to send a second response message to the OpenFlow controller, where the second response message includes a parameter related to the first OpenFlow switch in the parameter of the first connection, where the second response message corresponds to In the second message.
  • the transmitter 1801 specifically includes a first sending subunit
  • the first sending subunit is configured to send the first message in a broadcast manner, so that after the second open flow switch receives the first message, the first message is forwarded to the first open flow controller by using a control channel.
  • the transmitter 1801 specifically includes a second sending subunit
  • the second sending subunit is configured to send the first message in a multicast manner, so that after the second open flow switch receives the first message, the first message is forwarded to the first open flow controller by using a control channel,
  • the OpenFlow controller is a member of a multicast group corresponding to the multicast.
  • the first open flow switch further includes an execution unit,
  • the execution unit is configured to perform an action of establishing the first connection, where the action includes: according to type information of the first connection, parameters related to the first open flow switch in parameters of the first connection, and parameters of the first connection.
  • the parameter related to the OpenFlow controller initiates the establishment request of the first connection to the OpenFlow controller.
  • the first open flow switch further includes an execution unit,
  • the execution unit is configured to perform an action of establishing the first connection, where the action includes: selecting, by the OpenFlow controller, type information of the first connection, parameters related to the first OpenFlow switch, and parameters of the first connection, and The setting of the first connection initiated by the parameter related to the OpenFlow controller in the parameter of the first connection is responsive.
  • the first open flow switch provided in this embodiment can be implemented by the method provided in Embodiment 8.
  • the eighth embodiment please refer to the eighth embodiment.
  • FIG. 19 is a schematic structural diagram of an OpenFlow controller according to an embodiment of the present invention, including:
  • Receiver 1901 and transmitter 1902
  • the receiver 1901 is configured to receive a first message sent by the first open flow switch;
  • the transmitter 1902 includes a determining unit 1903 and a sending unit 1904;
  • the determining unit 1903 is configured to determine, according to the first message, whether the first open flow switch belongs to the open flow controller;
  • the sending unit 1904 is configured to: when the determining unit 1903 determines that the first open flow switch belongs to the open flow controller, send a first response message to the first open flow switch, where the first response message corresponds to the first a message;
  • the receiver 1901 is further configured to receive a second message sent by the first open flow switch, where the second message includes type information of the first connection and parameters related to the first open flow switch in parameters of the first connection,
  • the first connection is a connection between the first open flow switch to be established and the open flow controller;
  • the transmitter 1902 is further configured to send a second response message to the first OpenFlow switch, where the second response message includes parameters related to the OpenFlow controller in the parameters of the first connection.
  • the determining unit 1903 specifically includes a detecting subunit and a first determining subunit
  • the detecting subunit is configured to detect whether the database includes an identifier of the first OpenFlow switch, where the first message includes an identifier of the first OpenFlow switch, and the database includes an identifier of an OpenFlow switch that is managed by the OpenFlow controller;
  • the first determining subunit is configured to determine that the first open flow switch belongs to the open flow controller when the detecting subunit detects that the database includes the identifier of the first open flow switch.
  • the determining unit 1903 specifically includes a determining subunit and a second determining subunit
  • the determining subunit is configured to determine whether the open flow controller corresponding to the identifier of the first open flow controller is the first open flow controller, and the first message includes an identifier of the first open flow controller;
  • the receiver 1901 includes a first receiving subunit
  • the first receiving subunit is configured to receive, by the control channel, the first message that is sent by the second OpenFlow switch and is sent by the first OpenFlow switch in a broadcast form.
  • the receiver 1901 includes a second receiving subunit
  • the second receiving subunit is configured to receive, by using the control channel, the first message that is sent by the second OpenFlow switch and is sent by the first OpenFlow switch in a multicast manner, where the OpenFlow controller is corresponding to the multicast Member of a multicast group.
  • the open flow controller also includes an execution unit,
  • the execution unit is configured to perform an action of establishing the first connection, where the action includes: according to type information of the first connection, parameters related to the first open flow switch in parameters of the first connection, and parameters of the first connection.
  • the parameter related to the OpenFlow controller initiates the establishment request of the first connection to the first OpenFlow switch.
  • the open flow controller also includes an execution unit,
  • the executing unit is configured to perform an action of establishing the first connection, where the action includes, according to the type information of the first connection, the parameter related to the first open flow switch in the parameter of the first connection And responding to the establishment request of the first connection initiated by the parameter related to the OpenFlow controller in the parameter of the first connection.
  • the OpenFlow controller provided in this embodiment can be implemented by the method provided in Embodiment 9.
  • FIG. 20 is a schematic structural diagram of a first open flow switch according to an embodiment of the present invention, including:
  • the transmitter 2001 is configured to send a first message to the OpenFlow controller, so that when the OpenFlow controller determines, according to the first message, that the first OpenFlow switch belongs to the OpenFlow controller, the OpenFlow controller Sending a first response message to the first open flow switch, the first ringing The response message corresponds to the first message;
  • the receiver 2002 is configured to receive the first response message.
  • the transmitter 2001 is further configured to send, to the OpenFlow controller, a second message, where the second message includes type information of the first connection and parameters related to the first OpenFlow switch in the parameters of the first connection, where the a connection is a connection between the first open flow switch to be established and the open flow controller;
  • the receiver 2002 is further configured to receive a second response message sent by the OpenFlow controller, where the second response message includes parameters related to the OpenFlow controller in parameters of the first connection.
  • the transmitter 2001 specifically includes a first sending subunit
  • the first sending subunit is configured to send the first message in a broadcast manner, so that after the second open flow switch receives the first message, the first message is forwarded to the first open flow controller by using a control channel.
  • the transmitter 2001 specifically includes a second sending subunit
  • the second sending subunit is configured to send the first message in a multicast manner, so that after the second open flow switch receives the first message, the first message is forwarded to the first open flow controller by using a control channel,
  • the OpenFlow controller is a member of a multicast group corresponding to the multicast.
  • the first open flow switch further includes an execution unit,
  • the execution unit is configured to perform an action of establishing the first connection, where the action includes: selecting, by the OpenFlow controller, type information of the first connection, parameters related to the first OpenFlow switch, and parameters of the first connection, and The setting of the first connection initiated by the parameter related to the OpenFlow controller in the parameter of the first connection is responsive.
  • the first open flow switch further includes an execution unit, The execution unit is configured to perform an action of establishing the first connection, where the action includes: according to type information of the first connection, parameters related to the first open flow switch in parameters of the first connection, and parameters of the first connection.
  • the parameter related to the OpenFlow controller initiates the establishment request of the first connection to the OpenFlow controller.
  • the first open flow switch provided in this embodiment can be implemented by the method provided in Embodiment 10.
  • Embodiments 1 to 20 relate to the first OpenFlow switch and the second OpenFlow switch.
  • the "first” in the “first open flow switch” is only used to emphasize that the "first open flow switch” and the “second open flow switch” are not the same device.
  • the “second” in the “second open flow switch” is only used to emphasize that the "second open flow switch” is not the same device as the "first open flow switch”.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例提供了一种发送消息的方法,包括:开放流控制器接收第一开放流交换机发送的第一消息;当该开放流控制器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖时,该开放流控制器向该第一开放流交换机发送第一响应消息,该第一响应消息包含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有关的参数,该第一连接为待建立的该第一开放流交换机与该开放流控制器的连接,该第一响应消息对应于该第一消息。此外,本发明实施例还提供了其他发送消息的方法、接收消息方法、开放流控制器及第一开放流交换机。通过本发明实施例提出的技术方案,开放流交换机或开放流控制器可以自动获取待建立的连接的参数。

Description

发送消息的方法、 接收消息方法、 开放流控制器及第一开放流交换机 技术领域 本发明实施例涉及通信技术, 尤其涉及发送消息的方法、 接收消息方 法、 开放流控制器及第一开放流交换机。
背景技术
开放流(OpenFlow )是一种新型网络模型。 开放流网络中, 可以包括 开放流交换机以及开放流控制器。 开放流交换机与开放流控制器通信前, 需要建立开放流交换机与开放流控制器的连接。 为实现连接的建立, 可以 通过手工配置待建立的连接的参数。 待建立的连接的参数配置完成后, 开 放流交换机与开放流控制器根据待建立的连接的参数, 执行建立连接的动 作。
发明人发现现有技术存在如下问题:
手工配置待建立的连接的参数导致建立开放流交换机与开放流控制器 的连接的效率比较低, 不利于快速建立连接。
发明内容
本发明实施例提供的技术方案可以自动获取待建立的连接的参数。 开 放流交换机或开放流控制器可以根据自动获取的参数建立开放流交换机与 开放流控制器的连接。
一方面, 本发明实施例提供的一种发送消息的方法, 包括:
开放流控制器接收第一开放流交换机发送的第一消息;
当该开放流控制器根据该第一消息确定该第一开放流交换机属于该开 放流控制器管辖时, 该开放流控制器向该第一开放流交换机发送第一响应 消息, 该第一响应消息包含第一连接的类型信息以及该第一连接的参数中 与该开放流控制器有关的参数, 该第一连接为待建立的该第一开放流交换 机与该开放流控制器的连接, 该第一响应消息对应于该第一消息。 另一方面, 本发明实施例提供的一种接收消息的方法, 包括: 第一开放流交换机向开放流控制器发送第一消息, 以便于当该开放流 控制器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖 时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第一响 应消息包含第一连接的类型信息以及该第一连接的参数中与该开放流控制 器有关的参数, 该第一连接为待建立的待建立的该第一开放流交换机与该 开放流控制器的连接, 该第一响应消息对应于该第一消息;
该第一开放流交换机接收该第一响应消息。
另一方面, 本发明实施例提供的一种发送消息的方法, 包括: 开放流控制器接收第一开放流交换机发送的第一消息;
当该开放流控制器根据该第一消息确定该第一开放流交换机属于该开 放流控制器管辖时, 该开放流控制器向该第一开放流交换机发送第一响应 消息, 该第一响应消息对应于该第一消息;
该开放流控制器接收该第一开放流交换机发送的第二消息, 该第二消 息包含第一连接的类型信息以及该第一连接的参数中与该第一开放流交换 机有关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控 制器的连接。
另一方面, 本发明实施例提供的一种接收消息的方法, 包括: 第一开放流交换机向开放流控制器发送第一消息, 以便于当该开放流 控制器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖 时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第一响 应消息对应于该第一消息;
该第一开放流交换机接收该第一响应消息;
该第一开放流交换机向该开放流控制器发送第二消息, 该第二消息包 含第一连接的类型信息以及该第一连接的参数中与该第一开放流交换机有 关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器 的连接。
另一方面, 本发明实施例提供的一种发送消息的方法, 包括: 开放流控制器接收第一开放流交换机发送的第一消息;
当该开放流控制器根据该第一消息确定该第一开放流交换机属于该开 放流控制器管辖时, 该开放流控制器向该第一开放流交换机发送第一响应 消息, 该第一响应消息对应于该第一消息;
该开放流控制器向该第一开放流交换机发送第二消息, 该第二消息包 含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有关的 参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器的连 接。
另一方面, 本发明实施例提供的一种接收消息的方法, 包括: 第一开放流交换机向开放流控制器发送第一消息, 以便于当该开放流 控制器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖 时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第一响 应消息对应于该第一消息;
该第一开放流交换机接收该第一响应消息;
该第一开放流交换机接收该开放流控制器发送的第二消息, 该第二消 息包含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有 关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器 的连接。
另一方面, 本发明实施例提供的一种发送消息的方法, 包括: 开放流控制器接收第一开放流交换机发送的第一消息;
当该开放流控制器根据该第一消息确定该第一开放流交换机属于该开 放流控制器管辖时, 该开放流控制器向该第一开放流交换机发送第一响应 消息, 该第一响应消息对应于该第一消息;
该开放流控制器向该第一开放流交换机发送第二消息, 该第二消息包 含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有关的 参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器的连 接;
该开放流控制器接收该第一开放流交换机发送的第二响应消息, 该第 二响应消息中包含该第一连接的参数中与该第一开放流交换机有关的参 数, 该第二响应消息对应于该第二消息。
另一方面, 本发明实施例提供的一种接收消息的方法, 包括: 第一开放流交换机向开放流控制器发送第一消息, 以便于当该开放流 控制器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖 时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第一响 应消息对应于该第一消息;
该第一开放流交换机接收该第一响应消息;
该第一开放流交换机接收该开放流控制器发送的第二消息, 该第二消 息包含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有 关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器 的连接;
该第一开放流交换机向该开放流控制器发送第二响应消息, 该第二响 应消息中包含该第一连接的参数中与该第一开放流交换机有关的参数, 该 第二响应消息对应于该第二消息。
另一方面, 本发明实施例提供的一种发送消息的方法, 包括: 开放流控制器接收第一开放流交换机发送的第一消息;
当该开放流控制器根据该第一消息确定该第一开放流交换机属于该开 放流控制器管辖时, 该开放流控制器向该第一开放流交换机发送第一响应 消息, 该第一响应消息对应于该第一消息;
该开放流控制器接收该第一开放流交换机发送的第二消息, 该第二消 息包含第一连接的类型信息以及该第一连接的参数中与该第一开放流交换 机有关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控 制器的连接;
该开放流控制器向该第一开放流交换机发送第二响应消息, 该第二响 应消息包含该第一连接的参数中与该开放流控制器有关的参数。
另一方面, 本发明实施例提供的一种接收消息的方法, 包括: 第一开放流交换机向开放流控制器发送第一消息, 以便于当该开放流 控制器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖 时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第一响 应消息对应于该第一消息;
该第一开放流交换机接收该第一响应消息;
该第一开放流交换机向该开放流控制器发送第二消息, 该第二消息包 含第一连接的类型信息以及该第一连接的参数中与该第一开放流交换机有 关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器 的连接;
该第一开放流交换机接收该开放流控制器发送的第二响应消息, 该第 二响应消息包含该第一连接的参数中与该开放流控制器有关的参数。
另一方面, 本发明实施例提供的一种开放流控制器, 包括:
接收器以及发送器;
该接收器用于接收第一开放流交换机发送的第一消息;
该发送器包括确定单元以及发送单元;
该确定单元用于根据该第一消息确定该第一开放流交换机是否属于该 开放流控制器管辖;
该发送单元用于当该确定单元确定该第一开放流交换机属于该开放流 控制器管辖时, 向该第一开放流交换机发送第一响应消息, 该第一响应消 息包含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有 关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器 的连接, 该第一响应消息对应于该第一消息。
另一方面, 本发明实施例提供的一种第一开放流交换机, 包括: 发送器, 用于向开放流控制器发送第一消息, 以便于当该开放流控制 器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第一响应消 息包含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有 关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器 的连接, 该第一响应消息对应于该第一消息;
接收器, 用于接收该第一响应消息。
另一方面, 本发明实施例提供的一种开放流控制器, 包括:
接收器以及发送器;
该接收器用于接收第一开放流交换机发送的第一消息;
该发送器包括确定单元以及发送单元;
该确定单元用于根据该第一消息确定该第一开放流交换机是否属于该 开放流控制器管辖;
该发送单元用于, 当该确定单元确定该第一开放流交换机属于该开放 流控制器管辖时, 向该第一开放流交换机发送第一响应消息, 该第一响应 消息对应于该第一消息;
该接收器还用于接收该第一开放流交换机发送的第二消息, 该第二消 息包含第一连接的类型信息以及该第一连接的参数中与该第一开放流交换 机有关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控 制器的连接。
另一方面, 本发明实施例提供的一种第一开放流交换机, 包括: 发送器以及接收器;
该发送器用于向开放流控制器发送第一消息, 以便于当该开放流控制 器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第一响应消 息对应于该第一消息;
该接收器用于接收该第一响应消息;
该发送器还用于向该开放流控制器发送第二消息, 该第二消息包含第 一连接的类型信息以及该第一连接的参数中与该第一开放流交换机有关的 参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器的连 接。
另一方面, 本发明实施例提供的一种开放流控制器, 包括:
接收器以及发送器;
该接收器用于接收第一开放流交换机发送的第一消息;
该发送器包括确定单元以及发送单元;
该确定单元用于根据该第一消息确定该第一开放流交换机是否属于该 开放流控制器管辖;
该发送单元用于, 当该确定单元确定该第一开放流交换机属于该开放 流控制器管辖时, 向该第一开放流交换机发送第一响应消息, 该第一响应 消息对应于该第一消息;
该发送器还用于向该第一开放流交换机发送第二消息, 该第二消息包 含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有关的 参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器的连 接。
另一方面, 本发明实施例提供的一种第一开放流交换机, 包括: 发送器以及接收器;
该发送器用于向开放流控制器发送第一消息, 以便于当该开放流控制 器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第一响应消 息对应于该第一消息; 该接收器用于接收该第一响应消息;
该接收器还用于接收该开放流控制器发送的第二消息, 该第二消息包 含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有关的 参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器的连 接。
另一方面, 本发明实施例提供的一种开放流控制器, 包括:
接收器以及发送器;
该接收器用于接收第一开放流交换机发送的第一消息;
该发送器包括确定单元以及发送单元;
该确定单元用于根据该第一消息确定该第一开放流交换机是否属于该 开放流控制器管辖;
该发送单元用于, 当该确定单元确定该第一开放流交换机属于该开放 流控制器管辖时, 向该第一开放流交换机发送第一响应消息, 该第一响应 消息对应于该第一消息;
该发送器还用于向该第一开放流交换机发送第二消息, 该第二消息包 含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有关的 参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器的连 接;
该接收器还用于接收该第一开放流交换机发送的第二响应消息, 该第 二响应消息中包含该第一连接的参数中与该第一开放流交换机有关的参 数, 该第二响应消息对应于该第二消息。
另一方面, 本发明实施例提供的一种第一开放流交换机, 包括: 发送器以及接收器;
该发送器用于向开放流控制器发送第一消息, 以便于当该开放流控制 器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第一响应消 息对应于该第一消息;
该接收器用于接收该第一响应消息;
该接收器还用于接收该开放流控制器发送的第二消息, 该第二消息包 含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有关的 参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器的连 接;
该发送器还用于向该开放流控制器发送第二响应消息, 该第二响应消 息中包含该第一连接的参数中与该第一开放流交换机有关的参数, 该第二 响应消息对应于该第二消息。
另一方面, 本发明实施例提供的一种开放流控制器, 包括:
接收器以及发送器;
该接收器用于接收第一开放流交换机发送的第一消息;
该发送器包括确定单元以及发送单元;
该确定单元用于根据该第一消息确定该第一开放流交换机是否属于该 开放流控制器管辖;
该发送单元用于, 当该确定单元确定该第一开放流交换机属于该开放 流控制器管辖时, 向该第一开放流交换机发送第一响应消息, 该第一响应 消息对应于该第一消息;
该接收器还用于接收该第一开放流交换机发送的第二消息, 该第二消 息包含第一连接的类型信息以及该第一连接的参数中与该第一开放流交换 机有关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控 制器的连接;
该发送器还用于向该第一开放流交换机发送第二响应消息, 该第二响 应消息包含该第一连接的参数中与该开放流控制器有关的参数。
另一方面, 本发明实施例提供的一种第一开放流交换机, 包括: 发送器以及接收器; 该发送器用于向开放流控制器发送第一消息, 以便于当该开放流控制 器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第一响应消 息对应于该第一消息;
该接收器用于接收该第一响应消息;
该发送器还用于向该开放流控制器发送第二消息, 该第二消息包含第 一连接的类型信息以及该第一连接的参数中与该第一开放流交换机有关的 参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器的连 接;
该接收器还用于接收该开放流控制器发送的第二响应消息, 该第二响 应消息包含该第一连接的参数中与该开放流控制器有关的参数。
可见, 通过本发明实施例提供的技术方案, 开放流交换机(或者开放 流控制器) 向开放流控制器(或者开放流交换机)发起连接建立请求前, 开放流交换机(或者开放流控制器)接收到对端发送的消息, 该消息中包 含了待建立的连接的参数中与对端有关的参数。
上述机制实现了对待建立的连接的参数的自动配置。 因此, 本发明实 施例提供的技术方案可以自动获取待建立的连接的参数。 开放流交换机或 开放流控制器可以根据自动获取的参数建立开放流交换机与开放流控制器 的连接。
附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作一筒单地介绍, 显而易见地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例提供的一种发送消息的方法的流程图;
图 2是本发明实施例提供的一种接收消息的方法的流程图; 图 3是本发明实施例提供的另一种发送消息的方法的流程图
图 4是本发明实施例提供的另一种接收消息的方法的流程图
图 5是本发明实施例提供的另一种发送消息的方法的流程图
图 6是本发明实施例提供的另一种接收消息的方法的流程图
图 7是本发明实施例提供的另一种发送消息的方法的流程图
图 8是本发明实施例提供的另一种接收消息的方法的流程图
图 9是本发明实施例提供的另一种发送消息的方法的流程图
图 10是本发明实施例提供的另一种接收消息的方法的流程图; 图 11是本发明实施例提供的一种开放流控制器的结构示意图; 图 12是本发明实施例提供的一种第一开放流交换机的结构示意图; 图 13是本发明实施例提供的另一种开放流控制器的结构示意图; 图 14是本发明实施例提供的另一种第一开放流交换机的结构示意图; 图 15是本发明实施例提供的另一种开放流控制器的结构示意图; 图 16是本发明实施例提供的另一种第一开放流交换机的结构示意图; 图 17是本发明实施例提供的另一种开放流控制器的结构示意图; 图 18是本发明实施例提供的另一种第一开放流交换机的结构示意图; 图 19是本发明实施例提供的另一种开放流控制器的结构示意图; 图 20是本发明实施例提供的另一种第一开放流交换机的结构示意图。 具体实肺式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。
实施例一:
本发明实施例提供了一种发送消息的方法, 可以自动获取待建立的连 接的参数。参见图 1 ,图 1是本发明实施例提供的发送消息的方法的流程图, 该方法包括:
101: 开放流控制器接收第一开放流交换机发送的第一消息。
开放流控制器 ( OpenFlow Controller ) 是开放流网络 ( OpenFlow Network ) 中的一种网络设备。 开放流控制器可以对开放流网络进行控制。 开放流控制器可以向开放流交换机下发流表。
开放流交换机 ( OpenFlow Switch )也是开放流网络中的一种网络设备。 开放流交换机可以根据流表转发报文。
关于开放流控制器、 开放流交换机以及开放流网络, 请参考标准制定 组织开放流网络基础 ( OpenFlow Networking Foundation, OFN )发布的《开 放流交换机规范》版本 1.0 ( OpenFlow Switch Specification 1.0 ) 。
第一开放流交换机向开放流控制器发送第一消息。
第一开放流交换机可以以广播形式发送该第一消息。 在这种场景下, 整个广播域都可以收到该第一消息。 开放流控制器位于该广播域。
第一开放流交换机可以以组播形式发送该第一消息。 在这种场景下, 所有组播组的成员都可以收到该第一消息。 当开放流控制器是该组播组的 成员时, 开放流控制器也可以收到第一开放流交换机以组播形式发送的第 一消息。 具体实现时, 第一开放流交换机可以根据网络创新的全球环境 ( Global Environment for Network Innovations , GENI )发布的开放流发现协 议(OpenFlow Discovery Protocol , OFDP ) , 在第一开放流交换机的所有端 口上以组播形式发送第一消息。 开放流发现协议是基于链路层发现协议 ( Link Layer Discovery Protocol , LLDP ) 的协议。
第一消息中可以包含源媒体访问控制 ( Media Access Control , MAC ) 协议地址, 源 MAC协议地址是第一开放流交换机的 MAC协议地址。
开放流控制器可以通过下述方式接收第一消息:
第二开放流交换机与开放流控制器建立了控制通道 ( controller channel ) 。 第一开放流交换机通过广播方式或者组播方式发送第一消息。 其中, 当第一消息为广播时, 开放流控制器位于广播域; 当第一消息为组 播时, 开放流控制器为组播组的成员。 第一消息到达第二开放流交换机后, 第二开放流交换机可以通过控制通道将第一消息转发至开放流控制器。 关 于控制通道, 请参考 OFN发布的 《开放流交换机规范》版本 1.0。
上述方案可以达到以下技术效果:
在第一开放流交换机不知道开放流控制器的位置的情况下, 第一开放 流交换机可以通过广播方式或者组播方式发送第一消息。 第一消息可以随 着广播或者组播在整个广播域或者组播组内传播, 并最终到达开放流控制 器。 由于第一开放流交换机不知道开放流控制器的路径, 第一消息到达开 放流控制器可能需要较长的时间。
第二开放流交换机知道开放流控制器的路径, 因此第二开放流交换机 通过控制通道将第一消息转发至开放流控制器需要的时间可以相对较少。
102: 当该开放流控制器根据该第一消息确定该第一开放流交换机属于 该开放流控制器管辖时, 该开放流控制器向该第一开放流交换机发送第一 响应消息, 该第一响应消息包含第一连接的类型信息以及该第一连接的参 数中与该开放流控制器有关的参数, 该第一连接为待建立的该第一开放流 交换机与该开放流控制器的连接, 该第一响应消息对应于该第一消息。
开放流控制器可以根据该第一消息确定第一开放流交换机是否属于开 放流控制器管辖。 确定方法可以有多种, 本发明不作具体限定。 下文提供 了两种确定方法:
第一种确定方法:
开放流控制器可以访问包含了开放流控制器管辖的开放流交换机的标 识的数据库。 第一消息包含第一开放流交换机的标识。 当开放流控制器检 测到数据库包含第一开放流交换机的标识时, 开放流控制器确定第一开放 流交换机属于开放流控制器管辖。 第二种确定方法:
第一消息包含了第一开放流控制器的标识。 当第一开放流控制器判断 出第一消息中包含的第一开放流控制器的标识对应的开放流控制器为第一 开放流控制器时, 第一开放流控制器确定第一开放流交换机属于开放流控 制器管辖。
当开放流控制器根据第一消息确定第一开放流交换机属于开放流控制 器管辖时, 开放流控制器向第一开放流交换机发送第一响应消息。 第一响 应消息对应于第一消息。 具体实现时, 开放流控制器以单播形式向第一开 放流交换机发送第一响应消息。 在这种场景下, 第一响应消息的目的 MAC 协议地址为第一开放流交换机的 MAC协议地址。
第一响应消息可以为待建立的第一开放流交换机与开放流控制器的连 接提供参数。 第一开放流交换机与开放流控制器的连接为第一连接。 第一 连接可以是传输控制协议(Transmission Control Protocol, TCP ) , 也可以 是安全套接层( Secure Sockets Layer, SSL )协议, 本发明不作具体限定。
第一响应消息中包含了第一连接的类型信息。 第一连接的类型信息用 于标识待建立的第一连接的类型。 具体实现时, 第一连接的类型信息可以 载在第一响应消息的某个字段或者多个字段。
第一响应消息中包含了第一连接的参数中与开放流控制器有关的参 数。 第一连接的参数为建立第一连接需要用到的参数的集合。 例如, 当第 一连接的类型为 TCP 时, 第一连接的参数包括开放流控制器的网际协议 ( Internet Protocol, IP )地址、 第一开放流交换机的 IP地址、 建立 TCP连 接的方式、开放流控制器的 TCP端口号以及第一开放流交换机的 TCP端口 号。 其中, 建立 TCP连接的方式可以是主动建立连接, 也可以是被动建立 连接。
第一连接的参数包含与开放流控制器有关的参数以及与第一开放流交 换机有关的参数。 当第一连接的类型为 TCP时, 第一连接的参数中与开放 流控制器有关的参数包括开放流控制器的 IP地址以及开放流控制器的 TCP 端口号; 第一连接的参数中与第一开放流交换机有关的参数包括第一开放 流交换机的 IP地址以及第一开放流交换机的 TCP端口号。 可见, 通过本发明实施例提供的技术方案, 开放流控制器向开放流交 换机发送的消息中包含了待建立的连接的参数中与开放流控制器有关的参 数。 开放流交换机可以通过接收开放流控制器发送的消息, 自动获取待建 立的连接的参数。
上述机制实现了对待建立的连接的参数的自动配置。 开放流交换机可 以根据自动获取的参数建立开放流交换机与开放流控制器的连接。
可选的, 在本实施例提供的方法中, 102之后还可以包括:
103: 该开放流控制器执行建立该第一连接的动作, 该动作包括对该第 一开放流交换机根据该第一连接的类型信息以及该第一连接的参数中与该 开放流控制器有关的参数发起的该第一连接的建立请求进行响应。
建立第一连接的动作可以由第一连接对应的技术标准规定。例如, TCP 对应的标准规定了建立 TCP连接需要执行的动作。 一般来说, 建立第一连 接的动作至少包括发送第一连接的建立请求以及对第一连接的建立请求进 行响应。 其中, 发送第一连接的建立请求是指建立第一连接的发起方向建 立第一连接的接收方发送第一连接的建立请求。 对第一连接的建立请求进 行响应是指建立第一连接的接收方对第一连接的建立请求进行响应, 并将 响应发送至建立第一连接的发起方。
具体实现时, 建立第一连接的发起方可以是第一开放流交换机, 也可 以是开放流控制器。 当第一连接的类型为 TCP时, 建立 TCP连接的方式决 定了建立第一连接的发起方。
本实施例中, 第一连接的建立请求是第一开放流交换机发起的。 具体 来说, 第一开放流交换机根据第一连接的类型信息以及第一连接的参数中 与开放流控制器有关的参数发起第一连接的建立请求。 第一开放流交换机 收到第一连接的建立请求后, 第一开放流交换机对第一连接的建立请求进 行响应。 实施例二:
本发明实施例提供了另一种接收消息的方法, 可以自动获取待建立的 连接的参数。 参见图 2, 图 2是本发明实施例提供的接收消息的方法的流程 图, 该方法包括:
201 : 第一开放流交换机向开放流控制器发送第一消息, 以便于当该开 放流控制器根据该第一消息确定该第一开放流交换机属于该开放流控制器 管辖时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第 一响应消息包含第一连接的类型信息以及该第一连接的参数中与该开放流 控制器有关的参数, 该第一连接为待建立的该第一开放流交换机与该开放 流控制器的连接, 该第一响应消息对应于该第一消息。
具体实现时, 可以参见实施例一中的 101以及 102。
202: 该第一开放流交换机接收该第一响应消息。
具体实现时, 可以参见实施例一中的 102。
可选的, 在本实施例提供的方法中, 202之后还可以包括:
203: 该第一开放流交换机执行建立该第一连接的动作, 该动作包括根 据该第一连接的类型信息以及该第一连接的参数中与该开放流控制器有关 的参数向该开放流控制器发起该第一连接的建立请求。
具体实现时, 可以参见实施例一中的 103。
实施例三
本发明实施例提供了另一种发送消息的方法, 可以自动获取待建立的 连接的参数。 参见图 3 , 图 3是本发明实施例提供的发送消息的方法的流程 图, 该方法包括: 301: 开放流控制器接收第一开放流交换机发送的第一消息。
具体实现时, 请参考实施例一中的 101。
302: 当该开放流控制器根据该第一消息确定该第一开放流交换机属于 该开放流控制器管辖时, 该开放流控制器向该第一开放流交换机发送第一 响应消息, 该第一响应消息对应于该第一消息。
具体实现时, 请参考实施例一中的 102。
与实施例一中的 102不同, 本实施例中第一响应消息中没有包含第一 连接的类型信息以及该第一连接的参数中与该开放流控制器有关的参数。
303: 该开放流控制器接收该第一开放流交换机发送的第二消息, 该第 二消息包含第一连接的类型信息以及该第一连接的参数中与该第一开放流 交换机有关的参数, 该第一连接为待建立的该第一开放流交换机与该开放 流控制器的连接。
在开放流控制器发起第一连接的建立请求的场景下, 开放流控制器需 要知道第一连接的参数中与该第一开放流交换机有关的参数, 以便于开放 流控制器与第一开放流交换机进行通信。 当第一连接的类型是 TCP时, 第 一连接的参数中与第一开放流交换机有关的参数包括第一开放流交换机的
IP地址以及第一开放流交换机的 TCP端口号。
可选的, 本实施例提供的方法中, 303之后还可以包括:
304: 该开放流控制器执行建立该第一连接的动作, 该动作包括根据该 第一连接的类型信息以及该第一连接的参数中与该第一开放流交换机有关 的参数向该第一开放流交换机发起该第一连接的建立请求。
具体实现时, 请参考实施例一中的 103。
实施例四
本发明实施例提供了另一种接收消息的方法, 可以自动获取待建立的 连接的参数。 参见图 4, 图 4是本发明实施例提供的接收消息的方法的流程 图, 该方法包括: 401 : 第一开放流交换机向开放流控制器发送第一消息, 以便于当该开 放流控制器根据该第一消息确定该第一开放流交换机属于该开放流控制器 管辖时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第 一响应消息对应于该第一消息。
具体实现时, 请参考实施例三中的 301以及 302。
402: 该第一开放流交换机接收该第一响应消息。
具体实现时, 请参考实施例三中的 302。
403: 该第一开放流交换机向该开放流控制器发送第二消息, 该第二消 息包含第一连接的类型信息以及该第一连接的参数中与该第一开放流交换 机有关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控 制器的连接。
具体实现时, 请参考实施例三中的 303。
可选的, 本实施例提供的方法中, 403之后还可以包括:
404: 该第一开放流交换机执行建立该第一连接的动作, 该动作包括对 该开放流控制器根据该第一连接的类型信息以及该第一连接的参数中与该 第一开放流交换机有关的参数发起的该第一连接的建立请求进行响应。
具体实现时, 请参考实施例三中的 304。
实施例五
本发明实施例提供了另一种发送消息的方法, 可以自动获取待建立的 连接的参数。 参见图 5 , 图 5是本发明实施例提供的发送消息的方法的流程 图, 该方法包括:
501 : 开放流控制器接收第一开放流交换机发送的第一消息。
具体实现时, 请参考实施例一中的 101。
502: 当该开放流控制器根据该第一消息确定该第一开放流交换机属于 该开放流控制器管辖时, 该开放流控制器向该第一开放流交换机发送第一 响应消息, 该第一响应消息对应于该第一消息。 具体实现时, 请参考实施例一中的 102。
与实施例一不同, 本实施例中第一响应消息可以不包含第一连接的类 型信息以及该第一连接的参数中与该开放流控制器有关的参数。
503: 该开放流控制器向该第一开放流交换机发送第二消息, 该第二消 息包含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有 关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器 的连接。
具体实现时, 请参考实施例三中的 303。
与实施例三不同, 本实施例中第二消息是开放流控制器发送的。 另夕卜, 第二消息中包含了第一连接的类型信息以及该第一连接的参数中与该开放 流控制器有关的参数。
可选的, 本实施例提供的方法中, 503之后还可以包括:
504: 该开放流控制器执行建立该第一连接的动作, 该动作包括对该第 一开放流交换机根据该第一连接的类型信息以及该第一连接的参数中与该 开放流控制器有关的参数发起的该第一连接的建立请求进行响应。
具体实现时, 请参考实施例三中的 304。
与实施例三不同, 本实施例中第一连接的建立请求是第一开放流交换 机发起的。
实施例六
本发明实施例提供了另一种接收消息的方法, 可以自动获取待建立的 连接的参数。 参见图 6, 图 6是本发明实施例提供的接收消息的方法的流程 图, 该方法包括:
601 : 第一开放流交换机向开放流控制器发送第一消息, 以便于当该开 放流控制器根据该第一消息确定该第一开放流交换机属于该开放流控制器 管辖时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第 一响应消息对应于该第一消息。 具体实现时, 请参考实施例五中的 501以及 502。
602: 该第一开放流交换机接收该第一响应消息。
具体实现时, 请参考实施例五中的 502。
603: 该第一开放流交换机接收该开放流控制器发送的第二消息, 该第 二消息包含第一连接的类型信息以及该第一连接的参数中与该开放流控制 器有关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控 制器的连接。
具体实现时, 请参考实施例五中的 503。
可选的, 本实施例提供的方法中, 503之后还可以包括:
604: 该第一开放流交换机执行建立该第一连接的动作, 该动作包括根 据该第一连接的类型信息以及该第一连接的参数中与该开放流控制器有关 的参数向该开放流控制器发起该第一连接的建立请求。
具体实现时, 请参考实施例五中的 504。
实施例七
本发明实施例提供了另一种发送消息的方法, 可以自动获取待建立的 连接的参数。 参见图 7, 图 7是本发明实施例提供的发送消息的方法的流程 图, 该方法包括:
701: 开放流控制器接收第一开放流交换机发送的第一消息。
具体实现时, 请参考实施例一中的 101。
702: 当该开放流控制器根据该第一消息确定该第一开放流交换机属于 该开放流控制器管辖时, 该开放流控制器向该第一开放流交换机发送第一 响应消息, 该第一响应消息对应于该第一消息。
具体实现时, 请参考实施例一中的 102。
703: 该开放流控制器向该第一开放流交换机发送第二消息, 该第二消 息包含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有 关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器 的连接。
具体实现时, 请参考实施例五中的 503。
704: 该开放流控制器接收该第一开放流交换机发送的第二响应消息, 该第二响应消息中包含该第一连接的参数中与该第一开放流交换机有关的 参数, 该第二响应消息对应于该第二消息。
在开放流控制器发起第一连接的建立请求的场景下, 开放流控制器需 要知道第一连接的参数中与该第一开放流交换机有关的参数, 以便于开放 流控制器与第一开放流交换机进行通信。 当第一连接的类型是 TCP时, 第 一连接的参数中与第一开放流交换机有关的参数包括第一开放流交换机的
IP地址以及第一开放流交换机的 TCP端口号。
可选的, 本实施例提供的方法中, 704之后还可以包括:
705: 该开放流控制器执行建立该第一连接的动作, 该动作包括对该第 一开放流交换机根据该第一连接的类型信息、 该第一连接的参数中与该第 一开放流交换机有关的参数以及该第一连接的参数中与该开放流控制器有 关的参数发起的该第一连接的建立请求进行响应。
第一开放流交换机可以获得第一连接的类型信息以及第一连接的参数 中与开放流控制器有关的参数, 因此第一连接的建立请求可以是第一开放 流交换机发起的。
具体实现时, 可以参考实施例一中的 103。
可选的, 本实施例提供的方法中, 704之后还可以包括:
706: 该开放流控制器执行建立该第一连接的动作, 该动作包括根据该 第一连接的类型信息、 该第一连接的参数中与该第一开放流交换机有关的 参数以及该第一连接的参数中与该开放流控制器有关的参数向该第一开放 流交换机发起该第一连接的建立请求。
开放流控制器可以获得第一连接的类型信息以及第一连接的参数中与 第一开放流交换机有关的参数, 因此第一连接的建立请求可以是开放流控 制器发起的。
具体实现时, 可以参考实施例一中的 103。
与实施例一不同, 本实施例中第一连接的建立请求可以是开放流控制 器发起的。
实施例八
本发明实施例提供了另一种接收消息的方法, 可以自动获取待建立的 连接的参数。 参见图 8, 图 8是本发明实施例提供的接收消息的方法的流程 图, 该方法包括:
801 : 第一开放流交换机向开放流控制器发送第一消息, 以便于当该开 放流控制器根据该第一消息确定该第一开放流交换机属于该开放流控制器 管辖时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第 一响应消息对应于该第一消息。
具体实现时, 请参考实施例七中的 701以及 702。
802: 该第一开放流交换机接收该第一响应消息。
具体实现时, 请参考实施例七中的 702。
803: 该第一开放流交换机接收该开放流控制器发送的第二消息, 该第 二消息包含第一连接的类型信息以及该第一连接的参数中与该开放流控制 器有关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控 制器的连接。
具体实现时, 请参考实施例七中的 703。
804: 该第一开放流交换机向该开放流控制器发送第二响应消息, 该第 二响应消息中包含该第一连接的参数中与该第一开放流交换机有关的参 数, 该第二响应消息对应于该第二消息。
具体实现时, 请参考实施例七中的 704。
可选的, 本实施例提供的方法中, 804之后还可以包括:
805: 该第一开放流交换机执行建立该第一连接的动作, 该动作包括根 据该第一连接的类型信息、 该第一连接的参数中与该第一开放流交换机有 关的参数以及该第一连接的参数中与该开放流控制器有关的参数向该开放 流控制器发起该第一连接的建立请求。
具体实现时, 请参考实施例七中的 706。
可选的, 本实施例提供的方法中, 804之后还可以包括:
806: 该第一开放流交换机执行建立该第一连接的动作, 该动作包括根 据该第一连接的类型信息、 该第一连接的参数中与该第一开放流交换机有 关的参数以及该第一连接的参数中与该开放流控制器有关的参数向该开放 流控制器发起该第一连接的建立请求。
具体实现时, 请参考实施例七中的 705。
实施例九
本发明实施例提供了另一种发送消息的方法, 可以自动获取待建立的 连接的参数。 参见图 9, 图 9是本发明实施例提供的发送消息的方法的流程 图, 该方法包括:
901: 开放流控制器接收第一开放流交换机发送的第一消息。
具体实现时, 请参考实施例七中的 701。
902: 当该开放流控制器根据该第一消息确定该第一开放流交换机属于 该开放流控制器管辖时, 该开放流控制器向该第一开放流交换机发送第一 响应消息, 该第一响应消息对应于该第一消息。
具体实现时, 请参考实施例七中的 702。
903: 该开放流控制器接收该第一开放流交换机发送的第二消息, 该第 二消息包含第一连接的类型信息以及该第一连接的参数中与该第一开放流 交换机有关的参数, 该第一连接为待建立的该第一开放流交换机与该开放 流控制器的连接。
具体实现时, 请参考实施例七中的 703。
与实施例七不同, 本实施例中第二消息是第一开放流交换机发送的。 另外, 第二消息中包含了第一连接的类型信息以及该第一连接的参数中与 该第一开放流交换机有关的参数。
904: 该开放流控制器向该第一开放流交换机发送第二响应消息, 该第 二响应消息包含该第一连接的参数中与该开放流控制器有关的参数。
具体实现时, 请参考实施例七中的 704。
与实施例七不同, 本实施例中第二响应消息是开放流控制器发送的。 另外, 第二消息中包含了第一连接的类型信息以及该第一连接的参数中与 该有开放流控制器关的参数。
可选的, 本实施例提供的方法中, 904之后还可以包括:
905: 该开放流控制器执行建立该第一连接的动作, 该动作包括根据该 第一连接的类型信息、 该第一连接的参数中与该第一开放流交换机有关的 参数以及该第一连接的参数中与该开放流控制器有关的参数向该第一开放 流交换机发起该第一连接的建立请求。
具体实现时, 请参考实施例七中的 706。
可选的, 本实施例提供的方法中, 904之后还可以包括:
906: 该开放流控制器执行建立该第一连接的动作, 该动作包括对该第 一开放流交换机根据该第一连接的类型信息、 该第一连接的参数中与该第 一开放流交换机有关的参数以及该第一连接的参数中与该开放流控制器有 关的参数发起的该第一连接的建立请求进行响应。
具体实现时, 请参考实施例七中的 705。
实施例十
本发明实施例提供了另一种接收消息的方法, 可以自动获取待建立的 连接的参数。 参见图 10, 图 10是本发明实施例提供的建立连接的方法的流 程图, 该方法包括:
1001 : 第一开放流交换机向开放流控制器发送第一消息, 以便于当该 开放流控制器根据该第一消息确定该第一开放流交换机属于该开放流控制 器管辖时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该 第一响应消息对应于该第一消息。
具体实现时, 请参考实施例九中的 901以及 902。
1002: 该第一开放流交换机接收该第一响应消息。
具体实现时, 请参考实施例九中的 902。
1003: 该第一开放流交换机向该开放流控制器发送第二消息, 该第二 消息包含第一连接的类型信息以及该第一连接的参数中与该第一开放流交 换机有关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流 控制器的连接。
具体实现时, 请参考实施例九中的 903。
1004: 该第一开放流交换机接收该开放流控制器发送的第二响应消息, 该第二响应消息包含该第一连接的参数中与该开放流控制器有关的参数。
具体实现时, 请参考实施例九中的 904。
可选的, 本实施例提供的方法中, 1004之后还可以包括:
1005: 该第一开放流交换机执行建立该第一连接的动作, 该动作包括 对该开放流控制器根据该第一连接的类型信息、 该第一连接的参数中与该 第一开放流交换机有关的参数以及该第一连接的参数中与该开放流控制器 有关的参数发起的该第一连接的建立请求进行响应。
具体实现时, 请参考实施例九中的 905。
可选的, 本实施例提供的方法中, 1004之后还可以包括:
1006: 该第一开放流交换机执行建立该第一连接的动作, 该动作包括 对该开放流控制器根据该第一连接的类型信息、 该第一连接的参数中与该 第一开放流交换机有关的参数以及该第一连接的参数中与该开放流控制器 有关的参数发起的该第一连接的建立请求进行响应。
具体实现时, 请参考实施例九中的 906。
实施例十一 本发明实施例提供了一种开放流控制器, 可以自动获取待建立的连接 的参数。 参见图 11 , 图 11是本发明实施例提供的开放流控制器的结构示意 图, 包括:
接收器 1101以及发送器 1102;
该接收器 1101用于接收第一开放流交换机发送的第一消息;
该发送器 1102包括确定单元 1103以及发送单元 1104;
该确定单元 1103用于根据该第一消息确定该第一开放流交换机是否属 于该开放流控制器管辖;
该发送单元 1104用于当该确定单元 1103确定该第一开放流交换机属 于该开放流控制器管辖时, 向该第一开放流交换机发送第一响应消息, 该 第一响应消息包含第一连接的类型信息以及该第一连接的参数中与该开放 流控制器有关的参数, 该第一连接为待建立的该第一开放流交换机与该开 放流控制器的连接, 该第一响应消息对应于该第一消息。
可选的,
该确定单元 1103具体包括检测子单元以及第一确定子单元;
该检测子单元用于检测数据库是否包含该第一开放流交换机的标识, 该第一消息包含该第一开放流交换机的标识, 该数据库包含该开放流控制 器管辖的开放流交换机的标识;
该第一确定子单元用于当该检测子单元检测到该数据库包含该第一开 放流交换机的标识时, 确定该第一开放流交换机属于该开放流控制器管辖。
可选的,
该确定单元 1103具体包括判断子单元以及第二确定子单元;
该判断子单元用于判断该第一开放流控制器的标识对应的开放流控制 器是否为该第一开放流控制器, 该第一消息包含该第一开放流控制器的标 识;
该第二确定子单元用于当该判断子单元判断出该第一开放流控制器的 标识对应的开放流控制器为该第一开放流控制器时, 确定该第一开放流交 换机属于该开放流控制器管辖。
可选的,
该接收器 1101包括第一接收子单元;
该第一接收子单元用于通过控制通道接收第二开放流交换机转发的来 源于该第一开放流交换机的以广播形式发送的该第一消息。
可选的,
该接收器 1101包括第二接收子单元;
该第二接收子单元用于通过控制通道接收第二开放流交换机转发的来 源于该第一开放流交换机的以组播形式发送的该第一消息, 该开放流控制 器为该组播对应的组播组的成员。
可选的,
该开放流控制器还包括执行单元,
该执行单元用于执行建立该第一连接的动作, 该动作包括对该第一开 放流交换机根据该第一连接的类型信息以及该第一连接的参数中与该开放 流控制器有关的参数发起的该第一连接的建立请求进行响应。
本实施例提供的开放流控制器可以通过实施例一提供的方法实现。 具 体实现时, 请参考实施例一。
实施例十二
本发明实施例提供了一种第一开放流交换机, 可以自动获取待建立的 连接的参数。 参见图 12, 图 12是本发明实施例提供的第一开放流交换机的 结构示意图, 包括:
发送器 1201 , 用于向开放流控制器发送第一消息, 以便于当该开放流 控制器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖 时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第一响 应消息包含第一连接的类型信息以及该第一连接的参数中与该开放流控制 器有关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控 制器的连接, 该第一响应消息对应于该第一消息;
接收器 1202, 用于接收该第一响应消息。
可选的,
该发送器具体包括第一发送子单元,
该第一发送子单元用于以广播的形式发送该第一消息, 以便于第二开 放流交换机接收到该第一消息后, 通过控制通道向该第一开放流控制器转 发该第一消息。
可选的,
该发送器具体包括第二发送子单元,
该第二发送子单元用于以组播的形式发送该第一消息, 以便于第二开 放流交换机接收到该第一消息后, 通过控制通道向该第一开放流控制器转 发该第一消息, 该开放流控制器为该组播对应的组播组的成员。
可选的,
该第一开放流交换机还包括执行单元,
该执行单元用于执行建立该第一连接的动作, 该动作包括根据该第一 连接的类型信息以及该第一连接的参数中与该开放流控制器有关的参数向 该开放流控制器发起该第一连接的建立请求。
本实施例提供的第一开放流交换机可以通过实施例二提供的方法实 现。 具体实现时, 请参考实施例二。
实施例十三
本发明实施例提供了另一种开放流控制器, 可以自动获取待建立的连 接的参数。参见图 13, 图 13是本发明实施例提供的开放流控制器的结构示 意图, 包括:
接收器 1301以及发送器 1302;
该接收器 1301用于接收第一开放流交换机发送的第一消息; 该发送器 1302包括确定单元 1303以及发送单元 1304;
该确定单元 1303用于根据该第一消息确定该第一开放流交换机是否属 于该开放流控制器管辖;
该发送单元 1304用于, 当该确定单元 1303确定该第一开放流交换机 属于该开放流控制器管辖时, 向该第一开放流交换机发送第一响应消息, 该第一响应消息对应于该第一消息;
该接收器 1301还用于接收该第一开放流交换机发送的第二消息, 该第 二消息包含第一连接的类型信息以及该第一连接的参数中与该第一开放流 交换机有关的参数, 该第一连接为待建立的该第一开放流交换机与该开放 流控制器的连接。
可选的,
该确定单元 1303具体包括检测子单元以及第一确定子单元;
该检测子单元用于检测数据库是否包含该第一开放流交换机的标识, 该第一消息包含该第一开放流交换机的标识, 该数据库包含该开放流控制 器管辖的开放流交换机的标识;
该第一确定子单元用于当该检测子单元检测到该数据库包含该第一开 放流交换机的标识时, 确定该第一开放流交换机属于该开放流控制器管辖。
可选的,
该确定单元具体包括判断子单元以及第二确定子单元;
该判断子单元用于判断该第一开放流控制器的标识对应的开放流控制 器是否为该第一开放流控制器, 该第一消息包含该第一开放流控制器的标 识;
该第二确定子单元用于当该判断子单元判断出该第一开放流控制器的 标识对应的开放流控制器为该第一开放流控制器时, 确定该第一开放流交 换机属于该开放流控制器管辖。
可选的, 该接收器包括第一接收子单元;
该第一接收子单元用于通过控制通道接收第二开放流交换机转发的来 源于该第一开放流交换机的以广播形式发送的该第一消息。
可选的,
该接收器包括第二接收子单元;
该第二接收子单元用于通过控制通道接收第二开放流交换机转发的来 源于该第一开放流交换机的以组播形式发送的该第一消息, 该开放流控制 器为该组播对应的组播组的成员。
可选的,
该开放流控制器还包括执行单元,
该执行单元用于执行建立该第一连接的动作, 该动作包括根据该第一 连接的类型信息以及该第一连接的参数中与该第一开放流交换机有关的参 数向该第一开放流交换机发起该第一连接的建立请求。
本实施例提供的开放流控制器可以通过实施例三提供的方法实现。 具 体实现时, 请参考实施例三。
实施例十四
本发明实施例提供了另一种第一开放流交换机, 可以自动获取待建立 的连接的参数。 参见图 14, 图 14是本发明实施例提供的第一开放流交换机 的结构示意图, 包括:
发送器 1401以及接收器 1402;
该发送器 1401用于向开放流控制器发送第一消息, 以便于当该开放流 控制器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖 时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第一响 应消息对应于该第一消息;
该接收器 1402用于接收该第一响应消息;
该发送器 1401还用于向该开放流控制器发送第二消息, 该第二消息包 含第一连接的类型信息以及该第一连接的参数中与该第一开放流交换机有 关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器 的连接。
可选的,
该发送器 1401具体包括第一发送子单元,
该第一发送子单元用于以广播的形式发送该第一消息, 以便于第二开 放流交换机接收到该第一消息后, 通过控制通道向该第一开放流控制器转 发该第一消息。
可选的,
该发送器 1401具体包括第二发送子单元,
第二发送子单元用于以组播的形式发送该第一消息, 以便于第二开放 流交换机接收到该第一消息后, 通过控制通道向该第一开放流控制器转发 该第一消息, 该开放流控制器为该组播对应的组播组的成员。
可选的,
该第一开放流交换机还包括执行单元,
该执行单元用于执行建立该第一连接的动作, 该动作包括对该开放流 控制器根据该第一连接的类型信息以及该第一连接的参数中与该第一开放 流交换机有关的参数发起的该第一连接的建立请求进行响应。
本实施例提供的第一开放流交换机可以通过实施例四提供的方法实 现。 具体实现时, 请参考实施例四。
实施例十五
本发明实施例提供了另一种开放流控制器, 可以自动获取待建立的连 接的参数。参见图 15, 图 15是本发明实施例提供的开放流控制器的结构示 意图, 包括:
接收器 1501以及发送器 1502;
该接收器 1501用于接收第一开放流交换机发送的第一消息; 该发送器 1502包括确定单元 1503以及发送单元 1504;
该确定单元 1503用于根据该第一消息确定该第一开放流交换机是否属 于该开放流控制器管辖;
该发送单元 1504用于, 当该确定单元 1503确定该第一开放流交换机 属于该开放流控制器管辖时, 向该第一开放流交换机发送第一响应消息, 该第一响应消息对应于该第一消息;
该发送器 1502还用于向该第一开放流交换机发送第二消息, 该第二消 息包含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有 关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器 的连接。
可选的,
该确定单元 1503具体包括检测子单元以及第一确定子单元;
该检测子单元用于检测数据库是否包含该第一开放流交换机的标识, 该第一消息包含该第一开放流交换机的标识, 该数据库包含该开放流控制 器管辖的开放流交换机的标识;
该第一确定子单元用于当该检测子单元检测到该数据库包含该第一开 放流交换机的标识时, 确定该第一开放流交换机属于该开放流控制器管辖。
可选的,
该确定单元 1503具体包括判断子单元以及第二确定子单元;
该判断子单元用于判断该第一开放流控制器的标识对应的开放流控制 器是否为该第一开放流控制器, 该第一消息包含该第一开放流控制器的标 识;
该第二确定子单元用于当该判断子单元判断出该第一开放流控制器的 标识对应的开放流控制器为该第一开放流控制器时, 确定该第一开放流交 换机属于该开放流控制器管辖。
可选的, 该接收器 1501包括第一接收子单元;
该第一接收子单元用于通过控制通道接收第二开放流交换机转发的来 源于该第一开放流交换机的以广播形式发送的该第一消息。
可选的,
该接收器 1501包括第二接收子单元;
该第二接收子单元用于通过控制通道接收第二开放流交换机转发的来 源于该第一开放流交换机的以组播形式发送的该第一消息, 该开放流控制 器为该组播对应的组播组的成员。
可选的,
该开放流控制器还包括执行单元,
该执行单元用于执行建立该第一连接的动作, 该动作包括对该第一开 放流交换机根据该第一连接的类型信息以及该第一连接的参数中与该开放 流控制器有关的参数发起的该第一连接的建立请求进行响应。
本实施例提供的开放流控制器可以通过实施例五提供的方法实现。 具 体实现时, 请参考实施例五。
实施例十六
本发明实施例提供了另一种第一开放流交换机, 可以自动获取待建立 的连接的参数。 参见图 16, 图 16是本发明实施例提供的第一开放流交换机 的结构示意图, 包括:
发送器 1601以及接收器 1602;
该发送器 1601用于向开放流控制器发送第一消息, 以便于当该开放流 控制器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖 时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第一响 应消息对应于该第一消息;
该接收器 1602用于接收该第一响应消息;
该接收器 1602还用于接收该开放流控制器发送的第二消息, 该第二消 息包含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有 关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器 的连接。
可选的,
该发送器 1601具体包括第一发送子单元,
该第一发送子单元用于以广播的形式发送该第一消息, 以便于第二开 放流交换机接收到该第一消息后, 通过控制通道向该第一开放流控制器转 发该第一消息。
可选的,
该发送器 1601具体包括第二发送子单元,
第二发送子单元用于以组播的形式发送该第一消息, 以便于第二开放 流交换机接收到该第一消息后, 通过控制通道向该第一开放流控制器转发 该第一消息, 该开放流控制器为该组播对应的组播组的成员。
可选的,
该第一开放流交换机还包括执行单元, 该执行单元用于执行建立该第 一连接的动作, 该动作包括根据该第一连接的类型信息以及该第一连接的 参数中与该开放流控制器有关的参数向该开放流控制器发起该第一连接的 建立请求。
本实施例提供的第一开放流交换机可以通过实施例六提供的方法实 现。 具体实现时, 请参考实施例六。
实施例十七
本发明实施例提供了另一种开放流控制器, 可以自动获取待建立的连 接的参数。参见图 17, 图 17是本发明实施例提供的开放流控制器的结构示 意图, 包括:
接收器 1701以及发送器 1702;
该接收器 1701用于接收第一开放流交换机发送的第一消息; 该发送器 1702包括确定单元 1703以及发送单元 1704;
该确定单元 1703用于根据该第一消息确定该第一开放流交换机是否属 于该开放流控制器管辖;
该发送单元 1704用于, 当该确定单元 1703确定该第一开放流交换机 属于该开放流控制器管辖时, 向该第一开放流交换机发送第一响应消息, 该第一响应消息对应于该第一消息;
该发送器 1702还用于向该第一开放流交换机发送第二消息, 该第二消 息包含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有 关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器 的连接;
该接收器 1701还用于接收该第一开放流交换机发送的第二响应消息, 该第二响应消息中包含该第一连接的参数中与该第一开放流交换机有关的 参数, 该第二响应消息对应于该第二消息。
可选的,
该确定单元 1703具体包括检测子单元以及第一确定子单元;
该检测子单元用于检测数据库是否包含该第一开放流交换机的标识, 该第一消息包含该第一开放流交换机的标识, 该数据库包含该开放流控制 器管辖的开放流交换机的标识;
该第一确定子单元用于当该检测子单元检测到该数据库包含该第一开 放流交换机的标识时, 确定该第一开放流交换机属于该开放流控制器管辖。
可选的,
该确定单元 1703具体包括判断子单元以及第二确定子单元;
该判断子单元用于判断该第一开放流控制器的标识对应的开放流控制 器是否为该第一开放流控制器, 该第一消息包含该第一开放流控制器的标 识;
该第二确定子单元用于当该判断子单元判断出该第一开放流控制器的 标识对应的开放流控制器为该第一开放流控制器时, 确定该第一开放流交 换机属于该开放流控制器管辖。
可选的,
该接收器 1701包括第一接收子单元;
该第一接收子单元用于通过控制通道接收第二开放流交换机转发的来 源于该第一开放流交换机的以广播形式发送的该第一消息。
可选的,
该接收器 1701包括第二接收子单元;
该第二接收子单元用于通过控制通道接收第二开放流交换机转发的来 源于该第一开放流交换机的以组播形式发送的该第一消息, 该开放流控制 器为该组播对应的组播组的成员。
可选的,
该开放流控制器还包括执行单元,
该执行单元用于执行建立该第一连接的动作, 该动作包括对该第一开 放流交换机根据该第一连接的类型信息、 该第一连接的参数中与该第一开 放流交换机有关的参数以及该第一连接的参数中与该开放流控制器有关的 参数发起的该第一连接的建立请求进行响应。
可选的,
该开放流控制器还包括执行单元,
该执行单元用于执行建立该第一连接的动作, 该动作包括根据该第一 连接的类型信息、 该第一连接的参数中与该第一开放流交换机有关的参数 以及该第一连接的参数中与该开放流控制器有关的参数向该第一开放流交 换机发起该第一连接的建立请求。
本实施例提供的开放流控制器可以通过实施例七提供的方法实现。 具 体实现时, 请参考实施例七。
实施例十八 本发明实施例提供了另一种第一开放流交换机, 可以自动获取待建立 的连接的参数。 参见图 18, 图 18是本发明实施例提供的第一开放流交换机 的结构示意图, 包括:
发送器 1801以及接收器 1802;
该发送器 1801用于向开放流控制器发送第一消息, 以便于当该开放流 控制器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖 时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第一响 应消息对应于该第一消息;
该接收器 1802用于接收该第一响应消息;
该接收器 1802还用于接收该开放流控制器发送的第二消息, 该第二消 息包含第一连接的类型信息以及该第一连接的参数中与该开放流控制器有 关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器 的连接;
该发送器 1801还用于向该开放流控制器发送第二响应消息, 该第二响 应消息中包含该第一连接的参数中与该第一开放流交换机有关的参数, 该 第二响应消息对应于该第二消息。
可选的,
该发送器 1801具体包括第一发送子单元,
该第一发送子单元用于以广播的形式发送该第一消息, 以便于第二开 放流交换机接收到该第一消息后, 通过控制通道向该第一开放流控制器转 发该第一消息。
可选的,
该发送器 1801具体包括第二发送子单元,
第二发送子单元用于以组播的形式发送该第一消息, 以便于第二开放 流交换机接收到该第一消息后, 通过控制通道向该第一开放流控制器转发 该第一消息, 该开放流控制器为该组播对应的组播组的成员。 可选的,
该第一开放流交换机还包括执行单元,
该执行单元用于执行建立该第一连接的动作, 该动作包括根据该第一 连接的类型信息、 该第一连接的参数中与该第一开放流交换机有关的参数 以及该第一连接的参数中与该开放流控制器有关的参数向该开放流控制器 发起该第一连接的建立请求。
可选的,
该第一开放流交换机还包括执行单元,
该执行单元用于执行建立该第一连接的动作, 该动作包括对该开放流 控制器根据该第一连接的类型信息、 该第一连接的参数中与该第一开放流 交换机有关的参数以及该第一连接的参数中与该开放流控制器有关的参数 发起的该第一连接的建立请求进行响应。
本实施例提供的第一开放流交换机可以通过实施例八提供的方法实 现。 具体实现时, 请参考实施例八。
实施例十九
本发明实施例提供了另一种开放流控制器, 可以自动获取待建立的连 接的参数。参见图 19, 图 19是本发明实施例提供的开放流控制器的结构示 意图, 包括:
接收器 1901以及发送器 1902;
该接收器 1901用于接收第一开放流交换机发送的第一消息; 该发送器 1902包括确定单元 1903以及发送单元 1904;
该确定单元 1903用于根据该第一消息确定该第一开放流交换机是否属 于该开放流控制器管辖;
该发送单元 1904用于, 当该确定单元 1903确定该第一开放流交换机 属于该开放流控制器管辖时, 向该第一开放流交换机发送第一响应消息, 该第一响应消息对应于该第一消息; 该接收器 1901还用于接收该第一开放流交换机发送的第二消息, 该第 二消息包含第一连接的类型信息以及该第一连接的参数中与该第一开放流 交换机有关的参数, 该第一连接为待建立的该第一开放流交换机与该开放 流控制器的连接;
该发送器 1902还用于向该第一开放流交换机发送第二响应消息, 该第 二响应消息包含该第一连接的参数中与该开放流控制器有关的参数。
可选的,
该确定单元 1903具体包括检测子单元以及第一确定子单元;
该检测子单元用于检测数据库是否包含该第一开放流交换机的标识, 该第一消息包含该第一开放流交换机的标识, 该数据库包含该开放流控制 器管辖的开放流交换机的标识;
该第一确定子单元用于当该检测子单元检测到该数据库包含该第一开 放流交换机的标识时, 确定该第一开放流交换机属于该开放流控制器管辖。
可选的,
该确定单元 1903具体包括判断子单元以及第二确定子单元;
该判断子单元用于判断该第一开放流控制器的标识对应的开放流控制 器是否为该第一开放流控制器, 该第一消息包含该第一开放流控制器的标 识;
该第二确定子单元用于当该判断子单元判断出该第一开放流控制器的 标识对应的开放流控制器为该第一开放流控制器时, 确定该第一开放流交 换机属于该开放流控制器管辖。
可选的,
该接收器 1901包括第一接收子单元;
该第一接收子单元用于通过控制通道接收第二开放流交换机转发的来 源于该第一开放流交换机的以广播形式发送的该第一消息。
可选的, 该接收器 1901包括第二接收子单元;
该第二接收子单元用于通过控制通道接收第二开放流交换机转发的来 源于该第一开放流交换机的以组播形式发送的该第一消息, 该开放流控制 器为该组播对应的组播组的成员。
可选的,
该开放流控制器还包括执行单元,
该执行单元用于执行建立该第一连接的动作, 该动作包括根据该第一 连接的类型信息、 该第一连接的参数中与该第一开放流交换机有关的参数 以及该第一连接的参数中与该开放流控制器有关的参数向该第一开放流交 换机发起该第一连接的建立请求。
可选的,
该开放流控制器还包括执行单元,
该执行单元用于执行建立该第一连接的动作, 该动作包括对该第一开 放流交换机根据该第一连接的类型信息、 该第一连接的参数中与该第一开 放流交换机有关的参数以及该第一连接的参数中与该开放流控制器有关的 参数发起的该第一连接的建立请求进行响应。
本实施例提供的开放流控制器可以通过实施例九提供的方法实现。 具 体实现时, 请参考实施例九。
实施例二十
本发明实施例提供了另一种第一开放流交换机, 可以自动获取待建立 的连接的参数。 参见图 20, 图 20是本发明实施例提供的第一开放流交换机 的结构示意图, 包括:
发送器 2001以及接收器 2002;
该发送器 2001用于向开放流控制器发送第一消息, 以便于当该开放流 控制器根据该第一消息确定该第一开放流交换机属于该开放流控制器管辖 时, 该开放流控制器向该第一开放流交换机发送第一响应消息, 该第一响 应消息对应于该第一消息;
该接收器 2002用于接收该第一响应消息;
该发送器 2001还用于向该开放流控制器发送第二消息, 该第二消息包 含第一连接的类型信息以及该第一连接的参数中与该第一开放流交换机有 关的参数, 该第一连接为待建立的该第一开放流交换机与该开放流控制器 的连接;
该接收器 2002还用于接收该开放流控制器发送的第二响应消息, 该第 二响应消息包含该第一连接的参数中与该开放流控制器有关的参数。
可选的,
该发送器 2001具体包括第一发送子单元,
该第一发送子单元用于以广播的形式发送该第一消息, 以便于第二开 放流交换机接收到该第一消息后, 通过控制通道向该第一开放流控制器转 发该第一消息。
可选的,
该发送器 2001具体包括第二发送子单元,
第二发送子单元用于以组播的形式发送该第一消息, 以便于第二开放 流交换机接收到该第一消息后, 通过控制通道向该第一开放流控制器转发 该第一消息, 该开放流控制器为该组播对应的组播组的成员。
可选的,
该第一开放流交换机还包括执行单元,
该执行单元用于执行建立该第一连接的动作, 该动作包括对该开放流 控制器根据该第一连接的类型信息、 该第一连接的参数中与该第一开放流 交换机有关的参数以及该第一连接的参数中与该开放流控制器有关的参数 发起的该第一连接的建立请求进行响应。
可选的,
该第一开放流交换机还包括执行单元, 该执行单元用于执行建立该第一连接的动作, 该动作包括根据该第一 连接的类型信息、 该第一连接的参数中与该第一开放流交换机有关的参数 以及该第一连接的参数中与该开放流控制器有关的参数向该开放流控制器 发起该第一连接的建立请求。
本实施例提供的第一开放流交换机可以通过实施例十提供的方法实 现。 具体实现时, 请参考实施例十。 需要说明的是, 实施例一至实施例二十涉及到第一开放流交换机以及 第二开放流交换机。 其中, "第一开放流交换机" 中的 "第一" 仅用于强 调 "第一开放流交换机" 与 "第二开放流交换机" 不是同一台设备。 同理, "第二开放流交换机" 中的 "第二" 仅用于强调 "第二开放流交换机" 与 "第一开放流交换机" 不是同一台设备。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步 骤可以通过程序指令相关的硬件来完成, 前述程序可以存储于一计算机可 读取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而 前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代 码的介质。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修 改, 或者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不 使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims

1.一种发送消息的方法, 其特征在于, 包括:
开放流控制器接收第一开放流交换机发送的第一消息;
当所述开放流控制器根据所述第一消息确定所述第一开放流交换机属 于所述开放流控制器管辖时, 所述开放流控制器向所述第一开放流交换机 发送第一响应消息, 所述第一响应消息包含第一连接的类型信息以及所述 第一连接的参数中与所述开放流控制器有关的参数, 所述第一连接为待建 立的所述第一开放流交换机与所述开放流控制器的连接, 所述第一响应消 息对应于所述第一消息。
2.根据权利要求 1所述方法, 其特征在于,
所述开放流控制器根据所述第一消息确定所述第一开放流交换机属于 所述开放流控制器管辖具体包括:
所述第一消息包含所述第一开放流交换机的标识, 当所述开放流控制 器检测到数据库包含所述第一开放流交换机的标识时, 所述开放流控制器 确定所述第一开放流交换机属于所述开放流控制器管辖, 所述数据库包含 所述开放流控制器管辖的开放流交换机的标识。
3.根据权利要求 1所述方法, 其特征在于,
所述开放流控制器根据所述第一消息确定所述第一开放流交换机属于 所述开放流控制器管辖具体包括:
所述第一消息包含所述第一开放流控制器的标识, 当所述第一开放流 控制器判断出所述标识对应的开放流控制器为所述第一开放流控制器时, 所述第一开放流控制器确定所述第一开放流交换机属于所述开放流控制器 管辖。
4.根据权利要求 1至 3中任一权利要求所述方法, 其特征在于, 所述开放流控制器接收第一开放流交换机发送的第一消息具体包括: 所述开放流控制器通过控制通道接收第二开放流交换机转发的来源于 所述第一开放流交换机的以广播形式发送的所述第一消息。
5.根据权利要求 1至 3中任一权利要求所述方法, 其特征在于, 所述开放流控制器接收第一开放流交换机发送的第一消息具体包括: 所述开放流控制器通过控制通道接收第二开放流交换机转发的来源于 所述第一开放流交换机的以组播形式发送的所述第一消息, 所述开放流控 制器为所述组播对应的组播组的成员。
6.根据权利要求 1至 5中任一权利要求所述方法, 其特征在于, 所述方法在所述开放流控制器向所述第一开放流交换机发送第一响应 消息之后还包括:
所述开放流控制器执行建立所述第一连接的动作, 所述动作包括对所 述第一开放流交换机根据所述第一连接的类型信息以及所述第一连接的参 数中与所述开放流控制器有关的参数发起的所述第一连接的建立请求进行 响应。
7.—种接收消息的方法, 其特征在于, 包括:
第一开放流交换机向开放流控制器发送第一消息, 以便于当所述开放 流控制器根据所述第一消息确定所述第一开放流交换机属于所述开放流控 制器管辖时, 所述开放流控制器向所述第一开放流交换机发送第一响应消 息, 所述第一响应消息包含第一连接的类型信息以及所述第一连接的参数 中与所述开放流控制器有关的参数, 所述第一连接为待建立的所述第一开 放流交换机与所述开放流控制器的连接, 所述第一响应消息对应于所述第 一消息;
所述第一开放流交换机接收所述第一响应消息。
8.根据权利要求 7所述方法, 其特征在于,
所述第一开放流交换机向开放流控制器发送第一消息具体包括: 所述第一开放流交换机以广播的形式发送所述第一消息, 以便于第二 开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流控 制器转发所述第一消息。
9.根据权利要求 7所述方法, 其特征在于,
所述第一开放流交换机向开放流控制器发送第一消息具体包括: 所述第一开放流交换机以组播的形式发送所述第一消息, 以便于第二 开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流控 制器转发所述第一消息, 所述开放流控制器为所述组播对应的组播组的成 贝。
10.根据权利要求 7至 9中任一权利要求所述方法, 其特征在于, 所述 方法在所述第一开放流交换机接收所述第一响应消息之后还包括:
所述第一开放流交换机执行建立所述第一连接的动作, 所述动作包括 根据所述第一连接的类型信息以及所述第一连接的参数中与所述开放流控 制器有关的参数向所述开放流控制器发起所述第一连接的建立请求。
11.一种发送消息的方法, 其特征在于, 包括:
开放流控制器接收第一开放流交换机发送的第一消息;
当所述开放流控制器根据所述第一消息确定所述第一开放流交换机属 于所述开放流控制器管辖时, 所述开放流控制器向所述第一开放流交换机 发送第一响应消息, 所述第一响应消息对应于所述第一消息;
所述开放流控制器接收所述第一开放流交换机发送的第二消息, 所述 第二消息包含第一连接的类型信息以及所述第一连接的参数中与所述第一 开放流交换机有关的参数, 所述第一连接为待建立的所述第一开放流交换 机与所述开放流控制器的连接。
12.根据权利要求 11所述方法, 其特征在于,
所述开放流控制器根据所述第一消息确定所述第一开放流交换机属于 所述开放流控制器管辖具体包括:
所述第一消息包含所述第一开放流交换机的标识, 当所述开放流控制 器检测到数据库包含所述第一开放流交换机的标识时, 所述开放流控制器 确定所述第一开放流交换机属于所述开放流控制器管辖, 所述数据库包含 所述开放流控制器管辖的开放流交换机的标识。
13.根据权利要求 11所述方法, 其特征在于,
所述开放流控制器根据所述第一消息确定所述第一开放流交换机属于 所述开放流控制器管辖具体包括:
所述第一消息包含所述第一开放流控制器的标识, 当所述第一开放流 控制器判断出所述标识对应的开放流控制器为所述第一开放流控制器时, 所述第一开放流控制器确定所述第一开放流交换机属于所述开放流控制器 管辖。
14.根据权利要求 11至 13中任一权利要求所述方法, 其特征在于, 所述开放流控制器接收第一开放流交换机发送的第一消息具体包括: 所述开放流控制器通过控制通道接收第二开放流交换机转发的来源于 所述第一开放流交换机的以广播形式发送的所述第一消息。
15.根据权利要求 11至 13中任一权利要求所述方法, 其特征在于, 所述开放流控制器接收第一开放流交换机发送的第一消息具体包括: 所述开放流控制器通过控制通道接收第二开放流交换机转发的来源于 所述第一开放流交换机的以组播形式发送的所述第一消息, 所述开放流控 制器为所述组播对应的组播组的成员。
16.根据权利要求 11至 15中任一权利要求所述方法, 其特征在于, 所述方法在所述开放流控制器接收所述第一开放流交换机发送的第二 消息之后还包括:
所述开放流控制器执行建立所述第一连接的动作, 所述动作包括根据 所述第一连接的类型信息以及所述第一连接的参数中与所述第一开放流交 换机有关的参数向所述第一开放流交换机发起所述第一连接的建立请求。
17.—种接收消息的方法, 其特征在于, 包括:
第一开放流交换机向开放流控制器发送第一消息, 以便于当所述开放 流控制器根据所述第一消息确定所述第一开放流交换机属于所述开放流控 制器管辖时, 所述开放流控制器向所述第一开放流交换机发送第一响应消 息, 所述第一响应消息对应于所述第一消息;
所述第一开放流交换机接收所述第一响应消息;
所述第一开放流交换机向所述开放流控制器发送第二消息, 所述第二 消息包含第一连接的类型信息以及所述第一连接的参数中与所述第一开放 流交换机有关的参数, 所述第一连接为待建立的所述第一开放流交换机与 所述开放流控制器的连接。
18.根据权利要求 17所述方法, 其特征在于,
所述第一开放流交换机向开放流控制器发送第一消息具体包括: 所述第一开放流交换机以广播的形式发送所述第一消息, 以便于第二 开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流控 制器转发所述第一消息。
19.根据权利要求 17所述方法, 其特征在于,
所述第一开放流交换机向开放流控制器发送第一消息具体包括: 所述第一开放流交换机以组播的形式发送所述第一消息, 以便于第二 开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流控 制器转发所述第一消息, 所述开放流控制器为所述组播对应的组播组的成 贝。
20.根据权利要求 17至 19中任一权利要求所述方法, 其特征在于: 所述方法在所述第一开放流交换机向所述开放流控制器发送第二消息 之后还包括:
所述第一开放流交换机执行建立所述第一连接的动作, 所述动作包括 对所述开放流控制器根据所述第一连接的类型信息以及所述第一连接的参 数中与所述第一开放流交换机有关的参数发起的所述第一连接的建立请求 进行响应。
21.—种发送消息的方法, 其特征在于, 包括:
开放流控制器接收第一开放流交换机发送的第一消息;
当所述开放流控制器根据所述第一消息确定所述第一开放流交换机属 于所述开放流控制器管辖时, 所述开放流控制器向所述第一开放流交换机 发送第一响应消息, 所述第一响应消息对应于所述第一消息;
所述开放流控制器向所述第一开放流交换机发送第二消息, 所述第二 消息包含第一连接的类型信息以及所述第一连接的参数中与所述开放流控 制器有关的参数, 所述第一连接为待建立的所述第一开放流交换机与所述 开放流控制器的连接。
22.根据权利要求 21所述方法, 其特征在于,
所述开放流控制器根据所述第一消息确定所述第一开放流交换机属于 所述开放流控制器管辖具体包括:
所述第一消息包含所述第一开放流交换机的标识, 当所述开放流控制 器检测到数据库包含所述第一开放流交换机的标识时, 所述开放流控制器 确定所述第一开放流交换机属于所述开放流控制器管辖, 所述数据库包含 所述开放流控制器管辖的开放流交换机的标识。
23.根据权利要求 21所述方法, 其特征在于,
所述开放流控制器根据所述第一消息确定所述第一开放流交换机属于 所述开放流控制器管辖具体包括:
所述第一消息包含所述第一开放流控制器的标识, 当所述第一开放流 控制器判断出所述标识对应的开放流控制器为所述第一开放流控制器时, 所述第一开放流控制器确定所述第一开放流交换机属于所述开放流控制器 管辖。
24.根据权利要求 21至 23中任一权利要求所述方法, 其特征在于, 所述开放流控制器接收第一开放流交换机发送的第一消息具体包括: 所述开放流控制器通过控制通道接收第二开放流交换机转发的来源于 所述第一开放流交换机的以广播形式发送的所述第一消息。
25.根据权利要求 21至 23中任一权利要求所述方法, 其特征在于, 所述开放流控制器接收第一开放流交换机发送的第一消息具体包括: 所述开放流控制器通过控制通道接收第二开放流交换机转发的来源于 所述第一开放流交换机的以组播形式发送的所述第一消息, 所述开放流控 制器为所述组播对应的组播组的成员。
26.根据权利要求 21至 25中任一权利要求所述方法, 其特征在于, 所述方法在所述开放流控制器向所述第一开放流交换机发送第二消息 之后还包括:
所述开放流控制器执行建立所述第一连接的动作, 所述动作包括对所 述第一开放流交换机根据所述第一连接的类型信息以及所述第一连接的参 数中与所述开放流控制器有关的参数发起的所述第一连接的建立请求进行 响应。
27.—种接收消息的方法, 其特征在于, 包括:
第一开放流交换机向开放流控制器发送第一消息, 以便于当所述开放 流控制器根据所述第一消息确定所述第一开放流交换机属于所述开放流控 制器管辖时, 所述开放流控制器向所述第一开放流交换机发送第一响应消 息, 所述第一响应消息对应于所述第一消息;
所述第一开放流交换机接收所述第一响应消息;
所述第一开放流交换机接收所述开放流控制器发送的第二消息, 所述 第二消息包含第一连接的类型信息以及所述第一连接的参数中与所述开放 流控制器有关的参数, 所述第一连接为待建立的所述第一开放流交换机与 所述开放流控制器的连接。
28.根据权利要求 27所述方法, 其特征在于,
所述第一开放流交换机向开放流控制器发送第一消息具体包括: 所述第一开放流交换机以广播的形式发送所述第一消息, 以便于第二 开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流控 制器转发所述第一消息。
29.根据权利要求 27所述方法, 其特征在于,
所述第一开放流交换机向开放流控制器发送第一消息具体包括: 所述第一开放流交换机以组播的形式发送所述第一消息, 以便于第二 开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流控 制器转发所述第一消息, 所述开放流控制器为所述组播对应的组播组的成 贝。
30.根据权利要求 27至 29中任一权利要求所述方法, 其特征在于, 所述方法在所述第一开放流交换机接收所述开放流控制器发送的第二 消息之后还包括:
所述第一开放流交换机执行建立所述第一连接的动作, 所述动作包括 根据所述第一连接的类型信息以及所述第一连接的参数中与所述开放流控 制器有关的参数向所述开放流控制器发起所述第一连接的建立请求。
31.—种发送消息的方法, 其特征在于, 包括:
开放流控制器接收第一开放流交换机发送的第一消息;
当所述开放流控制器根据所述第一消息确定所述第一开放流交换机属 于所述开放流控制器管辖时, 所述开放流控制器向所述第一开放流交换机 发送第一响应消息, 所述第一响应消息对应于所述第一消息;
所述开放流控制器向所述第一开放流交换机发送第二消息, 所述第二 消息包含第一连接的类型信息以及所述第一连接的参数中与所述开放流控 制器有关的参数, 所述第一连接为待建立的所述第一开放流交换机与所述 开放流控制器的连接;
所述开放流控制器接收所述第一开放流交换机发送的第二响应消息, 所述第二响应消息中包含所述第一连接的参数中与所述第一开放流交换机 有关的参数, 所述第二响应消息对应于所述第二消息。
32.根据权利要求 31所述方法, 其特征在于,
所述开放流控制器根据所述第一消息确定所述第一开放流交换机属于 所述开放流控制器管辖具体包括:
所述第一消息包含所述第一开放流交换机的标识, 当所述开放流控制 器检测到数据库包含所述第一开放流交换机的标识时, 所述开放流控制器 确定所述第一开放流交换机属于所述开放流控制器管辖, 所述数据库包含 所述开放流控制器管辖的开放流交换机的标识。
33.根据权利要求 31所述方法, 其特征在于,
所述开放流控制器根据所述第一消息确定所述第一开放流交换机属于 所述开放流控制器管辖具体包括:
所述第一消息包含所述第一开放流控制器的标识, 当所述第一开放流 控制器判断出所述标识对应的开放流控制器为所述第一开放流控制器时, 所述第一开放流控制器确定所述第一开放流交换机属于所述开放流控制器 管辖。
34.根据权利要求 31至 33中任一权利要求所述方法, 其特征在于, 所述开放流控制器接收第一开放流交换机发送的第一消息具体包括: 所述开放流控制器通过控制通道接收第二开放流交换机转发的来源于 所述第一开放流交换机的以广播形式发送的所述第一消息。
35.根据权利要求 31至 33中任一权利要求所述方法, 其特征在于, 所述开放流控制器接收第一开放流交换机发送的第一消息具体包括: 所述开放流控制器通过控制通道接收第二开放流交换机转发的来源于 所述第一开放流交换机的以组播形式发送的所述第一消息, 所述开放流控 制器为所述组播对应的组播组的成员。
36.根据权利要求 31至 35中任一权利要求所述方法, 其特征在于, 所述方法在所述开放流控制器接收所述第一开放流交换机发送的第二 响应消息之后还包括: 所述开放流控制器执行建立所述第一连接的动作, 所述动作包括对所 述第一开放流交换机根据所述第一连接的类型信息、 所述第一连接的参数 中与所述第一开放流交换机有关的参数以及所述第一连接的参数中与所述 开放流控制器有关的参数发起的所述第一连接的建立请求进行响应。
37.根据权利要求 31至 35中任一权利要求所述方法, 其特征在于, 所述方法在所述开放流控制器接收所述第一开放流交换机发送的第二 响应消息之后还包括:
所述开放流控制器执行建立所述第一连接的动作, 所述动作包括根据 所述第一连接的类型信息、 所述第一连接的参数中与所述第一开放流交换 机有关的参数以及所述第一连接的参数中与所述开放流控制器有关的参数 向所述第一开放流交换机发起所述第一连接的建立请求。
38.—种接收消息的方法, 其特征在于, 包括:
第一开放流交换机向开放流控制器发送第一消息, 以便于当所述开放 流控制器根据所述第一消息确定所述第一开放流交换机属于所述开放流控 制器管辖时, 所述开放流控制器向所述第一开放流交换机发送第一响应消 息, 所述第一响应消息对应于所述第一消息;
所述第一开放流交换机接收所述第一响应消息;
所述第一开放流交换机接收所述开放流控制器发送的第二消息, 所述 第二消息包含第一连接的类型信息以及所述第一连接的参数中与所述开放 流控制器有关的参数, 所述第一连接为待建立的所述第一开放流交换机与 所述开放流控制器的连接;
所述第一开放流交换机向所述开放流控制器发送第二响应消息, 所述 第二响应消息中包含所述第一连接的参数中与所述第一开放流交换机有关 的参数, 所述第二响应消息对应于所述第二消息。
39.根据权利要求 38所述方法, 其特征在于,
所述第一开放流交换机向开放流控制器发送第一消息具体包括: 所述第一开放流交换机以广播的形式发送所述第一消息, 以便于第二 开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流控 制器转发所述第一消息。
40.根据权利要求 38所述方法, 其特征在于,
所述第一开放流交换机向开放流控制器发送第一消息具体包括: 所述第一开放流交换机以组播的形式发送所述第一消息, 以便于第二 开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流控 制器转发所述第一消息, 所述开放流控制器为所述组播对应的组播组的成 贝。
41.根据权利要求 38至 40中任一权利要求所述方法, 其特征在于, 所述方法在所述第一开放流交换机向所述开放流控制器发送第二响应 消息之后还包括:
所述第一开放流交换机执行建立所述第一连接的动作, 所述动作包括 根据所述第一连接的类型信息、 所述第一连接的参数中与所述第一开放流 交换机有关的参数以及所述第一连接的参数中与所述开放流控制器有关的 参数向所述开放流控制器发起所述第一连接的建立请求。
42.根据权利要求 38至 40中任一权利要求所述方法, 其特征在于, 所述方法在所述第一开放流交换机向所述开放流控制器发送第二响应 消息之后还包括:
所述第一开放流交换机执行建立所述第一连接的动作, 所述动作包括 对所述开放流控制器根据所述第一连接的类型信息、 所述第一连接的参数 中与所述第一开放流交换机有关的参数以及所述第一连接的参数中与所述 开放流控制器有关的参数发起的所述第一连接的建立请求进行响应。
43.—种发送消息的方法, 其特征在于, 包括:
开放流控制器接收第一开放流交换机发送的第一消息;
当所述开放流控制器根据所述第一消息确定所述第一开放流交换机属 于所述开放流控制器管辖时, 所述开放流控制器向所述第一开放流交换机 发送第一响应消息, 所述第一响应消息对应于所述第一消息;
所述开放流控制器接收所述第一开放流交换机发送的第二消息, 所述 第二消息包含第一连接的类型信息以及所述第一连接的参数中与所述第一 开放流交换机有关的参数, 所述第一连接为待建立的所述第一开放流交换 机与所述开放流控制器的连接;
所述开放流控制器向所述第一开放流交换机发送第二响应消息, 所述 第二响应消息包含所述第一连接的参数中与所述开放流控制器有关的参 数。
44.根据权利要求 43所述方法, 其特征在于,
所述开放流控制器根据所述第一消息确定所述第一开放流交换机属于 所述开放流控制器管辖具体包括:
所述第一消息包含所述第一开放流交换机的标识, 当所述开放流控制 器检测到数据库包含所述第一开放流交换机的标识时, 所述开放流控制器 确定所述第一开放流交换机属于所述开放流控制器管辖, 所述数据库包含 所述开放流控制器管辖的开放流交换机的标识。
45.根据权利要求 43所述方法, 其特征在于,
所述开放流控制器根据所述第一消息确定所述第一开放流交换机属于 所述开放流控制器管辖具体包括:
所述第一消息包含所述第一开放流控制器的标识, 当所述第一开放流 控制器判断出所述标识对应的开放流控制器为所述第一开放流控制器时, 所述第一开放流控制器确定所述第一开放流交换机属于所述开放流控制器 管辖。
46.根据权利要求 43至 45中任一权利要求所述方法, 其特征在于, 所述开放流控制器接收第一开放流交换机发送的第一消息具体包括: 所述开放流控制器通过控制通道接收第二开放流交换机转发的来源于 所述第一开放流交换机的以广播形式发送的所述第一消息。
47.根据权利要求 43至 45中任一权利要求所述方法, 其特征在于, 所述开放流控制器接收第一开放流交换机发送的第一消息具体包括: 所述开放流控制器通过控制通道接收第二开放流交换机转发的来源于 所述第一开放流交换机的以组播形式发送的所述第一消息, 所述开放流控 制器为所述组播对应的组播组的成员。
48.根据权利要求 43至 47中任一权利要求所述方法, 其特征在于, 所述方法在所述开放流控制器向所述第一开放流交换机发送第二响应 消息之后还包括:
所述开放流控制器执行建立所述第一连接的动作, 所述动作包括根据 所述第一连接的类型信息、 所述第一连接的参数中与所述第一开放流交换 机有关的参数以及所述第一连接的参数中与所述开放流控制器有关的参数 向所述第一开放流交换机发起所述第一连接的建立请求。
49.根据权利要求 43至 47中任一权利要求所述方法, 其特征在于, 所述方法在所述开放流控制器向所述第一开放流交换机发送第二响应 消息之后还包括:
所述开放流控制器执行建立所述第一连接的动作, 所述动作包括对所 述第一开放流交换机根据所述第一连接的类型信息、 所述第一连接的参数 中与所述第一开放流交换机有关的参数以及所述第一连接的参数中与所述 开放流控制器有关的参数发起的所述第一连接的建立请求进行响应。
50.—种接收消息的方法, 其特征在于, 包括:
第一开放流交换机向开放流控制器发送第一消息, 以便于当所述开放 流控制器根据所述第一消息确定所述第一开放流交换机属于所述开放流控 制器管辖时, 所述开放流控制器向所述第一开放流交换机发送第一响应消 息, 所述第一响应消息对应于所述第一消息;
所述第一开放流交换机接收所述第一响应消息; 所述第一开放流交换机向所述开放流控制器发送第二消息, 所述第二 消息包含第一连接的类型信息以及所述第一连接的参数中与所述第一开放 流交换机有关的参数, 所述第一连接为待建立的所述第一开放流交换机与 所述开放流控制器的连接;
所述第一开放流交换机接收所述开放流控制器发送的第二响应消息, 所述第二响应消息包含所述第一连接的参数中与所述开放流控制器有关的 参数。
51.根据权利要求 50所述方法, 其特征在于,
所述第一开放流交换机向开放流控制器发送第一消息具体包括: 所述第一开放流交换机以广播的形式发送所述第一消息, 以便于第二 开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流控 制器转发所述第一消息。
52.根据权利要求 50所述方法, 其特征在于,
所述第一开放流交换机向开放流控制器发送第一消息具体包括: 所述第一开放流交换机以组播的形式发送所述第一消息, 以便于第二 开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流控 制器转发所述第一消息, 所述开放流控制器为所述组播对应的组播组的成 贝。
53.根据权利要求 50至 52中任一权利要求所述方法, 其特征在于, 所述方法在所述第一开放流交换机接收所述开放流控制器发送的第二 响应消息之后还包括:
所述第一开放流交换机执行建立所述第一连接的动作, 所述动作包括 对所述开放流控制器根据所述第一连接的类型信息、 所述第一连接的参数 中与所述第一开放流交换机有关的参数以及所述第一连接的参数中与所述 开放流控制器有关的参数发起的所述第一连接的建立请求进行响应。
54.根据权利要求 50至 52中任一权利要求所述方法, 其特征在于, 所述方法在所述第一开放流交换机接收所述开放流控制器发送的第二 响应消息之后还包括:
所述第一开放流交换机执行建立所述第一连接的动作, 所述动作包括 根据所述第一连接的类型信息、 所述第一连接的参数中与所述第一开放流 交换机有关的参数以及所述第一连接的参数中与所述开放流控制器有关的 参数向所述开放流控制器发起所述第一连接的建立请求。
55.—种开放流控制器, 其特征在于, 包括:
接收器以及发送器;
所述接收器用于接收第一开放流交换机发送的第一消息;
所述发送器包括确定单元以及发送单元;
所述确定单元用于根据所述第一消息确定所述第一开放流交换机是否 属于所述开放流控制器管辖;
所述发送单元用于当所述确定单元确定所述第一开放流交换机属于所 述开放流控制器管辖时, 向所述第一开放流交换机发送第一响应消息, 所 述第一响应消息包含第一连接的类型信息以及所述第一连接的参数中与所 述开放流控制器有关的参数, 所述第一连接为待建立的所述第一开放流交 换机与所述开放流控制器的连接, 所述第一响应消息对应于所述第一消息。
56.根据权利要求 55所述开放流控制器, 其特征在于,
所述确定单元具体包括检测子单元以及第一确定子单元;
所述检测子单元用于检测数据库是否包含所述第一开放流交换机的标 识, 所述第一消息包含所述第一开放流交换机的标识, 所述数据库包含所 述开放流控制器管辖的开放流交换机的标识;
所述第一确定子单元用于当所述检测子单元检测到所述数据库包含所 述第一开放流交换机的标识时, 确定所述第一开放流交换机属于所述开放 流控制器管辖。
57.根据权利要求 55所述开放流控制器, 其特征在于, 所述确定单元具体包括判断子单元以及第二确定子单元; 所述判断子单元用于判断所述第一开放流控制器的标识对应的开放流 控制器是否为所述第一开放流控制器, 所述第一消息包含所述第一开放流 控制器的标识;
所述第二确定子单元用于当所述判断子单元判断出所述第一开放流控 制器的标识对应的开放流控制器为所述第一开放流控制器时, 确定所述第 一开放流交换机属于所述开放流控制器管辖。
58.根据权利要求 55至 57中任一权利要求所述开放流控制器, 其特征 在于,
所述接收器包括第一接收子单元;
所述第一接收子单元用于通过控制通道接收第二开放流交换机转发的 来源于所述第一开放流交换机的以广播形式发送的所述第一消息。
59.根据权利要求 55至 57中任一权利要求所述开放流控制器, 其特征 在于,
所述接收器包括第二接收子单元;
所述第二接收子单元用于通过控制通道接收第二开放流交换机转发的 来源于所述第一开放流交换机的以组播形式发送的所述第一消息, 所述开 放流控制器为所述组播对应的组播组的成员。
60.根据权利要求 55至 59中任一权利要求所述开放流控制器, 其特征 在于,
所述开放流控制器还包括执行单元,
所述执行单元用于执行建立所述第一连接的动作, 所述动作包括对所 述第一开放流交换机根据所述第一连接的类型信息以及所述第一连接的参 数中与所述开放流控制器有关的参数发起的所述第一连接的建立请求进行 响应。
61.—种第一开放流交换机, 其特征在于, 包括: 发送器, 用于向开放流控制器发送第一消息, 以便于当所述开放流控 制器根据所述第一消息确定所述第一开放流交换机属于所述开放流控制器 管辖时, 所述开放流控制器向所述第一开放流交换机发送第一响应消息, 所述第一响应消息包含第一连接的类型信息以及所述第一连接的参数中与 所述开放流控制器有关的参数, 所述第一连接为待建立的所述第一开放流 交换机与所述开放流控制器的连接, 所述第一响应消息对应于所述第一消 息;
接收器, 用于接收所述第一响应消息。
62.根据权利要求 61所述第一开放流交换机, 其特征在于,
所述发送器具体包括第一发送子单元,
所述第一发送子单元用于以广播的形式发送所述第一消息, 以便于第 二开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流 控制器转发所述第一消息。
63.根据权利要求 61所述第一开放流交换机, 其特征在于,
所述发送器具体包括第二发送子单元,
所述第二发送子单元用于以组播的形式发送所述第一消息, 以便于第 二开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流 控制器转发所述第一消息, 所述开放流控制器为所述组播对应的组播组的 成员。
64.根据权利要求 61至 63中任一权利要求所述第一开放流交换机, 其 特征在于,
所述第一开放流交换机还包括执行单元,
所述执行单元用于执行建立所述第一连接的动作, 所述动作包括根据 所述第一连接的类型信息以及所述第一连接的参数中与所述开放流控制器 有关的参数向所述开放流控制器发起所述第一连接的建立请求。
65.—种开放流控制器, 其特征在于, 包括: 接收器以及发送器;
所述接收器用于接收第一开放流交换机发送的第一消息;
所述发送器包括确定单元以及发送单元;
所述确定单元用于根据所述第一消息确定所述第一开放流交换机是否 属于所述开放流控制器管辖;
所述发送单元用于, 当所述确定单元确定所述第一开放流交换机属于 所述开放流控制器管辖时, 向所述第一开放流交换机发送第一响应消息, 所述第一响应消息对应于所述第一消息;
所述接收器还用于接收所述第一开放流交换机发送的第二消息, 所述 第二消息包含第一连接的类型信息以及所述第一连接的参数中与所述第一 开放流交换机有关的参数, 所述第一连接为待建立的所述第一开放流交换 机与所述开放流控制器的连接。
66.根据权利要求 65所述开放流控制器, 其特征在于,
所述确定单元具体包括检测子单元以及第一确定子单元;
所述检测子单元用于检测数据库是否包含所述第一开放流交换机的标 识, 所述第一消息包含所述第一开放流交换机的标识, 所述数据库包含所 述开放流控制器管辖的开放流交换机的标识;
所述第一确定子单元用于当所述检测子单元检测到所述数据库包含所 述第一开放流交换机的标识时, 确定所述第一开放流交换机属于所述开放 流控制器管辖。
67.根据权利要求 65所述开放流控制器, 其特征在于,
所述确定单元具体包括判断子单元以及第二确定子单元;
所述判断子单元用于判断所述第一开放流控制器的标识对应的开放流 控制器是否为所述第一开放流控制器, 所述第一消息包含所述第一开放流 控制器的标识;
所述第二确定子单元用于当所述判断子单元判断出所述第一开放流控 制器的标识对应的开放流控制器为所述第一开放流控制器时, 确定所述第 一开放流交换机属于所述开放流控制器管辖。
68.根据权利要求 65至 67中任一权利要求所述开放流控制器, 其特征 在于,
所述接收器包括第一接收子单元;
所述第一接收子单元用于通过控制通道接收第二开放流交换机转发的 来源于所述第一开放流交换机的以广播形式发送的所述第一消息。
69.根据权利要求 65至 67中任一权利要求所述开放流控制器, 其特征 在于,
所述接收器包括第二接收子单元;
所述第二接收子单元用于通过控制通道接收第二开放流交换机转发的 来源于所述第一开放流交换机的以组播形式发送的所述第一消息, 所述开 放流控制器为所述组播对应的组播组的成员。
70.根据权利要求 65至 69中任一权利要求所述开放流控制器, 其特征 在于,
所述开放流控制器还包括执行单元,
所述执行单元用于执行建立所述第一连接的动作, 所述动作包括根据 所述第一连接的类型信息以及所述第一连接的参数中与所述第一开放流交 换机有关的参数向所述第一开放流交换机发起所述第一连接的建立请求。
71.—种第一开放流交换机, 其特征在于, 包括:
发送器以及接收器;
所述发送器用于向开放流控制器发送第一消息, 以便于当所述开放流 控制器根据所述第一消息确定所述第一开放流交换机属于所述开放流控制 器管辖时, 所述开放流控制器向所述第一开放流交换机发送第一响应消息, 所述第一响应消息对应于所述第一消息;
所述接收器用于接收所述第一响应消息; 所述发送器还用于向所述开放流控制器发送第二消息, 所述第二消息 包含第一连接的类型信息以及所述第一连接的参数中与所述第一开放流交 换机有关的参数, 所述第一连接为待建立的所述第一开放流交换机与所述 开放流控制器的连接。
72.根据权利要求 71所述第一开放流交换机, 其特征在于,
所述发送器具体包括第一发送子单元,
所述第一发送子单元用于以广播的形式发送所述第一消息, 以便于第 二开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流 控制器转发所述第一消息。
73.根据权利要求 71所述第一开放流交换机, 其特征在于,
所述发送器具体包括第二发送子单元,
第二发送子单元用于以组播的形式发送所述第一消息, 以便于第二开 放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流控制 器转发所述第一消息, 所述开放流控制器为所述组播对应的组播组的成员。
74.根据权利要求 71至 73中任一权利要求所述第一开放流交换机, 其 特征在于,
所述第一开放流交换机还包括执行单元,
所述执行单元用于执行建立所述第一连接的动作, 所述动作包括对所 述开放流控制器根据所述第一连接的类型信息以及所述第一连接的参数中 与所述第一开放流交换机有关的参数发起的所述第一连接的建立请求进行 响应。
75.—种开放流控制器, 其特征在于, 包括:
接收器以及发送器;
所述接收器用于接收第一开放流交换机发送的第一消息;
所述发送器包括确定单元以及发送单元;
所述确定单元用于根据所述第一消息确定所述第一开放流交换机是否 属于所述开放流控制器管辖;
所述发送单元用于, 当所述确定单元确定所述第一开放流交换机属于 所述开放流控制器管辖时, 向所述第一开放流交换机发送第一响应消息, 所述第一响应消息对应于所述第一消息;
所述发送器还用于向所述第一开放流交换机发送第二消息, 所述第二 消息包含第一连接的类型信息以及所述第一连接的参数中与所述开放流控 制器有关的参数, 所述第一连接为待建立的所述第一开放流交换机与所述 开放流控制器的连接。
76.根据权利要求 75所述开放流控制器, 其特征在于,
所述确定单元具体包括检测子单元以及第一确定子单元;
所述检测子单元用于检测数据库是否包含所述第一开放流交换机的标 识, 所述第一消息包含所述第一开放流交换机的标识, 所述数据库包含所 述开放流控制器管辖的开放流交换机的标识;
所述第一确定子单元用于当所述检测子单元检测到所述数据库包含所 述第一开放流交换机的标识时, 确定所述第一开放流交换机属于所述开放 流控制器管辖。
77.根据权利要求 75所述开放流控制器, 其特征在于,
所述确定单元具体包括判断子单元以及第二确定子单元;
所述判断子单元用于判断所述第一开放流控制器的标识对应的开放流 控制器是否为所述第一开放流控制器, 所述第一消息包含所述第一开放流 控制器的标识;
所述第二确定子单元用于当所述判断子单元判断出所述第一开放流控 制器的标识对应的开放流控制器为所述第一开放流控制器时, 确定所述第 一开放流交换机属于所述开放流控制器管辖。
78.根据权利要求 75至 77中任一权利要求所述开放流控制器, 其特征 在于, 所述接收器包括第一接收子单元;
所述第一接收子单元用于通过控制通道接收第二开放流交换机转发的 来源于所述第一开放流交换机的以广播形式发送的所述第一消息。
79.根据权利要求 75至 77中任一权利要求所述开放流控制器, 其特征 在于,
所述接收器包括第二接收子单元;
所述第二接收子单元用于通过控制通道接收第二开放流交换机转发的 来源于所述第一开放流交换机的以组播形式发送的所述第一消息, 所述开 放流控制器为所述组播对应的组播组的成员。
80.根据权利要求 75至 79中任一权利要求所述开放流控制器, 其特征 在于,
所述开放流控制器还包括执行单元,
所述执行单元用于执行建立所述第一连接的动作, 所述动作包括对所 述第一开放流交换机根据所述第一连接的类型信息以及所述第一连接的参 数中与所述开放流控制器有关的参数发起的所述第一连接的建立请求进行 响应。
81.—种第一开放流交换机, 其特征在于, 包括:
发送器以及接收器;
所述发送器用于向开放流控制器发送第一消息, 以便于当所述开放流 控制器根据所述第一消息确定所述第一开放流交换机属于所述开放流控制 器管辖时, 所述开放流控制器向所述第一开放流交换机发送第一响应消息, 所述第一响应消息对应于所述第一消息;
所述接收器用于接收所述第一响应消息;
所述接收器还用于接收所述开放流控制器发送的第二消息, 所述第二 消息包含第一连接的类型信息以及所述第一连接的参数中与所述开放流控 制器有关的参数, 所述第一连接为待建立的所述第一开放流交换机与所述 开放流控制器的连接。
82.根据权利要求 81所述第一开放流交换机, 其特征在于,
所述发送器具体包括第一发送子单元,
所述第一发送子单元用于以广播的形式发送所述第一消息, 以便于第 二开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流 控制器转发所述第一消息。
83.根据权利要求 81所述第一开放流交换机, 其特征在于,
所述发送器具体包括第二发送子单元,
第二发送子单元用于以组播的形式发送所述第一消息, 以便于第二开 放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流控制 器转发所述第一消息, 所述开放流控制器为所述组播对应的组播组的成员。
84.根据权利要求 81至 83中任一权利要求所述第一开放流交换机, 其 特征在于,
所述第一开放流交换机还包括执行单元, 所述执行单元用于执行建立 所述第一连接的动作, 所述动作包括根据所述第一连接的类型信息以及所 述第一连接的参数中与所述开放流控制器有关的参数向所述开放流控制器 发起所述第一连接的建立请求。
85.—种开放流控制器, 其特征在于, 包括:
接收器以及发送器;
所述接收器用于接收第一开放流交换机发送的第一消息;
所述发送器包括确定单元以及发送单元;
所述确定单元用于根据所述第一消息确定所述第一开放流交换机是否 属于所述开放流控制器管辖;
所述发送单元用于, 当所述确定单元确定所述第一开放流交换机属于 所述开放流控制器管辖时, 向所述第一开放流交换机发送第一响应消息, 所述第一响应消息对应于所述第一消息; 所述发送器还用于向所述第一开放流交换机发送第二消息, 所述第二 消息包含第一连接的类型信息以及所述第一连接的参数中与所述开放流控 制器有关的参数, 所述第一连接为待建立的所述第一开放流交换机与所述 开放流控制器的连接;
所述接收器还用于接收所述第一开放流交换机发送的第二响应消息, 所述第二响应消息中包含所述第一连接的参数中与所述第一开放流交换机 有关的参数, 所述第二响应消息对应于所述第二消息。
86.根据权利要求 85所述开放流控制器, 其特征在于,
所述确定单元具体包括检测子单元以及第一确定子单元;
所述检测子单元用于检测数据库是否包含所述第一开放流交换机的标 识, 所述第一消息包含所述第一开放流交换机的标识, 所述数据库包含所 述开放流控制器管辖的开放流交换机的标识;
所述第一确定子单元用于当所述检测子单元检测到所述数据库包含所 述第一开放流交换机的标识时, 确定所述第一开放流交换机属于所述开放 流控制器管辖。
87.根据权利要求 85所述开放流控制器, 其特征在于,
所述确定单元具体包括判断子单元以及第二确定子单元;
所述判断子单元用于判断所述第一开放流控制器的标识对应的开放流 控制器是否为所述第一开放流控制器, 所述第一消息包含所述第一开放流 控制器的标识;
所述第二确定子单元用于当所述判断子单元判断出所述第一开放流控 制器的标识对应的开放流控制器为所述第一开放流控制器时, 确定所述第 一开放流交换机属于所述开放流控制器管辖。
88.根据权利要求 85至 87中任一权利要求所述开放流控制器, 其特征 在于,
所述接收器包括第一接收子单元; 所述第一接收子单元用于通过控制通道接收第二开放流交换机转发的 来源于所述第一开放流交换机的以广播形式发送的所述第一消息。
89.根据权利要求 85至 87中任一权利要求所述开放流控制器, 其特征 在于,
所述接收器包括第二接收子单元;
所述第二接收子单元用于通过控制通道接收第二开放流交换机转发的 来源于所述第一开放流交换机的以组播形式发送的所述第一消息, 所述开 放流控制器为所述组播对应的组播组的成员。
90.根据权利要求 85至 89中任一权利要求所述开放流控制器, 其特征 在于,
所述开放流控制器还包括执行单元,
所述执行单元用于执行建立所述第一连接的动作, 所述动作包括对所 述第一开放流交换机根据所述第一连接的类型信息、 所述第一连接的参数 中与所述第一开放流交换机有关的参数以及所述第一连接的参数中与所述 开放流控制器有关的参数发起的所述第一连接的建立请求进行响应。
91.根据权利要求 85至 89中任一权利要求所述开放流控制器, 其特征 在于,
所述开放流控制器还包括执行单元,
所述执行单元用于执行建立所述第一连接的动作, 所述动作包括根据 所述第一连接的类型信息、 所述第一连接的参数中与所述第一开放流交换 机有关的参数以及所述第一连接的参数中与所述开放流控制器有关的参数 向所述第一开放流交换机发起所述第一连接的建立请求。
92.—种第一开放流交换机, 其特征在于, 包括:
发送器以及接收器;
所述发送器用于向开放流控制器发送第一消息, 以便于当所述开放流 控制器根据所述第一消息确定所述第一开放流交换机属于所述开放流控制 器管辖时, 所述开放流控制器向所述第一开放流交换机发送第一响应消息, 所述第一响应消息对应于所述第一消息;
所述接收器用于接收所述第一响应消息;
所述接收器还用于接收所述开放流控制器发送的第二消息, 所述第二 消息包含第一连接的类型信息以及所述第一连接的参数中与所述开放流控 制器有关的参数, 所述第一连接为待建立的所述第一开放流交换机与所述 开放流控制器的连接;
所述发送器还用于向所述开放流控制器发送第二响应消息, 所述第二 响应消息中包含所述第一连接的参数中与所述第一开放流交换机有关的参 数, 所述第二响应消息对应于所述第二消息。
93.根据权利要求 92所述第一开放流交换机, 其特征在于,
所述发送器具体包括第一发送子单元,
所述第一发送子单元用于以广播的形式发送所述第一消息, 以便于第 二开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流 控制器转发所述第一消息。
94.根据权利要求 92所述第一开放流交换机, 其特征在于,
所述发送器具体包括第二发送子单元,
第二发送子单元用于以组播的形式发送所述第一消息, 以便于第二开 放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流控制 器转发所述第一消息, 所述开放流控制器为所述组播对应的组播组的成员。
95.根据权利要求 92至 94中任一权利要求所述第一开放流交换机, 其 特征在于,
所述第一开放流交换机还包括执行单元,
所述执行单元用于执行建立所述第一连接的动作, 所述动作包括根据 所述第一连接的类型信息、 所述第一连接的参数中与所述第一开放流交换 机有关的参数以及所述第一连接的参数中与所述开放流控制器有关的参数 向所述开放流控制器发起所述第一连接的建立请求。
96.根据权利要求 92至 94中任一权利要求所述第一开放流交换机, 其 特征在于,
所述第一开放流交换机还包括执行单元,
所述执行单元用于执行建立所述第一连接的动作, 所述动作包括对所 述开放流控制器根据所述第一连接的类型信息、 所述第一连接的参数中与 所述第一开放流交换机有关的参数以及所述第一连接的参数中与所述开放 流控制器有关的参数发起的所述第一连接的建立请求进行响应。
97.—种开放流控制器, 其特征在于, 包括:
接收器以及发送器;
所述接收器用于接收第一开放流交换机发送的第一消息;
所述发送器包括确定单元以及发送单元;
所述确定单元用于根据所述第一消息确定所述第一开放流交换机是否 属于所述开放流控制器管辖;
所述发送单元用于, 当所述确定单元确定所述第一开放流交换机属于 所述开放流控制器管辖时, 向所述第一开放流交换机发送第一响应消息, 所述第一响应消息对应于所述第一消息;
所述接收器还用于接收所述第一开放流交换机发送的第二消息, 所述 第二消息包含第一连接的类型信息以及所述第一连接的参数中与所述第一 开放流交换机有关的参数, 所述第一连接为待建立的所述第一开放流交换 机与所述开放流控制器的连接;
所述发送器还用于向所述第一开放流交换机发送第二响应消息, 所述 第二响应消息包含所述第一连接的参数中与所述开放流控制器有关的参 数。
98.根据权利要求 97所述开放流控制器, 其特征在于,
所述确定单元具体包括检测子单元以及第一确定子单元; 所述检测子单元用于检测数据库是否包含所述第一开放流交换机的标 识, 所述第一消息包含所述第一开放流交换机的标识, 所述数据库包含所 述开放流控制器管辖的开放流交换机的标识;
所述第一确定子单元用于当所述检测子单元检测到所述数据库包含所 述第一开放流交换机的标识时, 确定所述第一开放流交换机属于所述开放 流控制器管辖。
99.根据权利要求 97所述开放流控制器, 其特征在于,
所述确定单元具体包括判断子单元以及第二确定子单元;
所述判断子单元用于判断所述第一开放流控制器的标识对应的开放流 控制器是否为所述第一开放流控制器, 所述第一消息包含所述第一开放流 控制器的标识;
所述第二确定子单元用于当所述判断子单元判断出所述第一开放流控 制器的标识对应的开放流控制器为所述第一开放流控制器时, 确定所述第 一开放流交换机属于所述开放流控制器管辖。
100.根据权利要求 97至 99中任一权利要求所述开放流控制器,其特征 在于,
所述接收器包括第一接收子单元;
所述第一接收子单元用于通过控制通道接收第二开放流交换机转发的 来源于所述第一开放流交换机的以广播形式发送的所述第一消息。
101.根据权利要求 97至 99中任一权利要求所述开放流控制器,其特征 在于,
所述接收器包括第二接收子单元;
所述第二接收子单元用于通过控制通道接收第二开放流交换机转发的 来源于所述第一开放流交换机的以组播形式发送的所述第一消息, 所述开 放流控制器为所述组播对应的组播组的成员。
102.根据权利要求 97至 101中任一权利要求所述开放流控制器, 其特 征在于,
所述开放流控制器还包括执行单元,
所述执行单元用于执行建立所述第一连接的动作, 所述动作包括根据 所述第一连接的类型信息、 所述第一连接的参数中与所述第一开放流交换 机有关的参数以及所述第一连接的参数中与所述开放流控制器有关的参数 向所述第一开放流交换机发起所述第一连接的建立请求。
103.根据权利要求 97至 101中任一权利要求所述开放流控制器, 其特 征在于,
所述开放流控制器还包括执行单元,
所述执行单元用于执行建立所述第一连接的动作, 所述动作包括对所 述第一开放流交换机根据所述第一连接的类型信息、 所述第一连接的参数 中与所述第一开放流交换机有关的参数以及所述第一连接的参数中与所述 开放流控制器有关的参数发起的所述第一连接的建立请求进行响应。
104.—种第一开放流交换机, 其特征在于, 包括:
发送器以及接收器;
所述发送器用于向开放流控制器发送第一消息, 以便于当所述开放流 控制器根据所述第一消息确定所述第一开放流交换机属于所述开放流控制 器管辖时, 所述开放流控制器向所述第一开放流交换机发送第一响应消息, 所述第一响应消息对应于所述第一消息;
所述接收器用于接收所述第一响应消息;
所述发送器还用于向所述开放流控制器发送第二消息, 所述第二消息 包含第一连接的类型信息以及所述第一连接的参数中与所述第一开放流交 换机有关的参数, 所述第一连接为待建立的所述第一开放流交换机与所述 开放流控制器的连接;
所述接收器还用于接收所述开放流控制器发送的第二响应消息, 所述 第二响应消息包含所述第一连接的参数中与所述开放流控制器有关的参 数。
105.根据权利要求 104所述第一开放流交换机, 其特征在于,
所述发送器具体包括第一发送子单元,
所述第一发送子单元用于以广播的形式发送所述第一消息, 以便于第 二开放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流 控制器转发所述第一消息。
106.根据权利要求 104所述第一开放流交换机, 其特征在于,
所述发送器具体包括第二发送子单元,
第二发送子单元用于以组播的形式发送所述第一消息, 以便于第二开 放流交换机接收到所述第一消息后, 通过控制通道向所述第一开放流控制 器转发所述第一消息, 所述开放流控制器为所述组播对应的组播组的成员。
107.根据权利要求 104至 106中任一权利要求所述第一开放流交换机, 其特征在于,
所述第一开放流交换机还包括执行单元,
所述执行单元用于执行建立所述第一连接的动作, 所述动作包括对所 述开放流控制器根据所述第一连接的类型信息、 所述第一连接的参数中与 所述第一开放流交换机有关的参数以及所述第一连接的参数中与所述开放 流控制器有关的参数发起的所述第一连接的建立请求进行响应。
108.根据权利要求 104至 106中任一权利要求所述第一开放流交换机, 其特征在于,
所述第一开放流交换机还包括执行单元,
所述执行单元用于执行建立所述第一连接的动作, 所述动作包括根据 所述第一连接的类型信息、 所述第一连接的参数中与所述第一开放流交换 机有关的参数以及所述第一连接的参数中与所述开放流控制器有关的参数 向所述开放流控制器发起所述第一连接的建立请求。
PCT/CN2011/083391 2011-12-02 2011-12-02 发送消息的方法、接收消息方法、开放流控制器及第一开放流交换机 WO2013078685A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
PCT/CN2011/083391 WO2013078685A1 (zh) 2011-12-02 2011-12-02 发送消息的方法、接收消息方法、开放流控制器及第一开放流交换机
EP11876638.5A EP2787694B1 (en) 2011-12-02 2011-12-02 Message sending method, message receiving method, openflow controller, and first openflow switch
PCT/CN2012/070136 WO2013078780A1 (zh) 2011-12-02 2012-01-09 发送消息的方法、接收消息方法、开放流控制器及第一开放流交换机
CN201280059046.XA CN103975561B (zh) 2011-12-02 2012-01-09 发送消息的方法、接收消息方法、开放流控制器及第一开放流交换机
US14/292,121 US9641421B2 (en) 2011-12-02 2014-05-30 Message transmitting method, message receiving method, openflow controller and first openflow switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/083391 WO2013078685A1 (zh) 2011-12-02 2011-12-02 发送消息的方法、接收消息方法、开放流控制器及第一开放流交换机

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/292,121 Continuation US9641421B2 (en) 2011-12-02 2014-05-30 Message transmitting method, message receiving method, openflow controller and first openflow switch

Publications (1)

Publication Number Publication Date
WO2013078685A1 true WO2013078685A1 (zh) 2013-06-06

Family

ID=48534655

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/CN2011/083391 WO2013078685A1 (zh) 2011-12-02 2011-12-02 发送消息的方法、接收消息方法、开放流控制器及第一开放流交换机
PCT/CN2012/070136 WO2013078780A1 (zh) 2011-12-02 2012-01-09 发送消息的方法、接收消息方法、开放流控制器及第一开放流交换机

Family Applications After (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/070136 WO2013078780A1 (zh) 2011-12-02 2012-01-09 发送消息的方法、接收消息方法、开放流控制器及第一开放流交换机

Country Status (3)

Country Link
US (1) US9641421B2 (zh)
EP (1) EP2787694B1 (zh)
WO (2) WO2013078685A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104579968B (zh) * 2013-10-26 2018-03-09 华为技术有限公司 Sdn交换机获取精确流表项方法及sdn交换机、控制器、系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101390342A (zh) * 2005-11-14 2009-03-18 思科技术公司 基于订户感知应用代理的网络保护技术
WO2010103909A1 (ja) * 2009-03-09 2010-09-16 日本電気株式会社 OpenFlow通信システムおよびOpenFlow通信方法
WO2011030462A1 (ja) * 2009-09-14 2011-03-17 日本電気株式会社 通信システム、ノード、制御サーバ、通信方法およびプログラム

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030086367A1 (en) * 1998-09-08 2003-05-08 Lee D. Bengston Method for monitoring spare capacity of a dra network
JP5115437B2 (ja) 2008-09-30 2013-01-09 ブラザー工業株式会社 ネットワークシステム、情報処理装置、情報処理方法及び情報処理装置用プログラム
CN102308534A (zh) 2009-02-03 2012-01-04 日本电气株式会社 应用交换机系统和应用交换机方法
EP2413547A4 (en) * 2009-03-26 2014-12-24 Nec Corp ROUTE DETERMINATION SERVER, ROUTE DETERMINATION METHOD AND ROUTE DETERMINATION PROGRAM
CN101877671B (zh) 2009-12-02 2012-06-27 北京星网锐捷网络技术有限公司 镜像报文的发送方法、交换芯片及以太网路由器
WO2011144495A1 (en) * 2010-05-19 2011-11-24 Telefonaktiebolaget L M Ericsson (Publ) Methods and apparatus for use in an openflow network
CN103026669B (zh) * 2010-08-20 2015-07-01 日本电气株式会社 通信系统、控制设备以及通信方法
EP2652923B1 (en) * 2010-12-13 2016-10-12 Nec Corporation Communication path control system, path control device, communication path control method, and path control program
US8830820B2 (en) * 2011-10-14 2014-09-09 Google Inc. Semi-centralized routing
US8738756B2 (en) * 2011-12-01 2014-05-27 International Business Machines Corporation Enabling co-existence of hosts or virtual machines with identical addresses
CN103975561B (zh) 2011-12-02 2017-02-22 华为技术有限公司 发送消息的方法、接收消息方法、开放流控制器及第一开放流交换机

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101390342A (zh) * 2005-11-14 2009-03-18 思科技术公司 基于订户感知应用代理的网络保护技术
WO2010103909A1 (ja) * 2009-03-09 2010-09-16 日本電気株式会社 OpenFlow通信システムおよびOpenFlow通信方法
WO2011030462A1 (ja) * 2009-09-14 2011-03-17 日本電気株式会社 通信システム、ノード、制御サーバ、通信方法およびプログラム

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2787694A4 *

Also Published As

Publication number Publication date
US9641421B2 (en) 2017-05-02
EP2787694A1 (en) 2014-10-08
US20140269708A1 (en) 2014-09-18
WO2013078780A1 (zh) 2013-06-06
EP2787694A4 (en) 2014-10-29
EP2787694B1 (en) 2016-06-15

Similar Documents

Publication Publication Date Title
US10652086B2 (en) Converging IOT data with mobile core networks
EP2955940B1 (en) Mobile network iot convergence
JP5867940B2 (ja) 接続確立要求を送信するための方法、スイッチ、サーバ、およびシステム
EP2843906B1 (en) Method, apparatus, and system for data transmission
US20110268127A1 (en) Unsolicited FIP Packet Injection by Proxy and Spoofing and Autoconfiguring Intermediate Bridges using FIP Snooping
JP2014527340A5 (zh)
WO2014153967A1 (zh) 一种OpenFlow网络中流表配置的方法、装置和系统
CN104125244B (zh) 一种分布式网络中转发信息的方法及系统
CN102546666B (zh) 防止igmp欺骗和攻击的方法及装置
JP6752141B2 (ja) パケットを処理するための方法およびフォワーダ
JP6480452B2 (ja) パケット処理方法および装置
JP2014519213A (ja) 通信システム、制御装置、転送ノード、通信システムの制御方法およびプログラム
CN105450779A (zh) 一家电设备连接多服务器的方法
JP2014520428A (ja) マルチパスオーバーレイネットワーク及びそれのマルチパス管理プロトコル
WO2014139234A1 (zh) 一种移动通信方法、移动通信服务器以及系统
WO2013176262A1 (ja) パケット転送システム、制御装置、パケット転送方法及びプログラム
WO2021218512A1 (zh) 非ip类型数据的传输处理方法、设备、装置及介质
CN105187387B (zh) 一种服务发现方法及终端
WO2015074423A1 (zh) 一种接入网关中数据报文的转发处理方法
JP2016506174A (ja) Ipアドレスに基づくudp中継
WO2013078685A1 (zh) 发送消息的方法、接收消息方法、开放流控制器及第一开放流交换机
WO2021120285A1 (zh) Profinet协议在工业sdn中的接入方法
WO2016095750A1 (zh) 虚拟交换集群中通信的方法及装置
WO2016202072A1 (zh) 自动配置方法、控制器及设备
JP2015192391A (ja) ネットワークシステム、パケット伝送装置、パケット伝送方法、及び情報処理プログラム

Legal Events

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

Ref document number: 11876638

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2011876638

Country of ref document: EP