摘要 |
The present invention discloses a packet control method, switch and controller. The method includes: the switch receives a packet, and processes the packet according to pipelining, wherein the original packet is stored in a buffer and a buffer identifier is used for identifying the buffer location of the original packet; when the packet fails to match a stream table, the switch transmits, to the controller, a first packet message Packet_in which carries the buffer identifier, all or part of the content of the packet, an input port number, and information obtained during the packet processing; the switch receives, transmitted from the controller, a second packet message Packet_out which carries the buffer identifier and a packet processing instruction including indication information of a designated stream table; following the packet processing instruction, the switch re-processes the packet from the designated stream table. With this means, the switch can flexibly process the packet according to the instruction of the controller. |