VM Link Management via Heartbeat Handshake and LACP State Acquisition
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In a virtual machine (VM) environment, existing methods fail to implement full-path detection of network links, leading to packet loss and difficulties in failure processing due to the absence of a mechanism to distinguish between internal VF issues and external link problems.
Innovation Solution
Establishing a heartbeat handshake link between Physical Functions (PFs) and Virtual Functions (VFs) using a shared communication queue mechanism, allowing the acquisition and transmission of LACP state information from PFs to VFs, enabling detection of link failures and dynamic control of VF links.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If LACP runs simultaneously in multiple VMs to negotiate with switch, then link aggregation negotiation can be performed, but negotiation fails due to LACP state machine chaos on switch side
Solution Approach 1:
The patent introduces a heartbeat detection mechanism as an intermediary between VFs and the external switch. The host sends heartbeat packets through VFs to detect link status, and this detection information mediates the LACP negotiation process, preventing state machine chaos while maintaining negotiation capability
Solution Approach 2:
The patent performs preliminary link detection through heartbeat packets before LACP negotiation begins. By pre-detecting link status and validity through the heartbeat mechanism, the system prepares the negotiation state in advance, preventing conflicts during actual LACP negotiation
2Reliability
If static switch configuration is used to avoid LACP state machine chaos, then link aggregation can be maintained, but full-path detection mechanism from VFs to external switch is lost
Solution Approach 1:
The patent implements a feedback mechanism where heartbeat packet transmission and reception status provide continuous link status information. The host receives heartbeat responses from the external switch through VFs and uses this feedback to determine link validity, enabling full-path detection while maintaining stable link aggregation
3Productivity
If VFs are allocated to multiple VMs for load sharing, then network bandwidth requirement is met, but failure processing becomes difficult without full-path detection
Solution Approach 1:
The patent replaces manual failure diagnosis with an automated heartbeat detection system. Instead of mechanical troubleshooting of VF link failures, the system uses automated packet transmission and response analysis to identify whether failures originate from internal VF issues or external link problems, significantly easing failure processing
Data Source
AI summary
At least some embodiments of invention provide a method, device and system for link management in a Virtual Machine (VM) environment. The method includes: a heartbeat handshake link is established with a VM. After the heartbeat handshake link is successfully established, Link Aggregation Control Protocol (LACP) state information of a Physical Function (PF) of a plurality of a Network Interface Cards (NICs) is acquired. The LACP state information is sent to the VM through the heartbeat handshake link.


