A method of forwarding a packet, comprising: receiving (S101), by a previous-hop device of a destination device of a first tunnel, a first notification message carrying information relating the first tunnel from the destination device of a first tunnel, wherein the information relating the first tunnel comprises: an Internet Protocol, IP, address of the destination device of the first tunnel, an IP address of a source destination device of the first tunnel, and an Identifier, ID, of a protocol to which the first tunnel conforms; configuring (S102), by the previous-hop device of the destination device of the first tunnel, a forwarding entry having a match domain comprising the IP address of the destination device of the first tunnel, the IP address of the source destination device of the first tunnel, and the ID of the protocol to which the first tunnel conforms, which are received from the destination device of the first tunnel, and an action domain indicating decapsulating a packet and then forwarding the decapsulated packet to the destination device of the first tunnel; when the previous-hop device of the destination device of the first tunnel receives an encapsulated data packet containing information that matches the IP address of the destination device of the first tunnel, the IP address of the source destination device of the first tunnel, and the ID of the protocol to which the first tunnel conforms contained in the match domain of the forwarding entry, decapsulating (S103), by the previous-hop device of the destination device of the first tunnel, the encapsulated data packet to obtain a decapsulated data packet; and forwarding (S103), by the previous-hop device of the destination device of the first tunnel, the decapsulated data packet to the destination device of the first tunnel. receiving (S101), by a previous-hop device of a destination device of a first tunnel, a first notification message carrying information relating the first tunnel from the destination device of a first tunnel, wherein the information relating the first tunnel comprises: an Internet Protocol, IP, address of the destination device of the first tunnel, an IP address of a source destination device of the first tunnel, and an Identifier, ID, of a protocol to which the first tunnel conforms; configuring (S102), by the previous-hop device of the destination device of the first tunnel, a forwarding entry having a match domain comprising the IP address of the destination device of the first tunnel, the IP address of the source destination device of the first tunnel, and the ID of the protocol to which the first tunnel conforms, which are received from the destination device of the first tunnel, and an action domain indicating decapsulating a packet and then forwarding the decapsulated packet to the destination device of the first tunnel; when the previous-hop device of the destination device of the first tunnel receives an encapsulated data packet containing information that matches the IP address of the destination device of the first tunnel, the IP address of the source destination device of the first tunnel, and the ID of the protocol to which the first tunnel conforms contained in the match domain of the forwarding entry, decapsulating (S103), by the previous-hop device of the destination device of the first tunnel, the encapsulated data packet to obtain a decapsulated data packet; and forwarding (S103), by the previous-hop device of the destination device of the first tunnel, the decapsulated data packet to the destination device of the first tunnel. <EOS>