主权项 |
1. A method for forwarding data in a layer-2 network comprising a plurality of nodes in a management domain, the method comprising:
receiving, by a first node of the plurality of nodes, a first data packet comprising a customer destination media access control (MAC) address and customer data; generating, by the first node, a second data packet comprising a source virtual MAC address, a destination virtual MAC address and at least part of the first data packet, wherein the at least part of the first data packet comprises the customer destination MAC address and the customer data, wherein the source virtual MAC address is a virtual MAC address assigned to the first node, and the destination virtual MAC address corresponds to the customer destination MAC address; wherein the virtual MAC address assigned to the first node comprises a first virtual MAC address segment with a first mask, which indicates a virtual MAC address space comprising virtual MAC addresses of child nodes of the first node; and forwarding, by the first node, the second data packet via an egress port corresponding to the destination virtual MAC address. |