# US 2021/0243108 A1 · Method for implementing network virtualization and related apparatus and communications system

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

- Number: US 2021/0243108 A1
- Document ID: US20210243108A1
- Status: Published application
- Kind: A1
- Application number: 17/236,363
- Filed: 2021-04-21
- Published: 2021-08-05
- Earliest claimed: 2014-02-23
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Shihui HU; Mingming ZHU; Guangpeng LI; Enhui LIU
- Web page: https://patentgrep.com/patent/US20210243108A1

## CPC

- H04L 41/12: Discovery or management of network topologies
- 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 41/40: using virtualisation of network functions or resources, e.g. SDN or NFV entities
- H04L 45/02: Topology update or discovery
- H04L 45/745: Address table lookup; Address filtering
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method for implementing network virtualization, and a related apparatus and a communications system are provided. The method for implementing network virtualization may include: receiving, by an SDN controller, a virtual network creation request that carries virtual network topology information; creating a virtual network in response to the virtual network creation request; establishing, by the SDN controller, a device mapping relationship; establishing, by the SDN controller, a port mapping relationship; allocating, by the SDN controller, a virtual SDN controller to the virtual network; and registering, by the SDN controller, a first virtual forwarding device and a second virtual forwarding device with the virtual SDN controller. Technical solutions of embodiments of the present invention help to improve networking flexibility, reduce service costs, and shorten a service deployment period.

## Claims

### Claim 1

A method for implementing network virtualization, the method comprising:
creating a virtual network comprising a virtual forwarding device;
establishing a device mapping relationship between the virtual forwarding device and a physical forwarding device in a physical network;
establishing a port mapping relationship between a port of the virtual forwarding device and a port of the physical forwarding device; and
registering the virtual forwarding device with a virtual controller, wherein the virtual controller is usable to control the virtual network.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
allocating a virtual network identifier to the virtual network; and
establishing a mapping relationship between the virtual network identifier and an identifier of the virtual controller.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the port mapping relationship comprises at least one of the following mapping relationships: a mapping relationship between inbound port information of the virtual forwarding device and inbound port information of the physical forwarding device; or a mapping relationship between outbound port information of the virtual forwarding device and outbound port information of the physical forwarding device.

### Claim 4 (depends on 3)

The method according to claim 3, wherein:
the inbound port information of the virtual forwarding device comprises a port identifier of an inbound port of the virtual forwarding device;
the outbound port information of the virtual forwarding device comprises a port identifier of an outbound port of the virtual forwarding device;
the inbound port information of the physical forwarding device comprises a port identifier of an inbound port of the physical forwarding device; and
the outbound port information of the physical forwarding device comprises a port identifier of an outbound port of the physical forwarding device.

### Claim 5 (depends on 3)

The method according to claim 3, further comprising:
obtaining a first routing entry delivered by the virtual controller, wherein the first routing entry carries a network address representing a destination address or a source address and the outbound port information of the virtual forwarding device;
determining the physical forwarding device and the outbound port information of the physical forwarding device; and
sending a second routing entry to the physical forwarding device, wherein the second routing entry carries the network address and the outbound port information of the physical forwarding device.

### Claim 6 (depends on 3)

The method according to claim 3, further comprising:
obtaining a third routing entry delivered by the virtual controller, wherein the third routing entry carries the inbound port information of the virtual forwarding device and the outbound port information of the virtual forwarding device;
determining the physical forwarding device, the outbound port information of the physical forwarding device, and the inbound port information of the physical forwarding device; and
sending a fourth routing entry to the physical forwarding device, wherein the fourth routing entry carries the inbound port information of the physical forwarding device and the outbound port information of the physical forwarding device.

### Claim 7 (depends on 3)

The method according to claim 3, further comprising:
receiving a first control message reported by the physical forwarding device, wherein the first control message carries the inbound port information of the physical forwarding device;
determining the inbound port information of the virtual forwarding device; and
sending a second control message to the virtual controller, wherein the second control message carries the inbound port information of the virtual forwarding device.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising:
allocating a device identifier to the virtual forwarding device;
wherein the device mapping relationship comprises a mapping relationship between the device identifier of the virtual forwarding device and a device identifier of the physical forwarding device.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the virtual forwarding device is a first virtual forwarding device and the physical forwarding device is a first physical forwarding device, the method further comprises:
establishing a mapping relationship between a virtual link and a link tunnel, wherein the virtual link is a virtual link between the first virtual forwarding device and a second virtual forwarding device in the virtual network, and the link tunnel is a link tunnel between the first physical forwarding device and a second physical forwarding device in the physical network.

### Claim 10

A method for implementing network virtualization, the method comprising:
obtaining a first routing entry delivered by a virtual controller, wherein the first routing entry carries outbound port information of a virtual forwarding device controlled by the virtual controller;
determining a physical forwarding device based on a device mapping relationship between the virtual forwarding device and the physical forwarding device;
determining outbound port information of the physical forwarding device, based on a port mapping relationship and the outbound port information of the virtual forwarding device; and
sending a second routing entry to the physical forwarding device, wherein an action field of the second routing entry carries the outbound port information of the physical forwarding device.

### Claim 11 (depends on 10)

The method according to claim 10, wherein:
the outbound port information of the virtual forwarding device comprises a port identifier of an outbound port of the virtual forwarding device; and
the outbound port information of the physical forwarding device comprises a port identifier of an outbound port of the physical forwarding device.

### Claim 12 (depends on 10)

The method according to claim 10, wherein a match field of the first routing entry carries inbound port information of the virtual forwarding device, and the method further comprises:
determining, based on the port mapping relationship and the inbound port information of the virtual forwarding device, inbound port information of the physical forwarding device;
wherein the second routing entry carries the inbound port information of the physical forwarding device.

### Claim 13

A controller, comprising:
a processor; and
a non-transitory memory coupled to the processor and comprising instructions, which when executed by the processor, cause the controller to:
create a virtual network comprising a virtual forwarding device;
establish a device mapping relationship between the virtual forwarding device and a physical forwarding device in a physical network;
establish a port mapping relationship between a port of the virtual forwarding device and a port of the physical forwarding device; and
register the virtual forwarding device with a virtual controller, wherein the virtual controller is usable to control the virtual network.

### Claim 14 (depends on 13)

The controller according to claim 13, wherein the instructions further cause the controller to:
allocate a virtual network identifier to the virtual network; and
establish a mapping relationship between the virtual network identifier and an identifier of the virtual controller.

### Claim 15 (depends on 13)

The controller according to claim 13, wherein the port mapping relationship comprises at least one of the following mapping relationships: a mapping relationship between inbound port information of the virtual forwarding device and inbound port information of the physical forwarding device; or a mapping relationship between outbound port information of the virtual forwarding device and outbound port information of the physical forwarding device.

### Claim 16 (depends on 13)

The controller according to claim 13, wherein the instructions further cause the controller to:
obtain a first routing entry delivered by the SDN controller, wherein the first routing entry carries a network address representing a destination address or a source address and the outbound port information of the virtual forwarding device;
determine, based on the virtual forwarding device and the device mapping relationship, the physical forwarding device;
determine, based on the port mapping relationship and the outbound port information of the virtual forwarding device, the outbound port information of the physical forwarding device; and
send a second routing entry to the physical forwarding device, wherein the second routing entry carries the network address and the outbound port information of the physical forwarding device.

### Claim 17 (depends on 13)

The controller according to claim 13, wherein the instructions further cause the controller to:
obtain a third routing entry delivered by the virtual controller, wherein the third routing entry carries the inbound port information of the virtual forwarding device and the outbound port information of the virtual forwarding device;
determine, based on the first virtual forwarding device and the device mapping relationship, the physical forwarding device;
determine, based on the port mapping relationship and the outbound port information of the virtual forwarding device, the outbound port information of the physical forwarding device;
determine, based on the port mapping relationship and the inbound port information of the virtual forwarding device, the inbound port information of the physical forwarding device; and
send a fourth routing entry to the physical forwarding device, wherein the fourth routing entry carries the inbound port information of the physical forwarding device and the outbound port information of the physical forwarding device.

### Claim 18 (depends on 13)

The controller according to claim 13, wherein the instructions further cause the controller to:
receive a first control message reported by the physical forwarding device, wherein the first control message carries the inbound port information of the physical forwarding device;
determine the inbound port information of the virtual forwarding device; and
send a second control message to the virtual controller, wherein the second control message carries the inbound port information of the virtual forwarding device.

### Claim 19 (depends on 13)

The controller according to claim 13, wherein the instructions further cause the controller to:
allocate a device identifier to the virtual forwarding device;
wherein the device mapping relationship between the virtual forwarding device and the physical forwarding device comprises a mapping relationship between the device identifier of the virtual forwarding device and a device identifier of the physical forwarding device.

### Claim 20

A controller, comprising:
a processor; and
a non-transitory memory coupled to the processor and comprising instructions, which when executed by the processor, cause the controller to:
obtain a first routing entry delivered by a virtual controller, wherein the first routing entry carries outbound port information of a virtual forwarding device controlled by the virtual controller;
determine, based on the virtual forwarding device and a device mapping relationship, a physical forwarding device, wherein the device mapping relationship comprises a mapping relationship between the virtual forwarding device and the physical forwarding device in a physical network;
determine, based on a port mapping relationship and the outbound port information of the virtual forwarding device, outbound port information of the physical forwarding device, wherein the port mapping relationship comprises a mapping relationship between the outbound port information of the virtual forwarding device and the outbound port information of the physical forwarding device; and
send a second routing entry to the physical forwarding device, wherein the second routing entry carries the outbound port information of the physical forwarding device.

### Claim 21 (depends on 20)

The controller according to claim 20, wherein:
the outbound port information of the virtual forwarding device comprises a port identifier of an outbound port of the virtual forwarding device; and
the outbound port information of the physical forwarding device comprises a port identifier of an outbound port of the physical forwarding device.

### Claim 22 (depends on 20)

The controller according to claim 20, wherein the first routing entry carries inbound port information of the virtual forwarding device; and
the instructions further cause the controller to:
determine inbound port information of the physical forwarding device,
wherein the second routing entry carries the inbound port information of the physical forwarding device.
