# US 2012/0254440 A1 · Method for allocating virtual local area network resources by mapping vsan ids to mac addresses and related fcoe device and fcoe system

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

- Number: US 2012/0254440 A1
- Document ID: US20120254440A1
- Status: Published application
- Kind: A1
- Application number: 13/387,313
- Filed: 2010-12-23
- Published: 2012-10-04
- Earliest claimed: 2009-12-23
- Assignees: Hangzhou H3C Technologies Co., Ltd.
- Inventors: Xiaodong Wang
- Web page: https://patentgrep.com/patent/US20120254440A1

## CPC

- H04L 12/4645: {Details on frame tagging (routing of packets H04L45/00; support for virtual LAN H04L49/354)}
- H04L 61/103: across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
- H04L 2101/622: Layer-2 addresses, e.g. medium access control [MAC] addresses
- H04L 2101/645: Fibre channel identifiers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method for allocating VLAN resources, an FCoE device and an FCoE system. A first device maps a virtual storage area network identity (VSAN ID) corresponding to a fibre channel (FC) message into a media access control (MAC) address according to a preset relation. The first device obtains a VLAN ID corresponding to the VSAN ID according to the preset relation and encapsulates the MAC address and the VLAN ID into an Ethernet message corresponding to the FC message. The preset relation is used for mapping multiple VSAN IDs, which correspond to the same VLAN ID, into different MAC addresses.

## Claims

### Claim 1

A method for allocating virtual local area network (VLAN) resources, comprising:
mapping, by a first device, a virtual storage area network identity (VSAN ID) corresponding to a fibre channel (FC) message into a media access control (MAC) address according to a preset relation;
obtaining, by the first device, a VLAN ID corresponding to the VSAN ID according to the preset relation; and
encapsulating, by the first device, the MAC address and the VLAN ID into an Ethernet message corresponding to the FC message;
wherein the preset relation is used for mapping multiple VSAN IDs, which correspond to the same VLAN ID, into different MAC addresses.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the preset relation is between VSAN IDs and corresponding VLAN IDs and MAC mapping addresses; and
mapping by a first device a virtual storage area network identity (VSAN ID) corresponding to a fibre channel (FC) message into a media access control (MAC) address according to a preset relation comprises:
determining the VSAN ID of the FC message;
obtaining from the preset relation a MAC mapping address corresponding to the VSAN ID; and
combining the MAC mapping address and an FC-ID of the FC message to form the MAC address.

### Claim 3 (depends on 2)

The method according to claim 2, wherein combining the MAC mapping address and an FC-ID of the FC message to form the MAC address comprises:
setting the FC-ID of the FC message as low bits of the MAC address, and setting the MAC mapping address as high bits of the MAC address.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising:
receiving, by the first device, a first fibre channel over Ethernet initialization protocol (FIP) discovery advertisement message, wherein the first FIP discovery advertisement message carries the preset relation.

### Claim 5 (depends on 4)

The method according to claim 4, further comprising:
before receiving the first FIP discovery advertisement message, transmitting, by the first device, a first FIP discovery solicitation message including the VSAN ID of the first device to a second device.

### Claim 6 (depends on 5)

The method according to claim 5, further comprising:
obtaining, by the first device, a VSAN ID of a third device from a second FIP discovery solicitation message transmitted by the third device, and transmitting to the third device the preset relation of the VSAN ID corresponding to the third device via a second FIP discovery advertisement message.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the preset relation of the VSAN ID corresponding to the third device is recorded in a predefined descriptor within the second FIP discovery advertisement message.

### Claim 8 (depends on 5)

The method according to claim 5, wherein the first device is an Ethernet node (ENode) or a fibre channel over Ethernet forwarder (FCF); and
the second device is an FCF.

### Claim 9

A fibre channel over Ethernet (FCoE) device, comprising:
a storage module, adapted for storing a preset relation, wherein the preset relation is used for mapping multiple VSAN IDs, which correspond to the same VLAN ID, into different MAC addresses; and
an encapsulating module, adapted for mapping a VSAN ID corresponding to a fibre channel (FC) message into a MAC address according to the preset relation, obtaining a VLAN ID corresponding to the VSAN ID according to the preset relation, and encapsulating the MAC address and the VLAN ID into an Ethernet message corresponding to the FC message.

### Claim 10 (depends on 9)

The FCoE device according to claim 9, wherein the FCoE device is an Ethernet node (ENode) or a fibre channel over Ethernet forwarder (FCF).

### Claim 11 (depends on 9)

The FCoE device according to claim 9, wherein the preset relation is between VSAN IDs and corresponding VLAN IDs and MAC mapping addresses; and
the encapsulating module is adapted for determining the VSAN ID of the FC message, obtaining from the preset relation a MAC mapping address corresponding to the VSAN ID, setting an FC-ID of the FC message as low bits of the MAC address, and setting the MAC mapping address as high bits of the MAC address.

### Claim 12 (depends on 9)

An FCoE system, comprising: an FCoE device as claimed in claim 9 and another device, wherein the another device comprises:
a relation generation module, adapted for generating a preset relation between VSAN IDs and corresponding VLAN IDs and MAC mapping addresses; and
an FTP message transmitting module, adapted for transmitting to the FCoE device the preset relation via an FIP discovery advertisement message.

### Claim 13 (depends on 12)

The system according to claim 12, wherein the FIP message transmitting module is adapted for transmitting said FIP discovery advertisement message carrying a predefined descriptor to the FCoE device, wherein the predefined descriptor includes said preset relation.
