摘要 |
The present invention is applied to the field of cloud computing, and provided are a packet forwarding method and system. The method comprises: receiving, by a layer 2 tunneling protocol device, a user-side packet sent by a client; according to a destination address contained in the user-side packet, judging, by the layer 2 tunneling protocol device, whether the user-side packet is required to be forwarded to an enterprise tenant, and if so, setting a session header of a layer 2 tunneling protocol (L2TP) according to the user-side packet, the session header comprising a special escaped identifier field and an enterprise tenant network identifier field; inserting, by the layer 2 tunneling protocol device, the session header in the front of the user-side packet so as to generate an L2TP packet; and sending, by the layer 2 tunneling protocol device, the L2TP packet to a layer 2 tunneling protocol network server of an operator data centre. The present invention will not bring an additional data header, and will not cause an MTU problem of a network device, so that the advantage caused by an escape action is obvious. |