HK1181928B - Communication system, node, control apparatus, communication method and program - Google Patents
Communication system, node, control apparatus, communication method and program Download PDFInfo
- Publication number
- HK1181928B HK1181928B HK13108288.9A HK13108288A HK1181928B HK 1181928 B HK1181928 B HK 1181928B HK 13108288 A HK13108288 A HK 13108288A HK 1181928 B HK1181928 B HK 1181928B
- Authority
- HK
- Hong Kong
- Prior art keywords
- node
- received packet
- identifier
- packet
- processing rule
- Prior art date
Links
Description
The present invention relates to a communication system, a node, a control device, a communication method, and a program, and more particularly to a communication system, a node, a control device, a communication method, and a program for carrying out communication by forwarding packets via the nodes arranged on a network.
Recently, the technology called OpenFlow is proposed as described in Non Patent Literatures 1 and 2. OpenFlow identifies communications as end-to-end flows and performs path control, failure recovery, load balancing, and optimization on a per-flow basis. An OpenFlow switch, which functions as a forwarding node, as a secure channel for communication with an OpenFlow controller, and operates according to the flow table to which information is added, and whose contents are rewritten, according to an instruction from the OpenFlow controller as necessary. In the flow table, a set of the following three is defined for each flow: a matching rule (FlowKey/Matching key) against which a packet header is matched, an action (Action) that defines processing contents, and flow statistical information (Stats) (see FIG 30 ).
For example, when a first packet is received, the OpenFlow switch searches the flow table for an entry that has a matching rule (FlowKey) that matches the header information of the received packet. If an entry matching the received packet is found as a result of the search, the OpenFlow switch performs the processing contents, described in the Actions field of the entry, for the received packet. On the other hand, if an entry matching the received packet is not found as a result of the search, the OpenFlow switch forwards the received packet to the OpenFlow controller via the secure channel, requests the OpenFlow controller to determine a packet path based on the transmission source/destination of the received packet, receives a flow entry for the packet path, and updates the flow table.
- [Non Patent Literature 1] Nick McKeown and seven other authors, "OpenFlow: Enabling Innovation in Campus Networks", [online], [Searched on February 26, 2010], Internet <URL: http://www.openflowswitch.org//documents/openflow-wp-latest.pdf>
- [Non Patent Literature 2] "Openflow Switch Specification" Version 1.0.0. (Wire Protocol 0x01) [Searched on April 1, 2010], Internet <URL: http://www.openflowswitch.org/documents/openflow-spec-v1.0.0.pdf>
The disclosure of the Non Patent Literatures given above is hereby incorporated by reference into this specification.
The following analysis is given by the present inventor. The OpenFlow controller, which receives the above-described request for determining the path of the received packet (see s2 Packet-In in FIG. 33 ), determines the forwarding path of the received packet. To forward the received packet and the subsequent packets, which belong to the same flow, to host (B), a flow entry must be set in all OpenFlow switches on the forwarding path (node #1 and node #2 in FIG. 33 ). In addition, based on an instruction from the network administrator, the OpenFlow controller must sometimes change the action of a flow entry that is already set and, in this case, must change or delete the flow entry.
When a flow entry described above is set, changed, or deleted via the OpenFlow protocol (see "4.6 Flow Table Modification Messages" in Non Patent Literature 2), a communication delay is sometimes generated between the OpenFlow controller and an OpenFlow switch. This delay, in turn, causes a delay in setting, changing, or deleting a flow entry in some of the OpenFlow switches. As a result, in an OpenFlow switch on the path, a packet matches an unintended flow entry in the flow table with the problem that an unintended action will be executed.
One possible method for solving this problem is shown in FIG. 33 . That is, the (OpenFlow) controller transmits a flow entry to nodes #1 and #2 (see FlowMod(Add) indicated by s3 and s6 in FIG. 33 ) and, at the same time, transmits a Barrier Request defined by the OpenFlow protocol (see "5.3.7 Barrier Message" in Non Patent Literature 2 for Barrier Request; Barrier Request/Reply indicated by s4 in FIG. 33 ). When the Barrier Request is received, the node completes the execution of the processing, which has been received before the Barrier Request is received, and responds with "Barrier Reply" (s5 in FIG. 33 ). This response allows the (OpenFlow) controller to confirm that the flow entry has been set correctly. The problem with this method is that the (OpenFlow) controller must exchange the Barrier Request/Reply with all nodes in which a flow entry is set, thus increasing the time before the user packet can be transmitted (s1(User Packet)-s10(User packet) in FIG. 33 ).
Another method is to use Stats Request/Reply, instead of Barrier Request/Reply described above, to check if each node has the corresponding entry. As with the method in which Barrier Request/Reply is used, this method also requires the exchange of messages with all nodes, in which a flow entry is set, to check if the flow entry is set correctly, thus increasing the time before the user packet can be transmitted (s1(User Packet)-s10(User packet) in FIG. 33 ).
In addition, if some flow entries are lost due to a node failure after the flow entries are set, both the method in which Barrier Request/Reply is used and the method in which Stats Request/Reply is used cannot avoid an unintended action from being executed.
It is an object of the present invention to provide a communication system, a node, a control device, a communication method, and a program for preventing the problems, such as those described above, in which an incorrect processing rule (flow entry) is hit in a node and an unintended processing is executed.
According to a first aspect of the present invention, there is provided a communication system, comprising a node; and a control device, wherein the node comprises: a processor (15) to process a received packet, wherein the control device comprises: a control unit (25) to notify a processing rule and first identifier for identifying the processing rule to said node, wherein the processing rule includes a matching rule, wherein the processor (15) of said node determines whether or not to process a received packet depending upon whether or not a second identifier attached to the received packet corresponds to the first identifier notified by the control unit (25), wherein the processor (15) processes the received packet according to said processing rule corresponding to the received packet if the second identifier corresponds to the first identifier.
According to a second aspect of the present invention, there is provided a node which is capable of communicating with a control device (20) for controlling the node, comprising: a first unit (11) to receive, from the control device, a processing rule and a first identifier for identifying the processing rule, wherein the processing rule includes a matching rule and an instruction for processing packet that corresponds to the matching rule; and a second unit (15) to determine whether or not to process a received packet depending upon whether or not a second identifier attached to the received packet corresponds to the first identifier sent from the control device (20), wherein the second unit (15) processes the received packet according to the processing rule corresponding to the received packet if the second identifier corresponds to the first identifier.
According to a third aspect of the present invention, there is provided a control device which is capable of communicating with a node (10) for processing a packet, comprising: a first unit (25) to generate a processing rule and a first identifier for identifying the processing rule, wherein the processing rule includes a matching rule and an instruction for processing for a packet that corresponds to the matching rule; and a second unit (26) to send the processing rule and the first identifier to the node which determines whether or not to process a received packet according to the processing rule corresponding to the received packet, wherein the node processes the received packet according to the processing rule if a second identifier attached to the received packet corresponds to the first identifier.
According to a fourth aspect of the present invention, there is provided a communication method of a node which is capable of communicating with a control device (20) for controlling the node, comprising: receiving, from the control device, a processing rule and a first identifier for identifying the processing rule, wherein the processing rule includes a matching rule and an instruction for processing a packet that corresponds to the matching rule; determining whether or not to process a received packet depending upon whether or not a second identifier attached to the received packet corresponds to the first identifier sent from the control device (20); and processing the received packet according to the processing rule corresponding to the received packet if the second identifier corresponds to the first identifier.
According to a fifth aspect of the present invention, there is provided a communication method of a control device which is capable of communicating with a node (10), comprisinggenerating a processing rule and a first identifier for identifying the processing rule, wherein the processing rule includes a matching rule and an instruction for processing a packet that corresponds to the matching rule; and sending the processing rule and the first identifier to the node which determines whether or not to process a received packet according to the processing rule corresponding to the received packet, wherein the node processes the received packet according to the processing rule if a second identifier attached to the received packet corresponds to the first identifier.
According to a sixth aspect of the present invention, there is provided a computer program as defined in claim 20.
According to a seventh aspect of the present invention, there is provided a computer program as defined in claim 21.
According to the present invention, the execution of unintended processing can be prevented in a node(s) arranged in a data forwarding network.
- FIG. 1 is a diagram showing the outline of the present invention.
- FIG. 2 is another diagram showing the outline of the present invention.
- FIG. 3 is a diagram showing the configuration of a communication system in a first exemplary embodiment of the present invention.
- FIG. 4 is a block diagram showing the configuration of a control device (controller) in the first exemplary embodiment of the present invention.
- FIG. 5 is a diagram showing the information held in a flow entry DB of the control device (controller) shown in FIG. 4.
- FIG. 6 is a diagram showing the information held in a verification information DB of the control device (controller) shown in FIG. 4.
- FIG. 7 is a block diagram showing the configuration of a node in a first exemplary embodiment of the present invention.
- FIG. 8 is a diagram showing the information held in a flow table of the node shown in FIG. 7.
- FIG. 9 is a diagram showing an example of a packet which includes verification information (or to which verification information is added).
- FIG. 10 is a diagram showing an example of the configuration of a verification-information-added additional header shown in FIG. 9.
- FIG. 11 is a flowchart showing the operation of the control device (controller) in the first exemplary embodiment of the present invention.
- FIG. 12 is a flowchart showing the operation of a node(s) in the first exemplary embodiment of the present invention.
- FIG. 13 is a reference diagram showing a sequence of flow in the communication system in the first exemplary embodiment of the present invention.
- FIG. 14 is a sequence diagram showing a sequence of the flow in the communication system in the first exemplary embodiment of the present invention.
- FIG. 15 is a diagram showing the information held in a flow entry DB of a control device (controller) in a second exemplary embodiment of the present invention.
- FIG. 16 is a diagram showing the information held in a verification information DB of the control device (controller) in the second exemplary embodiment of the present invention.
- FIG. 17 is a block diagram showing the configuration of a node in the second exemplary embodiment of the present invention.
- FIG. 18 is a diagram showing the information held in the flow table of the node shown in FIG. 17.
- FIG. 19 is a diagram showing an example of a packet in which verification information is included (embedded).
- FIG. 20 is a flowchart showing the operation of the control device (controller) in the second exemplary embodiment of the present invention.
- FIG. 21 is a flowchart showing the operation of a node in the second exemplary embodiment of the present invention.
- FIG. 22 is a diagram showing the information held in a flow entry DB of a control device (controller) in a third exemplary embodiment of the present invention.
- FIG. 23 is a diagram showing the information held in a verification information DB of the control device (controller) in the third exemplary embodiment of the present invention.
- FIG. 24 is a diagram showing the information held in the flow table of a node in the third exemplary embodiment of the present invention.
- FIG. 25 is a diagram showing the information held in a flow entry DB of a control device (controller) in a fourth exemplary embodiment of the present invention.
- FIG. 26 is a diagram showing the information held in a verification information DB of the control device (controller) in the fourth exemplary embodiment of the present invention.
- FIG. 27 is a diagram showing the information held in the flow table of a node in the fourth exemplary embodiment of the present invention.
- FIG. 28 is a diagram showing an example of a packet used in a fifth exemplary embodiment of the present invention.
- FIG. 29 is a diagram showing an example of the configuration of the verification-information-added additional header in FIG. 28.
- FIG. 30 is a diagram showing the configuration of a flow entry described in Non Patent Literature 2.
- FIG. 31 is a diagram showing the action names and the contents of the actions described in Non Patent Literature 2.
- FIG. 32 is a diagram showing the operation of the OpenFlow controller (controller) and a flow switch (node) described in Non Patent Literature 2.
- FIG. 33 is a reference diagram and a sequence diagram showing a sequence of operation for setting a flow entry reliably using the OpenFlow protocol described in Non Patent Literature 2.
First, the following describes the outline of an exemplary embodiment of the present invention. Note that the drawing reference numerals appended to this outline are exemplary only to help understanding but do not intend to limit the present invention to the mode shown in the figures. As shown in FIG. 1 , when a packet is received, a node 10 (see node #2 in FIG. 1 ) of a communication system of the exemplary embodiment of present invention extracts a processing rule, which conforms to the received packet, using the matching rule (matching key) included in the processing rule held in the device itself (step 1). Next, the node 10 (see node #2 in FIG. 1 ) checks if (whether or not) the identifier associated with the extracted processing rule is identical with the identifier included in the received packet (step 2). Although, in the above description, the node 10 checks that the identifier associated with the processing rule is identical with the identifier included in the received packet, the present invention is not limited to this method. For example, the present invention includes a case in which the node 10 checks that the identifier associated with the processing rule corresponds to the identifier included in the received packet. This applies also to the subsequent steps and exemplary embodiments. If it is confirmed as a result of the checking that the identifier associated with the processing rule matches the identifier of the received packet, the node 10 (see node #2 in FIG. 1 ) performs processing according to the processing rule (step 3).
The above-described identifier is information generated by a control device (controller) 20 in association with the processing rule. The identifier is generated and attached so that the processing rules that may conform to a received packet can be identified. Therefore, if a processing rule is extracted through the search using a matching rule (matching key) but if the identifier does not match that of a received packet, the action of the processing rule is not performed. An identifier is included in a user packet in various ways, for example, an identifier is added to the user packet as shown in FIG. 1 and FIG. 2 or is embedded in a particular area of the user packet (see FIG. 19 ).
The configuration described above avoids an unintended action from being executed even when a condition mentioned before in this specification occurs, for example, when the setting of a processing rule is delayed or when a part of a flow entry is lost due to an error in the node.
In the example in FIG. 1 , the node extracts a processing rule that conforms to a received packet using a matching rule (matching key) and, after that, checks if the identifier associated with the extracted processing rule matches the identifier of the received packet. Instead of this, another method is also possible as shown in FIG. 2 in which the node extracts a processing rule that conforms to a received packet using an identifier and, after that, checks if the matching rule (matching key) of the extracted processing rule matches the contents of the received packet (header information to be compared with the matching rule (matching key)).
In this case, too, if a processing rule is extracted through the search using an identifier but if the matching rule (matching key) does not match the contents (header information) of a received packet, the action of the processing rule is not performed. As in the configuration shown in FIG. 1 , this configuration also avoids an unintended action from being executed, for example, when the setting of a processing rule is delayed.
Next, a first exemplary embodiment of the present invention will be described in detail with reference to the drawings. FIG. 3 is a diagram showing the configuration of a communication system in the first exemplary embodiment of the present invention. Referring to FIG. 3 , the communication system comprises three nodes 10, a control device (controller) 20, and hosts (A) and (B) that communicate with each other via the nodes 10. Although the three nodes 10, the control device (controller) 20, and the two hosts (Host(A), Host(B)) are shown in the example in FIG. 3 , any number of nodes, control devices (controllers), and hosts may be used.
In addition, the control message processing unit 25 comprises a message analysis/processing unit 251 that analyzes a control message received from the node 10 and performs necessary processing and a message generation unit 252 that generates a message to be transmitted to the node 10.
When a packet that matches the matching key "A" is received, the node whose DPID is 1 (for example, node #1 in FIG. 3 ) performs the processing indicated by the first entry from the top. That is, the node adds a header, which includes verification information "CA", to the packet and outputs the packet from the ninth port according to the Actions field (Actions). Similarly, when a packet that matches the matching key "A" is received from the node whose DPID is 1 (for example, node #1 in FIG. 3 ), the node whose DPID is 2 (for example, node #2 in FIG. 3 ) outputs the packet from the sixth port. When a packet that matches the matching key "A" is received from the node whose DPID is 2 (for example, node #2 in FIG. 3 ), the node whose DPID is 3 (for example, node #3 in FIG. 3 ) removes the header, which includes the verification information "CA", from the packet and outputs the packet from the first port. As a result of the above processing, the forwarding path is controlled in such a way that the verification information "CA" is added to a packet that matches the matching key "A" and the packet is forwarded via the specified path, during which the verification information "CA" is used for matching. In the actual flow entry DB 21, each of the matching keys "A", "B", and "X" shown in FIG. 5 is composed of a rule (FlowKey; a wildcard may be used) with which the header of a received packet, such as that shown in FIG. 30 , is compared.
Note that, if a processing rule (flow entry) that the control device (controller) 20 instructs the node 10 to add or update, as well as verification information associated with the processing rule, need not be held, the flow entry DB 21 may be omitted. Similarly, if verification information generated in association with a processing rule need not be held, the verification information DB 27 may be omitted. In addition, another configuration is also possible in which the flow entry DB 21 and/or the verification information DB 27 is provided in an external server separately.
The control device (controller) 20 described above may be implemented by adding at least the following two to the OpenFlow controller described in Non Patent Literatures 1 and 2. One is the verification information generation unit 28, and the other is the function to set a processing rule (flow entry) and the verification information associated with the processing rule in the node 10.
The forwarding processing unit 15 comprises a table search unit 153 and an action execution unit 154. The table search unit 153 includes a verification information matching unit 152 that compares the verification information associated with a processing rule (flow entry) with the verification information added to a received packet to determine if they match. The table search unit 153 searches the flow table 13 for a processing rule (flow entry), which has a matching key that conforms to a received packet and whose verification information matches that of the received packet, and outputs the processing contents (action) to the action execution unit 154. The action execution unit 154 executes the processing contents (action) output from the table search unit 153.
The node 10 described above may be implemented by adding the verification information matching unit 152 to the OpenFlow switch and by configuring the flow table 13 so that verification information can be held in association with a processing rule (flow entry). The table (flow entry) search unit 153, which includes the verification information matching unit 152, of the node 10 may be configured by a program executed by a computer configuring the node 10.
Next, the following describes the operation of the control device (controller) 20 and the node 10 described above. FIG. 11 is a flowchart showing the operation of the control device (controller) 20. Referring to FIG. 11 , when an inquiry (processing rule creation request; see step S111 in FIG. 12 ) is received from the node 10 (step S001; Packet-In), the control device (controller) 20 checks if the inquiry packet includes verification information (step S002). If the inquiry packet includes verification information (Yes in step S002), the processing rule corresponding to the packet is already created and so the control device (controller) 20 retrieves the processing rule corresponding to the packet and the verification information associated with the processing rule from the flow entry DB 21 (step S012) and passes control to step S008.
On the other hand, if the inquiry packet does not include verification information (No in step S002), the control device (controller) 20 acquires the network topology information built by the topology management unit 22 and calculates the forwarding path of the packet (step S003).
Except when it is determined from the result of the packet forwarding path calculation that the packet cannot be forwarded because the forwarding path cannot be created or because a node on the path has failed (No in step S004), the control device (controller) 20 calculates an action corresponding to the calculated forwarding path (step S005). Next, the control device (controller) 20 generates verification information that is associated with the processing rule (flow entry) applied to each of the nodes 10 on the path (step S006). In addition, the control device (controller) 20 generates a processing rule (flow entry) that is applied to each of the nodes 10 on the path wherein the processing rule (flow entry) includes the matching key for identifying the flow, to which the inquiry packet belongs, and the action (step S007).
When the acquisition or generation of the processing rule (flow entry) and the verification information is completed, the control device (controller) 20 generates a setting instruction (Flow Mod(Add)) for setting the generated processing rule (flow entry) and the verification information (step S008) and transmits the setting instruction (Flow Mod(Add)) for setting the processing rule (flow entry) and the verification information to the nodes 10 on the packet forwarding path created by the processing rule (flow entry) (step S009).
After that, if the node 10 has not buffered the packet (No in step S010), the control device (controller) 20 transmits a packet output instruction (Packet-Out) (step S011). This packet output instruction is carried out by specifying the packet to be output (packet received by Packet-In in step S001) and the action to be executed for the packet (addition of verification information and output packet from the specified port) or by specifying the packet to be output (packet received by Packet-In in step S001) and the action to be executed for the packet (search through the flow table). Note that, if the node 10 has buffered the packet (Yes in step S010), the control device (controller) 20 can cause the node 10 to output the packet as will be described later and, therefore, the control device (controller) 20 omits this processing.
If a processing rule (flow entry) is extracted in step S102 (Yes in step S103), the node 10 checks if the received packet includes verification information (step S104). In this exemplary embodiment, the node 10 checks if the received packet has an additional header to see if the verification information is included.
If the received packet does not include verification information, the node 10 executes the action described in the extracted processing rule (flow entry) (step S107).
On the other hand, if it is determined in step S104 that the received packet includes verification information, the node 10 compares the verification information, included in the received packet, with the verification information associated with the extracted processing rule (flow entry) (step S105).
If the two pieces of verification information match, the node 10 executes the action described in the extracted processing rule (flow entry) (step S107). That is, to execute an action for a packet that includes verification information, it is required that a matching processing rule (flow entry) be found during the search using a matching key and that the verification information associated with the processing rule (flow entry) match that included in the received packet.
On the other hand, if a processing rule (flow entry) that conforms to the received packet is not found in step S103 or if a processing rule (flow entry) that conforms to the received packet is found but the two pieces of verification information do not match, the node 10 passes control to step S111 without executing the action described in the extracted processing rule (flow entry) and transmits an inquiry to the control device (controller) 20 (a request to create and transmit a processing rule (flow entry) and verification information corresponding to the received packet).
In step S111, the node 10 saves the received packet in the packet buffer 14 and, at the same time, transmits the received packet to the control device (controller) 20 to request it to create a processing rule and verification information. After that, in response to this request, the control device (controller) 20 creates and sets a processing rule and verification information according to the procedure shown in FIG. 11 .
When the setting instruction (Flow Mod(ADD)) to set a processing rule (flow entry) and verification information is received from the control device (controller) 20, the node 10 sets the processing rule (flow entry) and the verification information, associated with the processing rule, in its own flow table 13 according to Flow Mod (Add) (step S112).
Next, the node 10 checks if the received packet is saved in the packet buffer 14 (step S113). If the received packet is saved (Yes in step S113), the node 10 reads the received packet (step S114) and executes the processing contents (action; addition of verification information and output of the received packet from the specified port) defined by the processing rule (flow entry) that has been set as described above (step S107). This causes the received packet to be forwarded to the next-hop node.
On the other hand, if the node 10 does not hold the user packet, for example, when the node 10 does not have the packet buffer 14 (No in step S113), the node 10 receives the packet output instruction (Packet-Out) from the control device (controller) 20 (step S116).
If the packet buffer 14 is provided, the node 10 that has received the packet output instruction (Packet-Out) checks if the packet is saved in the packet buffer 14 (step S117). If the packet is saved (Yes in step S117), the node 10 reads the packet (step S118) and executes the processing contents (action; in this case, addition of verification information to the received packet, output of the received packet from the specified port, or search through the flow table) received with the packet output instruction (Packet-Out) (step S107). If the packet is not saved (No in step S117), the node 10 executes the processing contents (action; in this case, addition of verification information to the packet, and output of the packet from the specified port, or search through the flow table) received with the packet output instruction (Packet-Out) for the packet received with the packet output instruction (Packet-Out) (step S107). This causes the received packet to be forwarded to the next-hop node.
As shown in FIG. 13 and FIG. 14 , when host (A) transmits a user packet, which is to be transmitted to host (B), to node #1 (ST1; User Packet in FIG. 13 and FIG. 14 ), node #1 searches (for flow entry) in the flow table 13 and, as a result, determines that the packet is an unknown packet that has no processing rule (flow entry) matching the received packet (No in step S103 in FIG. 12 ). Node #1 transmits an inquiry (a request to create a processing rule (flow entry) and verification information) to the control device (controller) 20 (ST2; Packet-In in FIG. 13 and FIG. 14 ).
When the inquiry (a request to create a processing rule (flow entry) and verification information) is received, the control device (controller) 20 creates a processing rule (flow entry) and verification information (CA) to be set in the nodes #1-#3 on the forwarding path of this packet according to the flowchart in FIG. 11 and transmits them to nodes #1-#3 (ST3-1 to ST5-1; Flow Mod(Add) w/CA in FIG. 13 and FIG. 14 ).
Each of nodes #1 - #3 adds the processing rule (flow entry) and the verification information (CA), transmitted from the control device (controller) 20, to the flow table 13 of its own device and, if the buffer ID is added, executes the action for the packet (ST3-2 to ST5-2 in FIG. 13 and FIG. 14 ). In the description below, assume that the processing rule (flow entry) and the verification information (CA) transmitted in ST4-1 in FIG. 13 and FIG. 14 do not reach node #2 for some reason and, therefore, the processing rule (flow entry) and the verification information (CA) are not added to the flow table 13 of node #2.
And, then, node #1 generates a user packet, to which an additional header including the verification information (CA) is added (see FIG. 9 ), and outputs the generated packet from the specified port (port connected to node #2) according to the action (See the action (Actions) in the entry in FIG. 5 corresponding to DPID = 1, matching key = A, and verification information = CA) included in the processing rule received in ST3-1 (ST6 in FIG. 13 and FIG. 14 ).
When the user packet, to which the additional header including the verification information (CA) is added, is received, node #2 conducts search in the flow table 13 and, as a result, determines that there is no processing rule (flow entry) matching the received packet or that there is a processing rule (flow entry) matching the received packet but the verification information does not match that of the received packet (No in step S103 or No in step 106 in FIG. 12 ). Node #2 transmits an inquiry (a request to create a processing rule (flow entry) and verification information) to the control device (controller) 20 (ST8; Packet-In in FIG. 13 and FIG. 14 ).
When the inquiry (a request to create a processing rule (flow entry) and verification information) is received, the control device (controller) 20 acquires a processing rule (flow entry) and verification information (CA), which are to be set in node #2 on a path of the packet (step S012 in FIG. 11 ), and transmits them to node #2 according to the flowchart in FIG. 11 (ST9; Flow Mod(Add) w/CA in FIG. 13 and FIG. 14 ).
Node #2 adds the processing rule (flow entry) and the verification information, transmitted from the control device (controller) 20, to the flow table 13 of its own device and, if the buffer ID is added, executes the action (ST10 in FIG. 13 and FIG. 14 ).
And, then, node #2 outputs the user packet, to which the additional header including the verification information (CA) is added, from the specified port (port connected to node #3) according to the action (See the action (Actions) in the entry in FIG. 5 corresponding to DPID = 2, matching key = A, and verification information = CA) in the processing rule received in ST10 (ST11 in FIG. 13 and FIG. 14 ).
When the user packet, to which the additional header including the verification information (CA) is added, is received, node #3 conducts search in the flow table 13 and, as a result, determines that one of the processing rules (flow entries) conforms to the received packet and the verification information also matches that of the received packet (Yes in step S103 and Yes in step 106 in FIG. 12 ), and executes the action defined in the extracted and confirmed processing rule (flow entry) (ST12 in FIG. 13 and FIG. 14 ).
More specifically, node #3 removes the additional header including the verification information (CA) from the user packet and outputs the packet from the specified port (port connected to host (B)) according to the action (See the action (Actions) in the entry in FIG. 5 corresponding to DPID = 3, matching key = A, and verification information = CA) in the processing rule (flow entry) extracted and confirmed in ST12 (ST13 in FIG. 13 and FIG. 14 ).
As described above, an action is executed in this exemplary embodiment under the condition that not only the matching key of a processing rule (flow entry) matches the header information of a received packet but also the verification information, separately generated by the control device (controller) 20, matches that of the received packet. Thus, this exemplary embodiment can avoid the condition, described at the start of this specification, where an unintended action specified in a processing rule (flow entry) is executed.
In this exemplary embodiment, if it is determined in step S104 that verification information is not included in a received packet, an action is executed without comparing the verification information, considering a packet to which verification information need not be added. Instead of this, it is also possible to always prevent the execution of an action if verification information is not included in a received packet.
Next, the following describes a second exemplary embodiment of the present invention in detail with reference to the drawings. Although verification information is added to a packet using an additional header that includes verification information in the first exemplary embodiment of the present invention described above, verification information may also be included in a packet without using the additional header. The following describes the second exemplary embodiment in which verification information is included in a packet without using an additional header. Because the basic configuration of a node 10 and a control device (controller) 20 in the second exemplary embodiment is similar to that of the node 10 and control device (controller) 20 in the first exemplary embodiment, the following describes the configuration with emphasis on the difference.
For example, when a packet that matches the matching key "A" is received, the node in FIG. 15 whose DPID is 1 (for example, node #1 in FIG. 3 ) sets the value D1', which includes verification information (CA), in the MAC DA field of the packet according to the action field (Actions) and then outputs the packet from the ninth port. When the packet (packet that matches the matching key A') whose MAC DA field includes the verification information (CA) is received from the node whose DPID is 1 (for example, node #1 in FIG. 3 ), the node whose DPID is 2 (for example, node #2 in FIG. 3 ) outputs the packet from the sixth port. When the packet (packet that matches the matching key A') whose MAC DA field includes the verification information (CA) is received from the node whose DPID is 2 (for example, node #2 in FIG. 3 ), the node whose DPID is 3 (for example, node #3 in FIG. 3 ) restores the MAC DA field to the same contents (D1) as those of MAC DA of the original received packet and then outputs the packet from the first port. As a result of the above processing, the forwarding path is controlled in such a way that the verification information "CA" is added by the first-hop node on the forwarding path and the packet is forwarded via the specified path, during which the verification information "CA" is used for matching.
Next, the following describes the operation of this exemplary embodiment. FIG. 20 is a flowchart showing the operation of the control device (controller) in the second exemplary embodiment of the present invention. The operation shown in this figure differs from the operation in FIG. 11 , which shows the operation of the control device (controller) in the first exemplary embodiment, in that, when the control device checks if verification information is included in an inquiry packet in step S002a, the control device checks, not the additional header, but whether or not the above-described fixed data (see FIG. 19 ) is written in MAC DA. The other steps are similar to those in the first exemplary embodiment and therefore the description is omitted here.
As described above, the present invention may be implemented in the mode in which verification information is included in a particular field of an existing packet.
Next, the following describes a third exemplary embodiment of the present invention in detail with reference to the drawings. Although the same verification information is stored in the nodes by associating the verification information with a flow entry of the flow table in the first exemplary embodiment of the present invention, another configuration is also possible in which the nodes use different verification information for comparison. The following describes the third exemplary embodiment in which the nodes use different verification information for comparison. Because the basic configuration of a node 10 and a control device (controller) 20 in the third exemplary embodiment is similar to that of the node 10 and control device (controller) 20 in the first exemplary embodiment, the following describes the configuration with emphasis on the difference.
For example, when a packet that matches the matching key "A1" is received, the node in FIG. 22 whose DPID is 1 (for example, node #1 in FIG. 3 ) adds the additional header, which stores the verification information (C2A), to the received packet and outputs the packet from the ninth port according to the action field (Actions). Similarly, when the packet (packet that matches the matching key A2), to which the additional header storing the verification information (C2A) is added, is received from the node whose DPID is 1 (for example, node #1 in FIG. 3 ), the node whose DPID is 2 (for example, node #2 in FIG. 3 ) rewrites the verification information (C2A) of the additional header to the verification information (C3A) and then outputs the packet from the sixth port. And, when the packet (packet that matches the matching key A3), to which the additional header storing the verification information (C3A) is added, is received from the node whose DPID is 2 (for example, node #2 in FIG. 3 ), the node whose DPID is 3 (for example, node #3 in FIG. 3 ) removes the additional header from the packet and then outputs the packet from the first port. As a result of the above processing, the forwarding path on the specified path is controlled in such a way that the packet is forwarded sequentially beginning at the first-hop node on the forwarding path, during which the verification information is rewritten and the verification information is used for matching.
This exemplary embodiment differs from the first exemplary embodiment only in that the control device generates verification information for each node and that the actions executed in the nodes differ. The basic operation is the same as that of the first exemplary embodiment and therefore the description is omitted (see FIG. 11 and FIG. 12 ).
This exemplary embodiment, in which each node rewrites the verification information according to the action included in a processing rule as described above, differs from the first exemplary embodiment in that the flow entries with different matching keys may be set in the nodes on the path for one communication flow.
Next, the following describes a fourth exemplary embodiment of the present invention in detail with reference to the drawings. In the fourth exemplary embodiment of the present invention that is a combination of the second exemplary embodiment and the third exemplary embodiment of the present invention, the additional header is not used and each node uses different verification information for comparison. Because the basic configuration of a node 10 and a control device (controller) 20 in the fourth exemplary embodiment is similar to that of the node 10 and control device (controller) 20 in the first to third exemplary embodiments, the following describes the configuration with emphasis on the difference.
For example, when a packet that matches the matching key "A" is received, the node in FIG. 25 whose DPID is 1 (for example, node #1 in FIG. 3 ) sets the value D1', which includes the verification information (C2A), in the MAC DA field of the packet and then outputs the packet from the ninth port according to the action field (Actions). Similarly, when the packet (packet that matches the matching key A') whose MAC DA field includes the verification information (C2A) is received from the node whose DPID is 1 (for example, node #1 in FIG. 3 ), the node whose DPID is 2 (for example, node #2 in FIG. 3 ) rewrites the MAC DA field of the packet to the value D1", which includes the verification information (C3A), and then outputs the packet from the sixth port. When the packet (packet that matches the matching key A") whose MAC DA field includes the verification information (C3A) is received from the node whose DPID is 2 (for example, node #2 in FIG. 3 ), the node whose DPID is 3 (for example, node #3 in FIG. 3 ) restores the MAC DA field to the same contents (D1) as those of MAC DA of the original received packet and then outputs the packet from the first port. As a result of the above processing, the forwarding path on the specified path is controlled in such a way that the verification information is sequentially rewritten and the verification information is used for matching in the first-hop node of the forwarding path.
This exemplary embodiment differs from the first exemplary embodiment only in that the control device generates verification information for each node and that the actions executed in the nodes differ. The basic operation is the same as that of the first exemplary embodiment and therefore the description is omitted (see FIG. 11 and FIG. 12 ).
This exemplary embodiment, in which each node rewrites the verification information according to the action included in a processing rule as described above, differs from the second exemplary embodiment in that the flow entries with different matching keys may be set in the nodes on the path for one communication flow.
Next, the following describes a fifth exemplary embodiment of the present invention in detail with reference to the drawings. Although only one piece of verification information is stored in the additional header in the third exemplary embodiment of the present invention described above, another configuration is also possible in which verification information, which is used for comparison by the nodes on the forwarding path, is stored in the additional header, one for each node. In this configuration, when a packet to which the additional header is added is received, a node identifies the verification information to be referenced by the node for use in the comparison operation. The following describes the fifth exemplary embodiment in which multiple pieces of verification information can be stored in the additional header. Because the basic configuration of a node 10 and a control device (controller) 20 in the fifth exemplary embodiment is similar to that of the node 10 and control device (controller) 20 in the third exemplary embodiment described above, the following describes the configuration with emphasis on the difference.
This exemplary embodiment differs from the first exemplary embodiment only in that the control device generates verification information for each node and that each node retrieves its own verification information using the DPID and executes the comparison operation. The basic operation is the same as that of the first exemplary embodiment and therefore the description is omitted (see FIG. 11 and FIG. 12 ).
As described above, the present invention may be implemented by the configuration in which an additional header, which stores verification information on individual nodes, is added. This exemplary embodiment has an advantage over the third exemplary embodiment in that each node can omit the processing for rewriting the verification information.
While the preferred exemplary embodiments of the present invention have been described, it is to be understood that the present invention is not limited to the exemplary embodiments described above and that further modifications, replacements, and adjustments may be added within the scope not departing from the basic technological concept of the present invention. The control devices (controller) 20 and 20a in the exemplary embodiments described above may be implemented by a dedicated server, and the nodes 10, 10a, and 10b may be implemented by the OpenFlow switch described above as well as by a router on an IP network or an MPLS (Multi-Protocol Label Switching) switch on an MPLS network. In addition, the present invention is applicable to a network where a server integrally manages the nodes in the network.
In the fifth exemplary embodiment described above, the node identifiers (DPID) are included in the additional header to allow each node to identify the verification information to be compared in the device. It is also possible to use the method in which the verification information is used beginning with the first or last verification information in the additional header and the use-flag is set to indicate that the verification information is already used or the method in which each node sequentially deletes from the additional header the verification information it uses for comparison.
Although the last-hop node removes the additional header, or restores the MAC DA field, in the exemplary embodiments described above, another configuration is also possible in which the host performs this processing.
As the verification information described in the exemplary embodiments described above, the information generated by the controller to allow a flow entry to be identified uniquely, such as Flow Cookie in Non Patent Literature 2, may also be used.
Although the control device 20 comprises the verification information generation unit 28 in the exemplary embodiments described above, the configuration in which the verification information generation unit is generated in each node is also possible if each node 10 can create verification information by establishing synchronization among nodes 10 or between the node 10 and the control device 20 or by allocating the verification information generation function and its arguments to each node 10.
- 10, 10a, 10b
- Node
- 11
- Control device communication unit
- 12
- Flow table management unit
- 13
- Flow table
- 14
- Packet buffer
- 15, 15a
- Forwarding processing unit
- 20
- Control device
- 21
- Flow entry database (flow entry DB)
- 22
- Topology management unit it
- 23
- Path/action calculation unit
- 24
- Flow entry management unit
- 25
- Control message processing unit
- 26
- Node communication unit
- 27
- Verification information database (verification information DB)
- 28
- Verification information generation unit
- 31
- User packet
- 32, 32a, 32b
- Verification-information-added packet
- 33, 33b
- Verification-information-added additional header
- 152, 152a
- Verification information matching unit
- 153, 153a
- Table search unit
- 154
- Action execution unit
- 251
- Message analysis/processing unit
- 252
- Message generation unit
Claims (21)
- A communication system, comprising:a node; anda control device,wherein the node comprises:a processor (15) to process a received packet,wherein the control device comprises:a control unit (25) to notify a processing rule and first identifier for identifying the processing rule to said node, wherein the processing rule includes a matching rule,wherein the processor (15) of said node determines whether or not to process a received packet depending upon whether or not a second identifier attached to the received packet corresponds to the first identifier notified by the control unit (25)wherein the processor (15) processes the received packet according to said processing rule corresponding to the received packet if the second identifier corresponds to the first identifier.
- The communication system as defined by claim 1, wherein the first and second identifiers are used to verify a comparison result between the received packet and the processing rule, the comparison being based on the matching rule.
- the communication system as defined by claim 1 or 2, wherein said node is configured to search for a processing rule corresponding to a matching rule which conforms to a received packet, by comparing the received packet with the matching rule and, in case where the second identifier of the received packet corresponds to the first identifier associated with the processing rule searched, and to perform processing for the received packet according to the processing rule searched.
- The communication system as defined by claim 1 or 2, wherein said node is configured to search for a processing rule associated with a first identifier corresponding to the second identifier of a received packet and, in case where a matching rule corresponding to the processing rule conforms to the received packet, and to perform processing for the received packet according to the processing rule searched.
- The communication system as defined by one of claims 1 - 4, wherein the identifier is unique at least among a plurality of processing rules each corresponding to a plurality of matching rules that conforms to a received packet.
- The communication system as defined by one of claims 1 - 4, wherein the identifier is unique statistically.
- The communication system as defined by one of claims 1 - 6, wherein said node is configured to determine whether or not a received packet includes a second identifier of the received packet by checking whether or not an additional header, in which the identifier is stored, is added to the received packet.
- The communication system as defined by one of claims 1 - 6, wherein said node is configured to determine whether or not a received packet includes a second identifier of the received packet by checking whether or not an identifier is stored in a predetermined field of the received packet.
- the communication system as defined by one of claims 1 - 6 and 8, wherein said control device is configured to control each said node in such a way that a node located at a start of a packet forwarding path replaces information in a predetermined field of a received packet with information including a second identifier, followed by forwarding the packet; and a node located at an end of the forwarding path is configured to restore the information in a predetermined field of the received packet to contents before the replacement, followed by forwarding the packet.
- The communication system as defined by one of claims 1 - 9, wherein said control device is configured to set a different identifier in a processing rule that is set in a node on a packet forwarding path and controls each said node in such a way that a node on the forwarding path sequentially rewrites an identifier of a received packet to an identifier of a next -hop node.
- The communication system as defined by one of claims 1 - 7 and 10, wherein said control device is configured to control each said node in such a way that a node located at a start of a packet forwarding path adds an additional header, which includes an identifier, to a received packet, followed by forwarding the packet; and a node located at an end of the forwarding path removes the additional header, followed by forwarding the packet.
- The communication system as defined by claim 7 or 11, wherein the additional header stores a plurality of identifiers each used for determination in a node on a packet forwarding path.
- A node which is capable of communicating with a control device (20) for controlling the node, comprising:a first unit (11) to receive, from the control device, a processing rule and a first identifier for identifying the processing rule, wherein the processing rule includes a matching rule and an instruction for processing packet that corresponds to the matching rule; anda second unit (15) to determine whether or not to process a received packet depending upon whether or not a second identifier attached to the received packet corresponds to the first identifier sent from the control device (20),wherein the second unit (15) processes the received packet according to the processing rule corresponding to the received packet if the second identifier corresponds to the first identifier.
- The node as defined by claim 13, wherein the identifier is used to verify a comparing result between the received packet and the processing rule, the comparing being result based on the matching rule.
- the node as defined by claim 13, wherein said node is configured to search for a processing rule corresponding to a matching rule which conforms to a received packet, by comparing the received packet with the matching rule and, in case where an identifier of the received packet corresponds to an identifier associated with the processing rule searched, performs processing for the received packet according to the processing rule searched.
- The node as defined by claim 13, wherein said node is configured to search for a processing rule associated with an identifier corresponding to an identifier of a received packet and, in case where a matching rule corresponding to the processing rule conforms to the received packet, performs processing for the received packet according to the processing rule searched.
- A control device which is capable of communicating with a node (10) for processing a packet, comprising:a first unit (25) to generate a processing rule and a first identifier for identifying the processing rule, wherein the processing rule includes a matching rule and an instruction for processing for a packet that corresponds to the matching rule; anda second unit (26) to send the processing rule and the first identifier to the node which determines whether or not to process a received packet according to the processing rule corresponding to the received packet, wherein the node processes the received packet according to the processing rule if a second identifier attached to the received packet corresponds to the first identifier.
- A communication method of a node which is capable of communicating with a control device (20) for controlling the node, comprising:receiving, from the control device, a processing rule and a first identifier for identifying the processing rule, wherein the processing rule includes a matching rule and an instruction for processing a packet that corresponds to the matching rule;determining whether or not to process a received packet depending upon whether or not a second identifier attached to the received packet corresponds to the first identifier sent from the control device (20); andprocessing the received packet according to the processing rule corresponding to the received packet if the second identifier corresponds to the first identifier.
- A communication method of a control device which is capable of communicating with a node (10), comprising:generating a processing rule and a first identifier for identifying the processing rule, wherein the processing rule includes a matching rule and an instruction for processing a packet that corresponds to the matching rule; andsending the processing rule and the first identifier to the node which determines whether or not to process a received packet according to the processing rule corresponding to the received packet, wherein the node processes the received packet according to the processing rule if a second identifier attached to the received packet corresponds to the first identifier.
- A computer program comprising instructions which when executed perform the steps of claim 18.
- A computer program comprising instructions which when executed perform the steps of claim 19.
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010123054 | 2010-05-28 | ||
| JP2010123054 | 2010-05-28 | ||
| PCT/JP2011/062046 WO2011149003A1 (en) | 2010-05-28 | 2011-05-26 | Communication system, node, control apparatus, communication method and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1181928A1 HK1181928A1 (en) | 2013-11-15 |
| HK1181928B true HK1181928B (en) | 2015-08-07 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2579510B1 (en) | Communication system, node, control apparatus, communication method and program | |
| AU2011228096B2 (en) | Communication system, node, control server, communication method and program | |
| US10171352B2 (en) | Communication system, node, control device, communication method, and program | |
| CN102714628B (en) | Communication system, control device, processing rule setting method, and packet transmission method | |
| CN102577271B (en) | Information system, control server, virtual network management method and program | |
| WO2012101689A1 (en) | Communication system, forwarding node, control device, communication control method, and program | |
| CN104106244A (en) | Control device, communication system, communication method and program | |
| EP2769512A1 (en) | Control apparatus for forwarding apparatus, control method for forwarding apparatus, communication system, and program | |
| WO2013114489A1 (en) | Control method, control apparatus, communication system, and program | |
| US20150381775A1 (en) | Communication system, communication method, control apparatus, control apparatus control method, and program | |
| HK1181928B (en) | Communication system, node, control apparatus, communication method and program | |
| JP5768600B2 (en) | COMMUNICATION SYSTEM, CONTROL DEVICE, PACKET TRANSFER METHOD, AND PROGRAM | |
| HK1181927A (en) | Communication system, node, control server, communication method and program | |
| HK1176194A (en) | Information system, control apparatus, method of controlling virtual network, and program |