PCIe Peer-to-Peer Protocol for Heterogeneous Device Address Mapping
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing peer-to-peer communication methods for heterogeneous devices require significant CPU resources and occupy large address spaces on the host end, limiting efficiency in data processing.
Innovation Solution
A method for peer-to-peer communication between PCIE devices using a general-purpose target protocol to transmit and process data packets, allowing devices to determine internal addresses without relying on host-end physical addresses, facilitated by a service driver program for device registration and data processing.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If existing peer-to-peer communication methods are used for heterogeneous devices, then communication between devices can be achieved, but CPU resources are significantly consumed and large address spaces on the host end are occupied
Solution Approach 1:
The patent extracts the address management function from the host CPU by introducing a dedicated address registration and mapping module. This module independently manages device address information and performs address translation without CPU intervention, thereby reducing CPU resource consumption while maintaining communication compatibility between heterogeneous devices
Solution Approach 2:
The patent introduces an intermediary address mapping mechanism that mediates between devices and the host system. This mapping module translates device addresses to host addresses without requiring CPU processing, enabling heterogeneous device communication while minimizing CPU resource usage
2Adaptability or versatility
If existing peer-to-peer communication methods are used for heterogeneous devices, then communication between devices can be achieved, but large address spaces on the host end are occupied
Solution Approach 1:
The patent segments the address space management by creating a separate address mapping structure that is independent from the host's main address space. Device addresses are registered and mapped in a dedicated table, allowing heterogeneous devices to communicate without occupying large portions of the host's address space
Solution Approach 2:
The patent creates a virtual copy of device address space through address mapping. Instead of allocating actual physical address space on the host for each device, the system creates virtual address mappings that reference device memory regions, thereby enabling device communication without consuming host address space resources
3Productivity
If all data is processed by the CPU in network IO, then data processing can be performed, but the proportion of CPU resources consumed by network IO increases
Solution Approach 1:
The patent enables devices to perform self-service address resolution and data forwarding through the peer-to-peer communication mechanism. Devices can directly communicate and exchange data without CPU intervention in the data path, with only initial setup and address management requiring CPU resources, thereby maintaining productivity while reducing CPU consumption for network IO processing
Data Source
AI summary
A method for peer-to-peer communication between devices is applied to a target transmitting device and includes: obtaining an internal address of a target receiving device, wherein both the target transmitting device and the target receiving device are peripheral component interconnect express (PCIE) devices; according to a preset protocol format, constructing a target protocol that includes the internal address of the target receiving device, and generating a target data packet carrying the target protocol. By the design of the general-purpose target protocol, communications and mutual access between heterogeneous PCIE devices are achieved in the present application without occupying a large number of physical addresses of a host end.


