Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for data transmission

A data transmission method and a technology of a data transmission device, which are applied in the directions of multi-channel program devices, program control devices, electrical digital data processing, etc., can solve the problems of affecting function application performance, connection timeout, low efficiency, etc., and achieve simple and convenient implementation, Strong versatility and clear process effects

Active Publication Date: 2017-06-20
广州方硅信息技术有限公司
View PDF11 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Data transmission is the communication process in which data is transmitted from one place to another. The data transmission methods include ftp file service, message push, etc. These transmission methods based on network links adopt the C / S interactive mode, and the server provides services for the client , the client accesses the server through the ip address and interacts with the port specified by the server. It has the advantages of easy control of permissions, high security, and strong versatility. However, this transmission method requires the server and the client to work at the same time. When the transmission data is relatively large, the network bandwidth is seriously occupied, which may cause the connection to time out, making the data interaction service very unreliable, and it is not suitable for real-time business
[0003] In the virtual machine technology, data transmission is established between the client and the host through the establishment of a network link. However, in the transmission process of the network link scheme, in addition to the shortcomings of the above-mentioned data transmission method, there are also memory problems that need to be experienced many times. Copying problems, such as: copying from client r3 layer (user mode) to client r0 layer (kernel mode), copying caused by adding headers when passing from the upper layer of the network protocol to the next layer, etc., too many Memory copy will inevitably lead to lower transmission efficiency. If it is for large data transmission, the efficiency will be lower, and even directly affect the performance of various functional applications

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for data transmission
  • Method and device for data transmission
  • Method and device for data transmission

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] see figure 2 , this embodiment introduces a method for a virtual machine to transmit data to a host machine.

[0040] Step 201, allocate the memory space of the host machine as the shared memory space.

[0041] Start virtualbox, and add a PCI virtual device on the basis of virtualbox. The PCI virtual device allocates a memory space on the host computer to become the PCI device address space as a shared memory space. Among them, PCI is the most widely used general bus interface specification in computer systems at present. A PCI device refers to a device inserted into a PCI slot, and a PCI device has a device address space. Since the PCI virtual device is virtual, the device address space of the PCI virtual device is the memory address space of the host computer. In this embodiment, the size of the allocated memory space of the host computer is 64M, and the smallest unit is 4K.

[0042] Step 202, establishing a connection between the r0 layer (kernel mode, kernel la...

Embodiment 2

[0053] see figure 2 , this embodiment introduces a method for a host machine to transmit data to a virtual machine.

[0054] Step 301, allocate the memory space of the host computer as the shared memory space.

[0055] Start virtualbox, and add a PCI virtual device on the basis of virtualbox. The PCI virtual device allocates a memory space on the host computer to become the PCI device address space as a shared memory space. Among them, PCI is the most widely used general bus interface specification in computer systems at present. A PCI device refers to a device inserted into a PCI slot, and a PCI device has a device address space. Since the PCI virtual device is virtual, the device address space of the PCI virtual device is the memory address space of the host computer. In this embodiment, the size of the allocated memory space of the host computer is 64M, and the smallest unit is 4K.

[0056] Step 302, establishing a connection between the r0 layer driver of the virtual ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data transmission method, comprises: distributing memory space of a host machine for a PCI virtual device of the host machine, using the memory space as shared memory space; installing a driving program of the PCI virtual device for a virtual machine, to establish address mapping relations of a core address space and the shared memory space of the virtual machine; through the address mapping relations, realizing data transmission between the virtual machine and the host machine. Compared with the prior art, through adding the PCI virtual device and loading the driving program of the PCI device, data sharing is realized through using memory address mapping, so as to obviously improve data transmission efficiency between the host machine and the virtual machine. In addition, the invention also provides a device for data transmission.

Description

technical field [0001] The present invention relates to the technical field of computer software, and more specifically, to a data transmission method and device. Background technique [0002] Data transmission is the communication process in which data is transmitted from one place to another. Data transmission methods include ftp file service, message push, etc. These transmission methods based on network links adopt C / S interactive mode, and the server provides services for the client , the client accesses the server through the ip address and interacts with the port specified by the server. It has the advantages of easy control of permissions, high security, and strong versatility. However, this transmission method requires the server and the client to work at the same time. When the transmission data is relatively large, the network bandwidth will be seriously occupied, which may cause the connection to time out, making the data interaction service very unreliable, and ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54G06F9/455
CPCG06F9/45558G06F9/544G06F2009/45583
Inventor 唐杏贺灏
Owner 广州方硅信息技术有限公司