# US 10,956,194 B2 · Learning a MAC address in VXLAN

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

- Number: US 10,956,194 B2
- Document ID: US10956194B2
- Status: Granted
- Kind: B2
- Application number: 15/515,443
- Filed: 2015-09-23
- Published: 2017-08-10
- Granted: 2021-03-23
- Earliest claimed: 2014-09-29
- Assignees: Hewlett Packard Enterprise Development LP
- Applicants: Hangzhou H3C Technologies Co., Ltd.
- Inventors: Jun Yang; Hui Cao; Fengshan Du; Wei Guo
- Web page: https://patentgrep.com/patent/US10956194B2

## CPC

- H04L 12/4633: {Interconnection of networks using encapsulation techniques, e.g. tunneling}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- H04L 12/4675: {Dynamic sharing of VLAN information amongst network nodes (configuration of the network or of network elements H04L41/08)}
- H04L 12/4683: {characterized by the protocol used}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- H04L 2012/4629: {using multilayer switching, e.g. layer 3 switching}
- H04L 2101/622: Layer-2 addresses, e.g. medium access control [MAC] addresses
- H04L 2212/00: Encapsulation of packets
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A source Medium Access Control (MAC) address is learned upon receiving a data message from a local network, and a learned local MAC address entry is added to a MAC address forwarding table. A source MAC address is not learned upon receiving a data message from a tunnel. When a local MAC address entry in the MAC address forwarding table changes, a synchronization message is sent via each tunnel associated with a Virtual Extensible Local Area Network (VXLAN) in the changed local MAC address entry, and is saved into a database corresponding to the tunnel. Each tunnel corresponds to one database.

## Claims

### Claim 1

A method for learning a Medium Access Control (MAC) address in a Virtual Extensible Local Area Network (VXLAN), being applicable to a VXLAN Tunnel End Point (VTEP) and comprising:
in response to receiving, at the VTEP, a data message from a local network associated with the VTEP, turning on a MAC-address-learning function to learn a source MAC address of the data message and adding a learned local MAC address entry to a first MAC address forwarding table maintained by the VTEP, wherein the learned local MAC address entry comprises the learned source MAC address, a VXLAN corresponding to the learned source MAC address, and a physical port via which the VTEP is coupled to a terminal device sending the data message;
in response to receiving, at the VTEP, a data message from a tunnel associated with the VTEP, turning off the MAC-address-learning function such that a source MAC address of the data message received from the tunnel is not learnt;
in response to receiving, at the VTEP, a synchronization message from the tunnel, adding a remote MAC address entry in the first MAC address forwarding table, wherein the received synchronization message indicates that a MAC address entry local to a peer VTEP at another end of the tunnel has been added to a second address forwarding table maintained by the peer VTEP; and
when a local MAC address entry in the first MAC address forwarding table changes, sending a synchronization message via each tunnel associated with a VXLAN in the changed local MAC address entry and saving the sent synchronization message into a tunnel-specific database corresponding to each tunnel, wherein each tunnel-specific database is configured to store synchronization messages traversing a corresponding tunnel.

### Claim 2 (depends on 1)

The method of claim 1, wherein sending the synchronization message via each tunnel associated with the VXLAN in the changed local MAC address entry, and saving the sent synchronization message into the a tunnel-specific database corresponding to each tunnel comprises:
when a local MAC address entry is newly added to the first MAC address forwarding table, determining a tunnel associated with a VXLAN in the newly-added local MAC address entry;
adding a MAC address in the newly-added local MAC address entry and a VXLAN corresponding to the MAC address to an Intermediate System to Intermediate System (ISIS) Link State Protocol data unit (LSP) message, sending the ISIS LSP message to a peer VTEP via the determined tunnel, and saving the ISIS LSP message into a Link State DataBase (LSDB) corresponding to the determined tunnel.

### Claim 3 (depends on 2)

The method of claim 2, wherein adding the MAC address in the newly-added local MAC address entry and the VXLAN corresponding to the MAC address to the ISIS LSP message, sending the ISIS LSP message to the peer VTEP via the determined tunnel, and saving the ISIS LSP message into the LSDB corresponding to the determined tunnel comprises:
determining whether a specific sent ISIS LSP message exists in the LSDB corresponding to the determined tunnel, wherein the specific sent ISIS LSP message is a sent ISIS LSP message to which a MAC address in the newly-added local MAC address entry and a VXLAN corresponding to the MAC address can be added;
upon determining that the specific sent ISIS LSP message does not exist, generating the ISIS LSP message, adding the MAC address in the newly-added local MAC address entry and the VXLAN corresponding to the MAC address to the ISIS LSP message, and sending the ISIS LSP message to the peer VTEP via the determined tunnel, and saving the ISIS LSP message into the LSDB corresponding to the determined tunnel; and
upon determining that the specific sent ISIS LSP message exists, adding the MAC address in the newly-added local MAC address entry and the VXLAN corresponding to the MAC address to the specific sent ISIS LSP message, and sending to the peer VTEP via the determined tunnel the specific sent ISIS LSP message to which the MAC address in the newly-added local MAC address entry and the VXLAN corresponding to the MAC address have been added.

### Claim 4 (depends on 1)

The method of claim 1, wherein sending the synchronization message via each tunnel associated with the VXLAN in the changed local MAC address entry, and saving the sent synchronization message into the tunnel-specific database corresponding to the tunnel comprises:
when a local MAC address entry is removed from the first MAC address forwarding table, determining a tunnel associated with a VXLAN in the removed local MAC address entry;
searching out a sent ISIS LSP message containing a MAC address in the removed local MAC address entry and a VXLAN corresponding to the MAC address from a LSDB corresponding to the determined tunnel; and
deleting the MAC address in the removed local MAC address entry and the VXLAN corresponding to the MAC address from the searched-out sent ISIS LSP message, and sending to a peer VTEP via the determined tunnel the sent ISIS LSP message from which the MAC address in the removed local MAC address entry and the VXLAN corresponding to the MAC address have been deleted.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
upon receiving an ISIS LSP message from a peer VTEP across a tunnel, determining whether a specific received ISIS LSP message exists in a LSDB corresponding to the tunnel, wherein the specific received ISIS LSP message is a received ISIS LSP message having the same ID as that of the received ISIS LSP message;
upon determining that the specific received ISIS LSP message does not exist, searching for a remote MAC address entry from the first MAC address forwarding table according a VXLAN contained in the received ISIS LSP message and a MAC address corresponding to the VXLAN after determining that the VXLAN contained in the received ISIS LSP message is associated with the tunnel on the VTEP;
upon searching out the remote MAC address entry, updating an egress interface in the remote MAC address entry into the tunnel; and
upon not searching out the remote MAC address entry, adding the remote MAC address entry to the first MAC address forwarding table, wherein the added remote MAC address entry contains the VXLAN contained in the received ISIS LSP message and the MAC address corresponding to the VXLAN.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
upon determining that the specific received ISIS LSP message exists, comparing the received ISIS LSP message with the specific received ISIS LSP message;
upon determining that the received ISIS LSP message contains a MAC address corresponding to a VXLAN but the specific received ISIS LSP message does not contain the MAC address corresponding to the VXLAN, searching for a remote MAC address entry from the first MAC address forwarding table according to the VXLAN and the MAC address after determining that the VXLAN is associated with the tunnel on the VTEP;
upon searching out the remote MAC address entry, updating an egress interface in the remote MAC address entry into the tunnel;
upon not searching out the remote MAC address entry, adding the remote MAC address entry containing the VXLAN and the MAC address to the first MAC address forwarding table; and
replacing the specific received ISIS LSP message with the received ISIS LSP message.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
upon determining that the specific received ISIS LSP message contains a MAC address corresponding to a VXLAN but the received ISIS LSP message does not contain the MAC address corresponding to the VXLAN, searching for a remote MAC address entry from the first MAC address forwarding table according to the VXLAN, the MAC address and the tunnel after determining that the VXLAN is associated with the tunnel on the VTEP, and deleting the searched-out remote MAC address entry from the first MAC address forwarding table.

### Claim 8 (depends on 2)

The method of claim 2, wherein the ISIS LSP message comprises a Type Length Value (TLV) for containing a VXLAN and a MAC address corresponding to the VXLAN.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
updating, by a peer VTEP across a tunnel, a third MAC address forwarding table on the peer VTEP according to the sent synchronization message.

### Claim 10

An apparatus for learning a Medium Access Control (MAC) address in a Virtual Extensible Local Area Network (VXLAN), being applicable to a VXLAN Tunnel End Point (VTEP), the apparatus comprising:
a processor; and
a storage device storing instructions when executed by the processor cause the processor to perform a method, the method comprising:
receiving a data message from a local network or a tunnel associated with the VTEP;
turning on a MAC-address-learning function to learn a source MAC address of the data message, in response to receiving the data message from the local network;
adding a learned local MAC address entry to a first MAC address forwarding table maintained by the VTEP, wherein the learned local MAC address entry comprises the learned source MAC address, a VXLAN corresponding to the learned source MAC address, and a physical port via which the VTEP is coupled to a terminal device sending the data message;
turning off the MAC-address-learning function such that the source MAC address of the data message is not learnt, in response to receiving the data message, at the VTEP, from the tunnel associated with the VTEP;
in response to receiving, at the VTEP, a synchronization message from the tunnel, adding a remote MAC address entry in the first MAC address forwarding table, wherein the received synchronization message indicates that a MAC address entry local to a peer VTEP at another end of the tunnel has been added to a second address forwarding table maintained by the peer VTEP;
when a local MAC address entry in the first MAC address forwarding table changes, sending a synchronization message via each tunnel associated with a VXLAN in the changed local MAC address entry and saving the sent synchronization message into a tunnel-specific database corresponding to each tunnel; wherein each tunnel-specific database is configured to store synchronization messages traversing a corresponding tunnel.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein sending the synchronization message via each tunnel associated with the VXLAN in the changed local MAC address entry, and saving the sent synchronization message into the a tunnel-specific database corresponding to each tunnel comprises:
when a local MAC address entry is newly added to the first MAC address forwarding table, determining a tunnel associated with a VXLAN in the newly-added local MAC address entry;
determining whether a specific sent Intermediate System to Intermediate System (ISIS) Link State Protocol data unit (LSP) message exists in a LSDB corresponding to the determined tunnel associated with the VXLAN in the newly-added local MAC address entry, wherein the specific sent ISIS LSP message is a sent ISIS LSP message to which a MAC address in the newly-added local MAC address entry and a VXLAN corresponding to the MAC address can be added;
in response to determining that the specific sent ISIS LSP message does not exist, generating an ISIS LSP message containing the MAC address in the newly-added local MAC address entry and the VXLAN corresponding to the MAC address sending the generated ISIS LSP message to a peer VTEP via the determined tunnel, and saving the generated ISIS LSP message into the LSDB corresponding to the determined tunnel;
in response to determining that the specific sent ISIS LSP message exists, adding the MAC address in the newly-added local MAC address entry and the VXLAN corresponding to the MAC address to the specific sent ISIS LSP message, and sending to the peer VTEP via the determined tunnel the specific sent ISIS LSP message to which the MAC address in the newly-added local MAC address entry and the VXLAN corresponding to the MAC address have been added.

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein sending the synchronization message via each tunnel associated with the VXLAN in the changed local MAC address entry, and saving the sent synchronization message into the a tunnel-specific database corresponding to each tunnel comprises:
when a local MAC address entry is removed from the first MAC address forwarding table, determining a tunnel associated with a VXLAN in the removed local MAC address entry;
for each tunnel associated with the VXLAN in the removed local MAC address entry, searching out a sent ISIS LSP message containing a MAC address in the removed local MAC address entry and a VXLAN corresponding to the MAC address from a LSDB corresponding to the tunnel;
deleting the MAC address in the removed local MAC address entry and the VXLAN corresponding to the MAC address from the sent ISIS LSP message searched out by the message searching unit; and
for each tunnel associated with the VXLAN in the removed local MAC address entry, sending to a peer VTEP via the tunnel the sent ISIS LSP message from which the MAC address in the removed local MAC address entry and the VXLAN corresponding to the MAC address have been deleted.

### Claim 13 (depends on 10)

The apparatus of claim 10, wherein the method further comprises:
upon receiving the ISIS LSP message from the peer VTEP across the tunnel, determining whether a specific received ISIS LSP message exists in a LSDB corresponding to the tunnel, wherein the specific received ISIS LSP message is a received ISIS LSP message having the same ID as that of the received ISIS LSP message;
in response to determining that the specific received ISIS LSP message does not exist, searching for a remote MAC address entry from the first MAC address forwarding table according to a VXLAN contained in the received ISIS LSP message and a MAC address corresponding to the VXLAN after determining that the VXLAN contained in the received ISIS LSP is associated with the tunnel; and
upon searching out the remote MAC address entry, updating an egress interface in the remote MAC address entry into the tunnel;
upon not searching out the remote MAC address entry, adding the remote MAC address entry to the first MAC address forwarding table; the added remote MAC address entry comprises the VXLAN contained in the received ISIS LSP message and the MAC address corresponding to the VXLAN.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the method further comprises:
in response to determining that the specific received ISIS LSP message exists, comparing the received ISIS LSP message with the specific received ISIS LSP message;
upon determining that the received ISIS LSP message contains a MAC address corresponding to a VXLAN but the specific received ISIS LSP message does not contain the MAC address corresponding to the VXLAN, searching for a remote MAC address entry from the first MAC address forwarding table according to the VXLAN and the MAC address after determining that the VXLAN is associated with the tunnel on the VTEP;
upon searching out the remote MAC address entry, updating the egress interface in the remote MAC address entry into the tunnel;
upon not searching out the remote MAC address entry, adding the remote MAC address entry containing the VXLAN and the MAC address to the first MAC address forwarding table; and
replacing the specific received ISIS LSP message with the received ISIS LSP message.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the method further comprises:
upon determining that the specific received ISIS LSP message contains a MAC address corresponding to a VXLAN but the received ISIS LSP message does not contain the MAC address corresponding to the VXLAN, searching out the remote MAC address entry from the first MAC address forwarding table according to the VXLAN, the MAC address and the tunnel after determining that the VXLAN is associated with the tunnel on the VTEP; and
deleting the searched out remote MAC address entry from the first MAC address forwarding table.
