摘要 |
Disclosed are an encapsulation method and system for a flow identifier. The encapsulation method for a flow identifier comprises: in the case where flow table matching is successfully conducted on a packet, adding, by an openFlow switch, a flow identifier to the packet; and invoking, by the openFlow switch, a pre-saved function calculation function to assign the flow identifier, so as to complete the encapsulation of the flow identifier. The present invention achieves the effect of enabling an openFlow network node to take a Hash calculation result of some fields of an original packet before encapsulation as the assignment of a new encapsulated flow identifier, which is required by the encapsulation of the flow identifier. |