Virtual Computer MAC Address Management via Hypervisor Segmentation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In virtual computer systems using SR-IOV technology, the VF port MAC address changes when the physical network device is replaced or the virtual computer is migrated, leading to potential MAC address duplication and communication failures.
Innovation Solution
The hypervisor configures a reserved MAC address for each virtual computer during initialization using the PF driver, ensuring unique and non-duplicating MAC addresses for VF ports, which are managed to prevent changes caused by hardware vendors or migrations.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If SR-IOV technology is used to share physical network device, then CPU load is reduced and network device sharing efficiency is improved, but MAC address changes when physical device is replaced or virtual computer is migrated
Solution Approach 1:
The patent segments the MAC address management into two parts: the VF port MAC address (hardware level) and the virtual computer-side MAC address (software level). The hypervisor intercepts and manages the virtual computer-side MAC address, while the hardware VF port MAC address can change freely. This segmentation allows the system to maintain stable MAC addresses for virtual computers even when physical devices are replaced.
Solution Approach 2:
The hypervisor acts as an intermediary between the virtual computer and the physical network device. It intercepts MAC address-related operations (reading, writing, generation) and manages them centrally. When a VF port MAC address needs to be changed due to hardware replacement, the hypervisor handles the translation and ensures the virtual computer perceives no change in its MAC address.
2Adaptability or versatility
If VF port MAC address is used directly, then hardware vendor's unique identification is maintained, but MAC address duplication may occur during device replacement or migration
Solution Approach 1:
The hypervisor creates a virtual copy of the MAC address management function. Instead of directly using the hardware VF port MAC address, the system creates and manages a virtual computer-side MAC address that copies the essential identification function while being decoupled from the hardware. This virtual MAC address is what the guest OS sees and uses, ensuring uniqueness even when hardware changes.
3Adaptability or versatility
If virtual computer configuration is copied for migration, then virtual computer can be migrated to different physical computer, but network device MAC address changes causing communication failure
Solution Approach 1:
The hypervisor performs preliminary MAC address management before virtual computer migration. It pre-configures and reserves MAC addresses for virtual computers, and during migration, it ensures these reserved MAC addresses are maintained. This preliminary setup prevents MAC address changes during migration, ensuring network communication continuity.
Data Source
AI summary
The virtual computer system comprises a network device which is capable of being coupled via a network to an external network apparatus and is able to operate multiple virtual computers. The network device comprises multiple communication ports which can be provided to a virtual computer with respect to a single physical communication port. When a certain the above-mentioned virtual computer is booted up, the virtual computer system acquires a MAC address corresponding to the above-mentioned certain virtual computer from multiple MAC addresses, which correspond to each of multiple the above-mentioned virtual computers and are allocated to the virtual communication port provided in the virtual computer, and configures this MAC address as the MAC address of the virtual communication port allocated to the above-mentioned certain virtual computer.


