# US 2025/0168067 A1 · Method for upgrading virtual switch, apparatus, electronic device, and storage medium

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

- Number: US 2025/0168067 A1
- Document ID: US20250168067A1
- Status: Published application
- Kind: A1
- Application number: 18/712,571
- Filed: 2022-11-17
- Published: 2025-05-22
- Earliest claimed: 2021-12-07
- Assignees: Zte Corporation
- Applicants: Zte Corporation
- Inventors: Binbin XU
- Web page: https://patentgrep.com/patent/US20250168067A1

## CPC

- H04L 41/082: the condition being updates or upgrades of network functionality
- H04L 41/0895: Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
- H04L 41/0897: by horizontal or vertical scaling of resources, or by migrating entities, e.g. virtual resources or entities
- Y02D 30/50: in wire-line communication networks, e.g. low power modes or reduced link rate
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Disclosed are a method for upgrading a virtual switch, an apparatus, an electronic device and a storage medium. The method for upgrading the virtual switch includes: creating and initializing a new-version virtual switch in a process of a service forwarding work performed by an old-version virtual switch; freezing the service forwarding work of the old-version virtual switch, and migrating virtual machine information in the old-version virtual switch to the new-version virtual switch; the virtual machine information includes information configured for network communication by a virtual machine connected to the old-version virtual switch; and switching the service forwarding work to the new-version virtual switch for execution based on the virtual machine information migrated to the new-version virtual switch and network cards previously migrated from the old-version virtual switch to the new-version virtual switch.

## Claims

### Claim 1

A method for upgrading a virtual switch, comprising:
creating and initializing a new-version virtual switch in a process of a service forwarding work performed by an old-version virtual switch;
freezing the service forwarding work of the old-version virtual switch, and migrating virtual machine information in the old-version virtual switch to the new-version virtual switch; wherein, the virtual machine information comprises information configured for network communication by a virtual machine connected to the old-version virtual switch; and
switching the service forwarding work to the new-version virtual switch for execution based on the virtual machine information migrated to the new-version virtual switch and network cards previously migrated from the old-version virtual switch to the new-version virtual switch.

### Claim 2 (depends on 1)

The method for upgrading the virtual switch according to claim 1, wherein after the creating and initializing the new-version virtual switch and before the freezing the service forwarding work of the old-version virtual switch, the method further comprises:
migrating some member network cards of a network card aggregation group in the old-version virtual switch to the new-version virtual switch; wherein the network cards previously migrated from the old-version virtual switch to the new-version virtual switch refer to the some member network cards; and
the switching the service forwarding work to the new-version virtual switch for execution based on the virtual machine information migrated to the new-version virtual switch and network cards previously migrated from the old-version virtual switch to the new-version virtual switch further comprises:
migrating other member network cards in the network card aggregation group in the old-version virtual switch except for the some member network cards to the new-version virtual switch; wherein the other member network cards and the some member network cards belong to a same network card aggregation group in the new-version virtual switch.

### Claim 3 (depends on 2)

The method for upgrading the virtual switch according to claim 2, wherein the migrating the some member network cards of the network card aggregation group in the old-version virtual switch to the new-version virtual switch further comprises:
releasing some member network cards in the network card aggregation group in the old-version virtual switch, and adding the some member network cards released by the old-version virtual switch to the new-version virtual switch;
establishing a connection between the some member network cards added to the new-version virtual switch and a port of an uplink switch, and setting the some member network cards and the port of the uplink switch to a locked state; and
the switching the service forwarding work to the new-version virtual switch for execution based on the virtual machine information migrated to the new-version virtual switch and the network cards previously migrated from the old-version virtual switch to the new-version virtual switch further comprises:
releasing the locked state of the some member network cards and the port of the uplink switch.

### Claim 4 (depends on 3)

The method for upgrading the virtual switch according to claim 3, wherein the switching the service forwarding work to the new-version virtual switch for execution based on the virtual machine information migrated to the new-version virtual switch and the network cards previously migrated from the old-version virtual switch to the new-version virtual switch further comprises:
restoring a virtual machine communication according to the virtual machine information;
wherein the restoration of the virtual machine communication comprises rebuilding a message sending and receiving queue of the virtual machine and reconnecting a link between the new-version virtual switch and the virtual machine; and
wherein after the locked state of the some member network cards and the port of the uplink switch are released and the virtual machine communication is restored, the new-version virtual switch is configured to perform the service forwarding work.

### Claim 5 (depends on 3)

The method for upgrading a virtual switch according to claim 3, wherein the establishing the connection between the some member network cards added to the new-version virtual switch and the port of the uplink switch further comprises:
specifying identification marks of the some member network cards added to the new-version virtual switch to be: the same as identification marks of the some member network cards in the old-version virtual switch; and
establishing the connection between the some member network cards in the new-version virtual switch and the port of the uplink switch based on designated identification marks.

### Claim 6 (depends on 2)

The method for upgrading the virtual switch according to claim 2, wherein the migrating the some member network cards of the network card aggregation group in the old-version virtual switch to the new-version virtual switch further comprises:
migrating one member network card in the network card aggregation group in the old-version virtual switch to the new-version virtual switch.

### Claim 7 (depends on 1)

The method for upgrading the virtual switch according to claim 1, wherein after the freezing the service forwarding work of the old-version virtual switch, and before the switching the service forwarding work to the new-version virtual switch for execution based on the virtual machine information migrated to the new-version virtual switch and the network cards previously migrated from the old-version virtual switch to the new-version virtual switch, the method further comprises:
migrating the network card in the old-version virtual switch to the new-version virtual switch.

### Claim 8 (depends on 1)

The method for upgrading the virtual switch according to claim 1, wherein the freezing the service forwarding work of the old-version virtual switch, and migrating the virtual machine information in the old-version virtual switch to the new-version virtual switch further comprises:
writing the virtual machine information in the old-version virtual switch into a preset shared memory by the old-version virtual switch after freezing the service forwarding work of the old-version virtual switch; wherein the new-version virtual switch is configured to read the virtual machine information from the shared memory.

### Claim 9 (depends on 1)

The method for upgrading the virtual switch according to claim 1, wherein the creating and initializing the new-version virtual switch in the process of the service forwarding work performed by the old-version virtual switch is specifically as follows:
in response to a virtual switch upgrade instruction, creating and initializing the new-version virtual switch in the process of the service forwarding work performed by the old-version virtual switch.

### Claim 10

An apparatus for upgrading a virtual switch, wherein the apparatus for upgrading the virtual switch is deployed on a physical machine, and a virtual machine and an old-version virtual switch connected to the virtual machine are also deployed on the physical machine; the apparatus for upgrading the virtual switch comprises:
a deployment module configured to create and initialize a new-version virtual switch in a process of a service forwarding work performed by an old-version virtual switch;
a network card migration module configured to migrate network cards in the old-version virtual switch to the new-version virtual switch;
a virtual machine information migration module configured to freeze the service forwarding work of the old-version virtual switch, and migrate virtual machine information in the old-version virtual switch to the new-version virtual switch after an initialization of the new-version virtual switch is completed; and
a switching module configured to switch the service forwarding work to the new-version virtual switch for execution based on the virtual machine information migrated to the new-version virtual switch and network cards previously migrated from the old-version virtual switch to the new-version virtual switch.

### Claim 11 (depends on 1, 2, 3, 4, 5, 6, 7, 8, 9)

An electronic device, comprising:
at least one processor; and
a memory communicatively connected to the at least one processor;
wherein, the at least one processor is configured to run a virtual machine and an old-version virtual switch connected to the virtual machine; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor executes the method for upgrading the virtual switch according to any one of claims 1 to 9.

### Claim 12 (depends on 1, 2, 3, 4, 5, 6, 7, 8, 9)

A computer-readable storage medium, storing a computer program, wherein when the computer program is executed by a processor, the method for upgrading the virtual switch according to any one of claims 1 to 9 is realized.
