Method and system realizing zero-copy transmission of stream media data

A media data, zero-copy technology, applied in the field of network communication, can solve problems such as reducing system processing capacity and consuming system CPU resources, and achieve the effect of reducing data copy operations

Inactive Publication Date: 2009-01-07
ZTE CORP
View PDF0 Cites 50 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the streaming media server is heavily loaded, a large number of data copying and context switching operations will b

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 system realizing zero-copy transmission of stream media data
  • Method and system realizing zero-copy transmission of stream media data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Various preferred embodiments of the present invention will be described in more detail below in conjunction with the accompanying drawings.

[0025] In the method for zero-copy transmission of streaming media data based on the network protocol stack of Linux, the present invention utilizes the original Linux network protocol stack, and the network protocol stack utilizes the kernel module mechanism to realize, and the loading and unloading of the kernel module will not Affects the original network protocol stack of the Linux kernel. In the system for realizing zero-copy transmission of streaming media data according to the present invention, it includes a streaming media server and a user equipment connected to the streaming media server, such as figure 2 As shown, the streaming media server is provided with a network card to communicate with the user equipment. The network card supports DMA function and SG (Scatter / Gather, scatter / gather) function.

[0026] In the ...

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 method and a system which can send stream media data with zero copy, which is based on the network protocol stack of Linux. The method of the invention comprises the steps as follows: when a stream media server receives the data request of user equipment, the system calling of data to be transmitted is carried out; the stream media data is read into a user data cache from the hard disk space; the stream media data memorized in the user data cache is packaged as real-time transmission protocol data packages; the transmission of stream media data package with separation of head and load is adopted for the real-time transmission protocol data. The method and the system of the invention sufficiently use the DMA function and SG (Scatter/Gather) function of a network card and realizes a type of stream media data transmission with zero-copy; compared with the existing network protocol stack of Linux kernel, the method and the system of the invention realize the transmission type of stream media data packages with separated head and load, and reduces the once data copy operation required during the RTP packaging process of the stream media data.

Description

technical field [0001] The invention belongs to a network communication method and system in the field of computer applications, and specifically relates to a method and system for realizing zero-copy transmission of streaming media data based on a Linux network protocol stack. Background technique [0002] In the prior art, in the application of the streaming media server based on the Linux operating system, a large amount of streaming media data needs to be transferred from the disk to the network. When streaming data is transferred from disk to network, multiple passes are made in different system spaces. [0003] The transfer process mainly includes the following three parts: (1) read the streaming media data from the disk space into the user data cache; (2) pack the streaming media data stored in the user data cache into RTP (Real-time Transport Protocol, (3) send the RTP data packet stored in the user's sending buffer through a UDP (User Datagram Protocol, User Datagr...

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
IPC IPC(8): H04N7/24H04N7/173H04L29/08
Inventor 王魏强朱红军程剑
Owner ZTE CORP
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