摘要 |
The embodiments of the present invention disclose a method for processing packet and a related device. The method for processing packet comprises: receiving, by a first network device, a forwarded packet; performing a flow table matching for the forwarded packet, and if unmatched, encapsulating the forwarded packet with an inner encapsulation of an remote tunnel and an outer encapsulation of the remote tunnel, and transmitting to a second network device, so that the second network device forwards the forwarded packet to a control server for a processing; receiving a flow table packet returned by the second network device, wherein the flow table packet carries flow table information of the forwarded packet and is encapsulated with a special layer 2 frame header; and processing the flow table packet according to an operation indicated by an Ethernet type value in the special layer 2 frame header. The technical solution provided by the present invention can effectively solve the bottleneck restriction of the network device control plane, and meanwhile achieve the separation of the data forwarding and the routing control. |