User state file sending method, file receiving method and file sending and receiving device

一种用户态、文件的技术,应用在通信领域,能够解决处理数据的机会少、延迟等问题,达到减少拷贝、提升性能的效果

Active Publication Date: 2022-01-07
NANJING ZHONGXING XIN SOFTWARE CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Typically, in the scenario where multiple clients send files to the same receiving end at high concurrency, the CPU at the receiving end is constantly busy with interrupts, repeatedly reserving the scene, and there are relatively few opportunities to actually process data, resulting in serious delays. was a disaster
[0007] In the process of sending and receiving files in the prior art, a large number of copying, context switching, and interruption are generated.

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
  • User state file sending method, file receiving method and file sending and receiving device
  • User state file sending method, file receiving method and file sending and receiving device
  • User state file sending method, file receiving method and file sending and receiving device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0027] In the following description, use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only to facilitate description of the present invention and has no specific meaning by itself. Therefore, 'module', 'part' or 'unit' may be used in combination.

[0028] Such as figure 1 As shown, an embodiment of the present invention provides a data sending method, including:

[0029] Step S110, allocating three areas in the user state area, the data reading and sending area, the data receiving and writing area, and the data buffer area.

[0030] In this embodiment, it can be seen that only the user mode space of the process needs to be used, and the kernel mode space of the process does not need to be used. Since the file data reading and writing and network receiving and sending are completed in the u...

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 file sending method, a file receiving method, and a file sending and receiving device in a user state. The file sending method includes: allocating a data reading and sending area, a data receiving and writing area, and a data buffer area in the user state area. Create a data sending process; Obtain the file to be sent corresponding to the data sending process from the data buffer area; Build the metadata of the data sending process, and record it in the data reading and sending area ; Sequentially process one or more metadata in the reading and sending area, wherein the processing of the metadata includes: sending the file to the network card through the user mode network device driver, and the file is sent by the network card issue. According to the technical solution of the present invention, the user state space of the data sending and receiving process is used to complete the receiving and sending of data, without using the kernel state space of the process to completely shield the kernel, which can significantly reduce copying, context switching, and interruption. Improved data sending and receiving performance.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a file sending method, a file receiving method and a file sending and receiving device in a user state. Background technique [0002] In recent years, NPU (embedded neural network processor), GPU (graphics processing unit), SSD (solid state drive), NVM (non-volatile memory), Infiniband (a "conversion cable" technology that supports multiple concurrent links) ), 400GbE (400G Ethernet) and other new high-performance hardware devices represented by computing, storage, and network have ushered in rapid development, but software systems have stagnated. In the long-distance data transmission, the delay of the software system accounts for an increasingly large proportion. [0003] Generally, the performance loss of a software system mainly comes from three aspects: [0004] (1) Copy (Copy). Also known as duplication, copy operations cause data redundancy and cause latency 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 Patents(China)
IPC IPC(8): H04L67/288G06F16/2455H04L67/06G06F9/54
CPCH04L67/06G06F13/1673H04L67/568H04L67/1097H04L67/561
Inventor 杨洪章屠要峰陈贵海郭斌黄震江高洪李丙洋江俊杰
Owner NANJING ZHONGXING XIN SOFTWARE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products