Packet control method, switch, and controller
First Claim
1. A method comprising:
- receiving, by a switch, an original packet;
processing, by the switch, the original packet according to a pipeline, wherein the original packet is stored at a buffer location in a buffer, and a buffer identifier indicates the buffer location;
sending, by the switch to a controller, a first packet message in response to the processed packet not matching a flow table, wherein the first packet message comprises processed packet information and causes the controller to determine a processing method for the processed packet, and wherein the first packet message further comprises the buffer identifier and a portion of the processed packet;
receiving, by the switch from the controller, a second packet message comprising a packet processing instruction and the buffer identifier, wherein the packet processing instruction comprises indication information of a specified flow table, and wherein the specified flow table is a start flow table that is in the pipeline; and
reprocessing, by the switch, the original packet according to the packet processing instruction and starting at the specified flow table.
1 Assignment
0 Petitions
Accused Products
Abstract
The embodiments disclose a packet control method, a switch, and a controller. The method includes receiving, by a switch, a packet, and processing the packet according to a pipeline, where an original packet is stored in a buffer, and a buffer location of the original packet is identified by using a buffer identifier. The method also includes when the packet fails to match a flow table, sending, by the switch, a first packet message to a controller, where the first packet message carries the buffer identifier, all or partial content of the packet; receiving, a second packet message sent by the controller, where the second packet message carries the buffer identifier and a packet processing instruction, and the packet processing instruction includes indication information of a specified flow table. Additionally, the method includes reprocessing, the packet according to the packet processing instruction and starting at the specified flow table.
24 Citations
20 Claims
-
1. A method comprising:
-
receiving, by a switch, an original packet; processing, by the switch, the original packet according to a pipeline, wherein the original packet is stored at a buffer location in a buffer, and a buffer identifier indicates the buffer location; sending, by the switch to a controller, a first packet message in response to the processed packet not matching a flow table, wherein the first packet message comprises processed packet information and causes the controller to determine a processing method for the processed packet, and wherein the first packet message further comprises the buffer identifier and a portion of the processed packet; receiving, by the switch from the controller, a second packet message comprising a packet processing instruction and the buffer identifier, wherein the packet processing instruction comprises indication information of a specified flow table, and wherein the specified flow table is a start flow table that is in the pipeline; and reprocessing, by the switch, the original packet according to the packet processing instruction and starting at the specified flow table. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method comprising:
-
receiving, by a controller from a switch, a first packet message comprising information of a processed packet, a buffer identifier, and a portion of the processed packet, and wherein the buffer identifier identifies a buffer location of an original version of the processed packet; performing, by the controller, analysis processing on the information of the processed packet, and generating a packet processing instruction, in response to receiving the first packet message, wherein the packet processing instruction comprises indication information of a specified flow table, and the specified flow table is a start flow table that is in a pipeline; and sending, by the controller to the switch, a second packet message comprising the packet processing instruction and the buffer identifier. - View Dependent Claims (8, 9, 10)
-
-
11. A switch, comprising:
-
a processor; and a non-transitory computer readable storage medium storing a program for execution by the processor, the program including instructions for; processing an original packet according to a pipeline, wherein the original packet is stored at a buffer location in a buffer, and a buffer identifier indicates the buffer location; sending, to a controller, a first packet message, in response to the processed packet not matching a flow table, wherein the first packet message comprises processed packet information and causes the controller to determine a processing method for the processed packet, and wherein the first packet message further comprises the buffer identifier and a portion of the processed packet; receiving, from the controller, a second packet message comprising a packet processing instruction and the buffer identifier, wherein the packet processing instruction comprises indication information of a specified flow table, and wherein the specified flow table is a start flow table that is in the pipeline; and reprocessing the original packet according to the packet processing instruction and starting at the specified flow table. - View Dependent Claims (12, 13, 14, 15, 16)
-
-
17. A controller, comprising:
-
a processor; and a non-transitory computer readable storage medium storing a program for execution by the processor, the program including instructions for; receiving, from a switch, a first packet message comprising information of a processed packet, a buffer identifier, and a portion of the processed packet, and wherein the buffer identifier identifies a buffer location of an original version of the processed packet; performing analysis processing on the information of the processed packet, and generating a packet processing instruction, in response to receiving the first packet message, wherein the packet processing instruction comprises indication information of a specified flow table, and the specified flow table is a start flow table that is in a pipeline; and sending, to the switch, a second packet message comprising the packet processing instruction and the buffer identifier. - View Dependent Claims (18, 19, 20)
-
Specification