# US 2008/0186965 A1 · Method and system for forwarding data in layer-2 network

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2008/0186965 A1
- Document ID: US20080186965A1
- Status: Published application
- Kind: A1
- Application number: 12/098,837
- Filed: 2008-04-07
- Published: 2008-08-07
- Earliest claimed: 2006-08-15
- Assignees: Huawei Technologies Co., Ltd.
- Inventors: Ruobin Zheng; Hongyu Li
- Web page: https://patentgrep.com/patent/US20080186965A1

## CPC

- H04L 45/74: Address processing for routing
- H04L 12/4633: {Interconnection of networks using encapsulation techniques, e.g. tunneling}
- H04L 12/4641: {Virtual LANs, VLANs, e.g. virtual private networks [VPN] (LAN interconnection over a bridge based backbone H04L12/462; encapsulation techniques H04L12/4633; routing of packets H04L45/00; packet switches H04L49/00; virtual private networks for security H04L63/0272)}
- H04L 2101/622: Layer-2 addresses, e.g. medium access control [MAC] addresses
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method and a system for forwarding data in layer-2 network are disclosed. The method includes: configuring a virtual MAC address and a virtual MAC forwarding table for each node in a management domain in a layer-2 network; encapsulating a data packet with a source virtual MAC address and a destination virtual MAC address; and forwarding the data packet by each node on the data forwarding path according to the virtual MAC forwarding table configured for each node. A node and a system for forwarding data in layer-2 network are disclosed as well. The present disclosure frees the number of ESPs reaching a destination device from being limited by the number of designated PBT VIDs. Therefore the number of ESPs arriving at the destination device is expanded actually to 260 tag possibilities in limited network space; furthermore, P2MP and MP2MP connections is achieved, multicast and broadcast connections are supported.

## Claims

### Claim 1

A method for forwarding data in a layer-2 network, comprising:
configuring a virtual MAC address and a virtual MAC forwarding table for each node in a management domain in a layer-2 network;
encapsulating a data packet with a source virtual MAC address and a destination virtual MAC address; and
forwarding the data packet by each node on a data forwarding path according to the virtual MAC forwarding table configured for each node.

### Claim 2 (depends on 1)

The method of claim 1, wherein the forwarding the data packet by each node on a data forwarding path according, to the virtual MAC forwarding table configured for each node comprises:
if a node on the data forwarding path determines that the data packet is from outside of the management domain, taking a virtual MAC address configured for the node as the source virtual MAC address, and encapsulating the data packet with the source virtual MAC address and the destination virtual MAC address, and forwarding the data packet to a next-hop node according to the virtual MAC forwarding table configured for the node;
if the node on the data forwarding path determines that the data packet is from another node in the management domain, and the node is a destination node of the data packet, decapsulating the data packet.

### Claim 3 (depends on 2)

The method of claim 2, wherein the node is the destination node if the virtual MAC address configured for the node is the same to the destination virtual MAC address of the data packet.

### Claim 4 (depends on 2)

The method of claim 2, wherein the data packet is encapsulated by an encapsulating method comprising:
encapsulating the data packet in the encapsulation format specified by 802.1ah; inserting the source virtual MAC address, the destination virtual MAC address of the data and an identifier of a virtual local area network into the received data; replacing a customer source MAC address and a customer destination MAC address with the source virtual MAC address and the destination virtual MAC address of the data respectively, and
the data packet is decapsulated by a decapsulating method corresponding to the encapsulating method comprising:
decapsulating the data packet according to the encapsulation format specified by 802.1ah; deleting the source virtual MAC address, the destination virtual MAC address of the data and the identifier of the virtual local area network from the received data packet; replacing the source virtual MAC address the destination virtual MAC address of the data with the customer source MAC address and customer destination MAC address respectively.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
configuring identifier information for each node in the management domain; wherein the identifier information indicates a virtual MAC address domain of each node.

### Claim 6 (depends on 5)

The method of claim 5, wherein the forwarding the data packet by each node on a data forwarding path according to the virtual MAC forwarding table configured for each node comprises:
forwarding the data packet to a next-hop node according to the virtual MAC forwarding table under a condition selected from the group consisting of:
the data packet being from a first node and a virtual MAC address domain of the first node being a subset of the virtual MAC address domain of the node and the source virtual MAC address belonging to the virtual MAC address of the node;
the data packet being from a second node and the virtual MAC address domain of the node being a subset of the virtual MAC address domain of the second node; and
the data packet being from a third node and the virtual MAC address domain of the third node and the virtual MAC address domain of the node including same number of virtual MAC addresses.

### Claim 7 (depends on 6)

The method of claim 6, wherein the identifier information is a virtual MAC address segment with a mask.

### Claim 8 (depends on 7)

The method of claim 7, wherein the virtual MAC forwarding table includes a corresponding relationship between the virtual MAC address segment and an egress port.

### Claim 9 (depends on 7)

The method of claim 7, wherein the virtual MAC forwarding table includes a corresponding relationship of an egress port to the virtual MAC address segment and a virtual local area network.

### Claim 10

A node for forwarding data in a management domain of a layer-2 network, comprising:
a first module, configured for receiving and sending a data packet; and
a second module, configured for storing a virtual MAC address and a virtual MAC forwarding table; receiving the data packet from the first module; and sending the data packet to a next-hop node according to the virtual MAC forwarding table via the first module.

### Claim 11 (depends on 10)

The node of claim 10, wherein the second module is further configured for encapsulating the data packet with a source virtual MAC address and a destination virtual MAC address before sending the data packet to the next-hop node if the second module determines that the data packet is from outside of the management domain; wherein the source virtual MAC address is the virtual MAC address of the node; and the second module is further configured for decapsulating the data packet if the second module determines that the node is a destination node.

### Claim 12 (depends on 10)

The node of claim 10, wherein the virtual MAC address includes a corresponding relationship between a virtual MAC address segment and an egress port.

### Claim 13 (depends on 10)

The node of claim 10, wherein the node is connected with one of a customer equipment and a network equipment outside the management domain.

### Claim 14 (depends on 10)

The node of claim 10, wherein identifier information is stored in the second module, wherein the identifier information indicates a virtual MAC address domain of the node; and
the second module sends a data packet to a next-hop node according to the virtual MAC forwarding table via the first module under a condition selected from the group consisting of:
the data packet being from a first node and a virtual MAC address domain of the first node being a subset of the virtual MAC address domain of the node and a source virtual MAC address belonging to the virtual MAC address of the node;
the data packet being from a second node and the virtual MAC address domain of the node being a subset of the virtual MAC address domain of the second node; and
the data packet being from a third node and the virtual MAC address domain of the third node and the virtual MAC address domain of the node including same number of virtual MAC addresses.

### Claim 15 (depends on 14)

The node of claim 14, wherein the identifier information is a virtual MAC address segment with a mask, and the length of the mask is associated with the number of virtual MAC addresses included in the virtual MAC address segment.

### Claim 16

A system for forwarding data in a layer-2 network, comprising: a plurality of nodes; wherein a virtual MAC address, a virtual MAC forwarding table, and identifier information for indicating a virtual MAC address domain are configured for each of the plurality of nodes, the plurality of nodes comprising:
a source node, configured for encapsulating a data packet with a source virtual MAC address and a destination virtual MAC address, and sending the data packet according to the virtual MAC forwarding table;
a destination node, configured for decapsulating the data packet; and
an intermediate node, configured for receiving the data packet from one of the source node and a previous-hop intermediate node, and sending the data packet to one of the destination node and a next-hop intermediate node according to the identifier information and the virtual MAC forwarding table.

### Claim 17 (depends on 16)

The system of claim 16, wherein the identifier information is a virtual MAC address segment with a mask.

### Claim 18 (depends on 17)

The system of claim 17, wherein the virtual MAC forwarding table includes a corresponding relationship between the virtual MAC address segment and an egress port.

### Claim 19 (depends on 17)

The system of claim 17, wherein the virtual MAC forwarding table includes a corresponding relationship of an egress port to the virtual MAC address segment and a virtual local area network.

### Claim 20 (depends on 16)

The system of claim 16, wherein physical structure of the system corresponds to one or more virtual MAC address domains.
