CPC H04L 12/18 (2013.01) [H04L 12/4633 (2013.01); H04L 12/4641 (2013.01); H04L 45/74 (2013.01); H04L 67/56 (2022.05)] | 12 Claims |
1. A packet forwarding method, applied to a multicast virtual private network (VPN) over bit index explicit replication (BIER), the method comprising:
configuring, by a first node, a first identifier of a first VPN and a first internet protocol version 6 (IPv6) address, wherein the first IPv6 address corresponds to the first identifier;
sending, by the first node, a first indication message to a second node, wherein the first indication message is used to indicate the second node to establish a correspondence between the first IPv6 address and a second identifier, the first indication message comprises the first identifier and the first IPv6 address, and the second identifier is an identifier that is of the second node and that satisfies a preset correspondence with the first identifier;
receiving, by the first node, a multicast data packet that belongs to the first VPN;
obtaining, by the first node, the first IPv6 address based on the first VPN to which the multicast data packet belongs and the first IPv6 address corresponding to the first identifier; and
encapsulating, by the first node, the multicast data packet based on the first IPv6 address to obtain a to-be-forwarded BIER packet, and sending the to-be-forwarded BIER packet to the second node for decapsulation, wherein the to-be-forwarded BIER packet comprises the first IPv6 address used to determine an interface corresponding to the second identifier to send the multicast data packet,
wherein the first IPv6 address is used to determine an interface corresponding to another identifier of a far-end node, and the other identifier of the far-end node satisfies a preset correspondence with the first identifier.
|