# US 2016/0261496 A1 · Packet forwarding in data center network

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

- Number: US 2016/0261496 A1
- Document ID: US20160261496A1
- Status: Published application
- Kind: A1
- Application number: 15/031,522
- Filed: 2014-10-31
- Published: 2016-09-08
- Earliest claimed: 2013-10-31
- Assignees: Hangzhou H3C Technologies Co., Ltd.
- Applicants: Hangzhou H3C Technologies Co., Ltd.
- Inventors: Huifeng CHANG
- Web page: https://patentgrep.com/patent/US20160261496A1

## CPC

- H04L 45/66: {Layer 2 routing, e.g. in Ethernet based MAN's}
- 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 12/4675: {Dynamic sharing of VLAN information amongst network nodes (configuration of the network or of network elements H04L41/08)}
- H04L 49/70: {Virtual switches}
- H04L 69/22: Parsing or analysis of headers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present disclosure provides a method and apparatus for forwarding a packet, wherein the method comprising: for each Virtual Machine (VM) in the server, obtaining relevant information of a virtual Network Interface Controller (vNIC) of the VM, and associating the obtained relevant information with a local virtual port, wherein the relevant information includes a Media Access Control (MAC) address of the vNIC, a Virtual eXtensible Local Area Network (VXLAN) Network Identifier (VNI) of the VXLAN where the vNIC is located, and a Virtual Local Area Network (VLAN) Identifier (ID) of a VLAN associated with the VXLAN where the vNIC is located; after receiving an Ethernet packet sent by the server, searching a VNI according to a source MAC address of the Ethernet packet and a VLAN ID; and according to the searched VNI, encapsulating the Ethernet packet, obtaining a VXLAN packet, and forwarding the VXLAN packet.

## Claims

### Claim 1

A method for forwarding a packet in a data center network, the data center network comprises: at least one server, a virtual Switch (vSwitch) and a Virtual Machine (VM) configured in the server, a physical switch outside of the server and connected with the VM via the vSwitch, the method applied in the physical switch, comprising:
for each VM in the server, obtaining relevant information of a virtual Network Interface Controller (vNIC) of the VM, and associating the obtained relevant information with a local virtual port;
after receiving an Ethernet packet sent by the server, searching a Virtual eXtensible Local Area Network (VXLAN) Network Identifier (VNI) according to a source Media Access Control (MAC) address of the Ethernet packet and a Virtual Local Area Network (VLAN) Identifier (ID); and
according to the searched VNI, encapsulating the Ethernet packet, obtaining a VXLAN packet, and forwarding the VXLAN packet.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
After receiving an VXLAN packet, de-encapsulating the VXLAN packet, obtaining a VXLAN header and an Ethernet packet, and searching a local virtual port according to a destination MAC address in the Ethernet packet and a VNI in the VXLAN header obtained by de-encapsulation; and
forwarding the Ethernet packet obtained by de-encapsulation to the server through a local physical port binded with the searched local virtual port.

### Claim 3 (depends on 1)

The method according to claim 1, wherein obtaining relevant information of the vNIC of the VM comprising:
receiving a MAC address of the vNIC sent by the server; and
obtaining a VNI of a VXLAN where the vNIC is located, and a VLAN ID of a VLAN associated with a VXLAN where the vNIC is located.

### Claim 4 (depends on 3)

The method according to claim 3, wherein obtaining a VNI of a VXLAN where the vNIC is located comprising:
receiving a VNI of a VXLAN where the vNIC is located sent by the server, wherein the VNI is sent to the server after a VM manager specifies the VXLAN where the vNIC is located for the vNIC;
or, after receiving a vNIC type associated with the vNIC sent by the server, obtaining a port strategy from a network management server according to the vNIC type, and obtaining a VNI from the port strategy as the VNI of the VXLAN where the vNIC is located, wherein the VNIC type associated with the vNIC is sent to the server after the VM manager specifies the associated VNIC type for the vNIC.

### Claim 5 (depends on 4)

The method according to claim 4, wherein obtaining a VLAN ID of a VLAN associated with a VXLAN where the vNIC is located comprising:
after a VNI of a VXLAN where the vNIC is located is obtained, searching whether there is a VXLAN available in the physical switch according to the obtained VNI; if yes, when the searched VXLAN is not associated with a VLAN, allocating a VLAN which is not associated with any other VXLANs for the searched VXLAN, and associating the searched VXLAN with the allocated VLAN; when the searched VXLAN is already associated with a VLAN, searching the VLAN associated with the searched VXLAN;
or, after receiving a vNIC type associated with the vNIC sent by the server, obtaining a port strategy from the network management server according to the vNIC type, and obtaining a VLAN ID from the port strategy as a VLAN ID of a VLAN associated with a VXLAN where the vNIC is located.

### Claim 6 (depends on 5)

The method according to claim 5, further comprising:
establishing a VXLAN in advance, and allocating a VNI for the VXLAN;
after searching whether there is a VXLAN available according to the obtained VNI, if it is no, ending the procedure.

### Claim 7 (depends on 5)

The method according to claim 5, further comprising:
after searching whether there is a VXLAN available according to the obtained VNI, if it is no, establishing a VXLAN identified by the obtained VNI, allocating a VLAN which is not associated with any other VXLANs for the VXLAN, and associating the VXLAN and the VLAN.

### Claim 8 (depends on 4)

The method according to claim 4, wherein a VNI of a VXLAN where the vNIC is located sent by the server is carried in a Group ID field of a Filter Info domain in a Virtual Station Interface (VSI) Discovery and configuration Protocol (VDP) packet.

### Claim 9

An apparatus for forwarding a packet in a data center network, the data center network comprises: at least one server, a virtual Switch (vSwitch) and a Virtual Machine (VM) configured in the server, a physical switch outside of the server and connected with the VM via the vSwitch, the apparatus applied in the physical switch, comprising:
a processing module, to, for each VM in the server of the physical switch, obtain relevant information of a virtual Network Interface Controller (vNIC) of the VM, and associate the obtained relevant information with a local virtual port;
a receiving module, to receive an Ethernet packet sent by the server;
a searching module, to, after receiving an Ethernet packet from the server in the receiving module, search a Virtual eXtensible Local Area Network (VXLAN) Network Identifier (VNI) according to a source Media Access Control (MAC) address in the Ethernet packet and a Virtual Local Area Network (VLAN) Identifier (ID);
an encapsulation and de-encapsulation module, to, according to the VNI searched in the searching module, encapsulate the Ethernet packet received in the receiving module and obtain a VXLAN packet; and
a forwarding module, to forward the VXLAN packet encapsulated in the encapsulation and de-encapsulation module.

### Claim 10 (depends on 9)

The apparatus according to claim 9, wherein
the receiving module, is further to receive a VXLAN packet;
the encapsulation and de-encapsulation module, is further to, after receiving a VXLAN packet in the receiving module, de-encapsulate the VXLAN packet, and obtain a VXLAN header and an Ethernet packet;
the searching module, is further to search a local virtual port according to a destination MAC address in the Ethernet packet and a VNI in the VXLAN header de-encapsulated in the encapsulation and de-encapsulation module; and
the forwarding module, is further to forward the Ethernet packet de-encapsulated in the encapsulation and de-encapsulation module to the server through a local physical port binded with the local virtual port searched in the searching module.

### Claim 11 (depends on 9)

The apparatus according to claim 9, wherein the processing module comprises:
a MAC receiving unit, to receive a MAC address of the vNIC sent by the server;
a first obtaining unit, to obtain a VNI of the VXLAN where the vNIC is located; and
a second obtaining unit, to obtain a VLAN ID of a VLAN associated with the VXLAN where the vNIC is located.

### Claim 12 (depends on 11)

The method according to claim 11, wherein the first obtaining unit is further to:
receive a VNI of a VXLAN where the vNIC is located sent by the server, wherein the VNI is sent to the server after a VM manager specifies the VXLAN where the vNIC is located for the vNIC;
or, after receiving a vNIC type associated with the vNIC sent by the server, obtain a port strategy from a network management server according to the vNIC type, and obtain a VNI from the port strategy as the VNI of the VXLAN where the vNIC is located, wherein the VNIC type associated with the vNIC is sent to the server after the VM manager specifies the associated VNIC type for the vNIC.

### Claim 13 (depends on 12)

The apparatus according to claim 12, wherein the second obtaining unit is further to:
after a VNI of a VXLAN where the vNIC is located is obtained in the first obtaining unit, search whether there is a VXLAN available in the physical switch according to the obtained VNI; if yes, when the searched VXLAN is not associated with a VLAN, allocate a VLAN which is not associated with any other VXLANs for the searched VXLAN, and associate the searched VXLAN with the allocated VLAN; when the searched VXLAN is already associated with a VLAN, search the VLAN associated with the searched VXLAN;
or, after receiving a vNIC type associated with the vNIC sent by the server, obtain a port strategy from the network management server according to the vNIC type, and obtain a VLAN ID from the port strategy as a VLAN ID of a VLAN associated with a VXLAN where the vNIC is located.

### Claim 14 (depends on 13)

The apparatus according to claim 13, the apparatus further comprises:
an establishing module, to establish a VXLAN in advance, and allocate a VNI for the VXLAN;
wherein the second obtaining unit is further to, after searching whether there is a VXLAN available according to the obtained VNI, if it is no, end the procedure.

### Claim 15 (depends on 13)

The apparatus according to claim 13, wherein the second obtaining unit is further to:
after searching whether there is a VXLAN available according to the obtained VNI, if it is no, establish a VXLAN identified by the obtained VNI, allocate a VLAN which is not associated with any other VXLANs for the VXLAN, and associate the VXLAN and the VLAN.
