CN103856445B - The data transmission method of voice data traffic based on UDP, device and system - Google Patents

The data transmission method of voice data traffic based on UDP, device and system Download PDF

Info

Publication number
CN103856445B
CN103856445B CN201210504545.7A CN201210504545A CN103856445B CN 103856445 B CN103856445 B CN 103856445B CN 201210504545 A CN201210504545 A CN 201210504545A CN 103856445 B CN103856445 B CN 103856445B
Authority
CN
China
Prior art keywords
data
udp
fifo
voice data
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210504545.7A
Other languages
Chinese (zh)
Other versions
CN103856445A (en
Inventor
梁富林
龙平
殷英
耿束建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Bbef Science and Technology Co Ltd
Original Assignee
Beijing Bbef Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Bbef Science and Technology Co Ltd filed Critical Beijing Bbef Science and Technology Co Ltd
Priority to CN201210504545.7A priority Critical patent/CN103856445B/en
Publication of CN103856445A publication Critical patent/CN103856445A/en
Application granted granted Critical
Publication of CN103856445B publication Critical patent/CN103856445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to the data transmission method of the voice data traffic based on UDP, device and system, method therein includes:Receiving terminal, by the data buffer storage to cache module, stores the buffer address pointer of the data when listening to the data for the voice data traffic based on UDP for needing to receive in the first FIFO;When it is non-empty not listen to data and the first FIFO, buffer address pointer is read from the first FIFO, is referred to according to the buffer address and is carried out dissection process for the corresponding data in cache module, the buffer address pointer of storage treated data in the 2nd FIFO;When not listening to data, the first FIFO being sky and the 2nd FIFO is non-empty, buffer address pointer is read from the 2nd FIFO, and refer to according to the buffer address and carry out caching release processing for the corresponding data in cache module.The present invention effectively reduces the cost of implementation of the data transmission of the voice data traffic based on UDP.

Description

The data transmission method of voice data traffic based on UDP, device and system
Technical field
The present invention relates to UDP message transmission technologys, are passed more particularly to a kind of data of voice data traffic based on UDP The data transmission system of transmission method, the data sink of voice data traffic based on UDP and the voice data traffic based on UDP System.
Background technology
UDP(User Datagram Protocol, User Datagram Protocol)It is OSI(Open SystemInterconnect, open system interconnection)A kind of connectionless transport layer protocol in reference model.
UDP ratios TCP(Transmission Control Protocol, transmission control protocol)Simple, UDP does not have not only There is the flow control in TCP(flow control)With congestion control (congestion control), nor with confirm The functions such as whether datagram sequence that whether datagram transmission is properly received and receives reverse, that is to say, that UDP offers towards Simple insecure information transmission service of affairs, i.e., only carry out sending and receiving for datagram.
However, just because of the simple of UDP, make UDP ratios TCP that there is faster transmission speed.Currently, many regards in real time Frequency speech network transport protocol is all based on UDP, such as RTP(Real-time Transport Protocol, real-time Transmission association View)And RTSP(Real Time Streaming Protocol, real time streaming transport protocol)Deng.
Currently, providing voice data traffic, the voice data traffic generally use list based on UDP to be directed to specific user It broadcasts or multicast mode, data transmission realization method is usually:Transmitting terminal is sent using unicast or multicast mode and is based on UDP Datagram, the dissection process module of receiving terminal handles the datagram received accordingly.
Inventor has found in realizing process of the present invention:Due to the data instantaneous transfer of the voice data traffic based on UDP Rate is higher, therefore, higher to the hardware requirement of receiving terminal, such as receiving terminal needs to use high speed processor, to make data The cost of implementation of transmission is higher;In addition, since UDP cannot be guaranteed that the sequence of datagram receives, the voice number based on UDP It is more single according to the data transmission realization method of business, to keep its flexibility poor.
In view of the existing voice data traffic based on UDP data transmission realization method there are the problem of, the present invention People manufactures abundant for many years practical experience and professional knowledge based on such product design is engaged in, and coordinates the utilization of scientific principle, product Pole is subject to research and innovation, to found a kind of data transmission method and system of the voice data traffic based on UDP, can overcome The data transmission realization method of the existing voice data traffic based on UDP there are the problem of, make its have more practicability.By Continuous research and design, and by studying sample and improvement repeatedly, the present invention having practical value is created finally.
Invention content
It is a primary object of the present invention to overcome the data transmission realization side of the existing voice data traffic based on UDP Formula there are the problem of, and provide a kind of data transmission method of the new voice data traffic based on UDP, device and system, institute Technical problems to be solved are to reduce the cost of implementation of the data transmission of the voice data traffic based on UDP.
It the purpose of the present invention and solves its technical problem technical solution below may be used to realize.
A kind of data transmission method of the voice data traffic based on UDP proposed according to the present invention, including:Receiving terminal is detectd Listen whether the data of the voice data traffic of reception in need;In the data for the voice data traffic for listening to reception in need When, receiving terminal executes data buffer storage operation, and the data buffer storage operation includes:The data buffer storage of the voice data traffic is arrived In cache module, and store in the first FIFO the buffer address pointer of the data;Do not listening to the language for needing to receive The data of sound data service, and the first FIFO be non-empty when, receiving terminal execute data processing operation, the data processing operation packet It includes:Buffer address pointer is read from the first FIFO, is referred to for the correspondence stored in the cache module according to the buffer address Data carry out dissection process, and in the 2nd FIFO storing and resolving treated data buffer address pointer;Do not intercepting To when needing the data of the voice data traffic received, the first FIFO to be sky and the 2nd FIFO is non-empty, receiving terminal executes caching Release operation, the caching release operation include:Buffer address pointer is read from the 2nd FIFO, and according to from the 2nd FIFO The buffer address read out refers to carries out caching release processing for the corresponding data stored in the cache module;In above-mentioned data In processing operation or caching release operating process, if receiving terminal listens to the voice data traffic of reception in need Data then interrupt current data processing operation or caching release operation, and execute the data buffer storage operation.
A kind of data sink of the voice data traffic based on UDP proposed according to the present invention, including:The device packet It includes:Receiving module, dissection process module, caching release module, the first FIFO, the 2nd FIFO and cache module;The reception Module, for when listening to the data for the voice data traffic for needing to receive, interrupt signal being generated, by the voice data industry In the data buffer storage to cache module of business, and store in the first FIFO the buffer address pointer of the data, wherein in described It is currently processed that break signal makes the dissection process module or caching release module interrupt;Dissection process module, for receiving Module does not listen to the data of voice data traffic for needing to receive, and when the first FIFO is non-empty, is read from the first FIFO Buffer address pointer is taken, is referred to according to the buffer address and carries out dissection process for the corresponding data stored in the cache module, And in the 2nd FIFO storing and resolving treated data buffer address pointer;Release module is cached, in receiving module When not listening to that need the data of voice data traffic received, the first FIFO to be empty and the 2nd FIFO be non-empty, from second Buffer address pointer is read in FIFO, and is referred in the cache module according to the buffer address read out from the 2nd FIFO The corresponding data of storage carries out caching release processing.
A kind of data transmission system of the voice data traffic based on UDP proposed according to the present invention, including:Transmitting terminal and At least one receiving terminal;The transmitting terminal is used to send voice data traffic to the receiving terminal in a manner of unicast or multicast Data;The data sink of the receiving terminal voice data traffic based on UDP as described above.
By above-mentioned technical proposal, the data transmission method of the voice data traffic of the invention based on UDP, device and it is System at least has following advantages and advantageous effect:The present invention is connect by the way that cache module, the first FIFO and the 2nd FIFO is arranged Receiving end is when receiving the data of the voice data traffic based on UDP, by the data buffer storage to cache module, and by the data Buffer address pointer be stored in the first FIFO, in this way, receiving terminal can it is no need receive data in the case of, root Refer to according to the buffer address stored in the first FIFO and carries out dissection process for the corresponding data stored in cache module;By that will locate The buffer address pointer of data after reason is stored in the 2nd FIFO, in this way, receiving terminal can be in no data for needing to receive And in the case of not needing the data of dissection process, referred to for cache module according to the buffer address stored in the 2nd FIFO The corresponding data of middle storage carries out caching release operation, to which receiving terminal can be lower in its hardware configuration, smoothly Order caching processing, dissection process and the caching release processing for completing data, realize the number of the voice data traffic based on UDP According to transmission;Data transmission can be realized to the receiving terminal of the present invention using low speed processor, effectively reduced The data transmission cost of implementation of voice data traffic based on UDP;In addition, the present invention is by will be based on the voice data industry of UDP The form of the data of business in a frame format is packaged, and the fields such as frame number and/or packet serial number are arranged in frame head, makes receiving terminal It can correctly be sorted to received data, so as to avoid the data transmission of the voice data traffic based on UDP The more single phenomenon of realization method, so improve the voice data traffic based on UDP data transmission realization method it is flexible Property.
In conclusion the present invention technically has significant progress, and with apparent positive technique effect, it is really new for one Grain husk, progress, practical new design.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow the above and other objects, features and advantages of the present invention can It is clearer and more comprehensible, it is special below to lift preferred embodiment, and coordinate Figure of description, detailed description are as follows.
Description of the drawings
Fig. 1 is the flow chart of the data transmission method of the voice data traffic based on UDP of the present invention;
Fig. 2 is the frame structure schematic diagram of the FIP of the present invention;
Fig. 3 is the frame structure schematic diagram of the UIP of the present invention;
Fig. 4 is that the FIP of the present invention is encapsulated in the schematic diagram in multiple UIP;
Fig. 5 is the data sink schematic diagram of the voice data traffic based on UDP of the present invention;
Fig. 6 is the data transmission system schematic diagram of the voice data traffic based on UDP of the present invention.
Specific implementation mode
It is of the invention to reach the technological means and effect that predetermined goal of the invention is taken further to illustrate, below in conjunction with Attached drawing and preferred embodiment, to the data transmission method of the voice data traffic based on UDP proposed according to the present invention, device and Specific implementation mode, structure, feature and the actual efficacy of system are described in detail as after.
The data transmission method of embodiment one, voice data traffic based on UDP, this method are real by the receiving terminal in system It is existing, and the flow of this method such as attached drawing 1.
S100, receiving terminal intercept the signal transmitted in network, and determine whether need according to the result intercepted Want the data of its voice data traffic received.For example, receiving terminal judges whether the preceding n-bit information that it is listened to is predetermined Value then determines the data of its voice data traffic received in need if it is predetermined value, otherwise, it determines needing to receive without it Voice data traffic data.The present invention do not limit receiving terminal intercept and it is above-mentioned whether the data of reception in need The specific implementation of judgement.
The data of the voice data traffic based on UDP in the present invention can be not only the voice data traffic based on UDP Voice data, can also be the voice data traffic based on UDP control information.
Receiving terminal arrives S110 when listening to the data of voice data traffic of reception in need, i.e. receiving terminal executes number According to caching.
Receiving terminal is determining that the first FIFO is non-in the data for not listening to the voice data traffic for needing to receive In the case of sky, S120 is arrived, i.e. receiving terminal executes data processing operation.
Receiving terminal is determining that the first FIFO is sky in the data for not listening to the voice data traffic for needing to receive And the 2nd FIFO be non-empty in the case of, arrive S130, i.e., receiving terminal execute caching release operation.
In addition, receiving terminal is not listening to the data for the voice data traffic for needing to receive, and determining first FIFO is in the case that empty and the 2nd FIFO is also sky, and receiving terminal is only persistently intercepted, and it is slow to execute above-mentioned data Deposit operation, data processing operation and caching release operation.
It should be noted that the data of the voice data traffic based on UDP in the present invention can be transmitting terminal with unicast The data that mode is sent, or the data that transmitting terminal is sent with multicast mode;Moreover, should the voice data industry based on UDP The data of business can be existing form data, i.e., the form of the data message of the existing voice data traffic based on UDP, Can be:The UDP interface packets being packaged in a frame format(That is UDP Interface Package, may be simply referred to as UIP)Shape Formula.
The UDP interface packets of the frame format of the present invention(UIP)Including:Frame head(It is properly termed as UIP packet frame heads)And frame(It can be with Referred to as UIP packets frame), and may include having in frame head:It is UIP data structure version identifiers field, the serial number of UDP interface packets, net Lotus type, payload length and cyclic redundancy check.When the payload carried in the frame of UIP is the FIP of frame format, in the frame head of UIP Can also include FIP segment identifications.
Above-mentioned UIP data structures version identifier field for indicating version number used by the data structure of the UIP, so as to In the upgrading of the data structure of UIP;The serial number of above-mentioned UDP interfaces packet is used to indicate the serial number of the UIP;Above-mentioned payload type The type of the data carried in payload for indicating the UIP controls data or voice data etc. in this way;Above-mentioned payload length For indicating the occupied byte number of the payload of the UIP;What above-mentioned FIP segment identifications carried in the payload for indicating the UIP Position of the data in a FIP is initial position or centre position or end position;Above-mentioned cyclic redundancy check for pair Aforementioned each field of FIP frame heads is verified.
The FIP of above-mentioned frame format includes:Frame head(It is properly termed as FIP packet frame heads)And frame, and the frame head of FIP can wrap It has included:FIP frame numbers field, retains bit field and data frame length field at traffic data type field.It is carried in FIP frames Payload be voice data traffic voice data or voice data traffic control data.
Above-mentioned FIP frame numbers field is used to indicate the serial number of FIP frames;Above-mentioned traffic data type field is for indicating The type of the data carried in the payload of FIP, such as:Control data, time data or voice data etc.;Above-mentioned reservation bit field Subsequent expansion use can be given over to;Above-mentioned data frame length field is used to indicate the total length of the frame of the frame of FIP.
The data for the voice data traffic based on UDP that receiving terminal receives can be to carry the UIP of FIP, a tool The example of body, first, the FIP that transmitting terminal will need the audio data stream sent to be encapsulated as frame format;Secondly, transmitting terminal judges to be somebody's turn to do Whether the length of FIP is more than predetermined length(Such as 1024 bytes), when the length for judging the FIP is more than predetermined maximum, The FIP is carried out segment processing by transmitting terminal, by each segment encapsulation in the frame of a UIP, and is being arranged each UIP's After frame head, multiple UIP is sent to receiving terminal in a manner of unicast or multicast;Transmitting terminal the length for judging the FIP not When more than predetermined maximum, can directly the FIP be encapsulated in the frame of a UIP, and after the frame that the UIP is set In a manner of unicast or multicast the UIP is sent to receiving terminal.
A specific example of above-mentioned FIP and UIP, as shown in Figures 2 to 4.
In fig. 2, the frame head of FIP(That is the FIP packet frame heads in Fig. 2)Length be 5 bytes and be regular length, so And the length of the frame of FIP is variable, the frame is for carrying voice data or control data.The 0th of the frame head of FIP Byte is FIP frame number fields(That is the frame number in Fig. 2), the 1st byte of the frame head of FIP is divided into two parts, and high 4 bit is Traffic data type, low 4 bit are reserved bit, and the 2-4 bytes of the frame head of FIP are data frame length field.
In figure 3, the frame head of UIP(That is the UIP packet frame heads in Fig. 3)Length be 7 bytes and be regular length, and And the length of the frame of UIP is variable, the frame of UIP is mainly used for carrying FIP.The 0th byte of frame head of UIP is UIP data Structure version identification field(That is the version number in Fig. 3), the 1st byte is the serial number of UDP interface packets(That is the packet serial number in Fig. 3); 2nd byte is divided into two parts, and high 6 bit is payload type, and low 2 bit is FIP segment identifications(That is the segmentation mark in Fig. 3 Know), such as 00 indicates that FIP data sectionals start(That is initial position), 01 indicates that FIP data sectionals are continuous(That is centre position), 10 Indicate that FIP data sectionals terminate(That is end position);3-4 bytes are payload length byte;5-6 bytes are cyclic redundancy check (That is the CRC check in Fig. 3).
In Fig. 4, a FIP is divided into three segmentations, and first segmentation includes the starting of the frame head and voice data of FIP Part, second segmentation include the middle section of the voice data of FIP, and third segmentation includes the end of the voice data of FIP Part.Three segmentations are carried by the frame of three UIP.
S110, receiving terminal are by the data buffer storage of received voice data traffic to cache module(Such as memory)In, and The buffer address pointer of the data of memory buffers in the first FIFO.
Specifically, the size of cache module can be arranged according to actual network transfer speeds and the maximum length of UIP, For example, the size of the cache module of receiving terminal can be N × L, wherein N is the depth of cache module, and L is most greatly enhancing for UIP Degree, and the value of N is related with network transmission speed.In addition, the depth of the first FIFO may be set to be N, and the first FIFO Width could be provided as the length of buffer address pointer.
S120, receiving terminal read buffer address pointer from the first FIFO, and are referred to for caching mould according to the buffer address The data that the pointer that is stored in block is directed toward carry out dissection process, and receiving terminal storing and resolving treated number in the 2nd FIFO According to buffer address pointer.
Specifically, the depth of the 2nd FIFO could be provided as above-mentioned N, and the width of the 2nd FIFO could be provided as caching The length of address pointer.Here dissection process can be that processing operations, the present invention such as decoding and packet sequencing do not limit at parsing The specific implementation of reason.
S130, receiving terminal read buffer address pointer from the 2nd FIFO, and read out from the 2nd FIFO according to it Buffer address refers to the corresponding data being directed toward for the pointer stored in cache module and carries out caching release processing.
For above-mentioned S120 and S130 it should be strongly noted that receiving terminal is released in execution data processing operation or caching During putting operation, once receiving terminal listens to the data of the voice data traffic of reception in need, then receiving terminal immediately in Break the data processing operation or caching release operation that it is currently executing(It is such as interrupted in a manner of interrupt signal currently The operation of execution), and it is immediately performed data buffer storage operation(That is S110).
The data sink of embodiment two, voice data traffic based on UDP.The device is set to receiving terminal, and should The structure of device is as shown in Figure 5.
The device shown in Fig. 5 includes:Receiving module 10, dissection process module 20, caching release module 30, first FIFO40, the 2nd FIFO50 and cache module 60.The device may be used to be realized based on Embedded microcontroller platform, Such as the platform uses the integrated embedded structure with FLASH, SRAM and MAC, to make receiving terminal have simple in structure and cost Low advantage, and the treatment mechanism of the double-FIFO of the present apparatus can make receiving terminal realize number based on low speed processor According to transmission, the cost of implementation and system power dissipation of data transmission are reduced.
Receiving module 10 and dissection process module 20, caching release module 30, the first FIFO40 and cache module 60 are equal Connection.
Receiving module 10 is mainly used for, when listening to the data for the voice data traffic for needing to receive, generating and interrupting letter Number, so that dissection process module 20 or caching release module 30 interrupt current processing immediately;Also, receiving module 10 by its In the data buffer storage of the voice data traffic of reception to cache module 60, and corresponding to the data are stored in cache module 60 Buffer address pointer be stored in the first FIFO40.
The data that receiving module 10 receives can be the data that transmitting terminal is sent with mode of unicast or multicast mode, and The concrete structure of data such as the description in above-described embodiment one, this will not be repeated here.
Dissection process module 20 is all connected with receiving module 10, the first FIFO40, the 2nd FIFO50 and cache module 60.
Dissection process module 20 is mainly used for not listening to the voice data traffic for needing to receive in receiving module 10 Data, and when the first FIFO40 is non-empty, buffer address pointer is read from the first FIFO40, and according to the caching of the reading The corresponding data stored in cache module 60 pointed by the pointer of location carries out dissection process, and the storing and resolving in the 2nd FIFO50 The buffer address pointer for data that treated.In addition, dissection process module 20 is the case where receiving module 10 generates interrupt signal Under, if dissection process module 20 is carrying out dissection process, dissection process module 20 should stop dissection process behaviour immediately Make, in order to which receiving module 10 can normally execute caching process operation.
Caching release module 30 is all connected with receiving module 10, the first FIFO40, the 2nd FIFO50 and cache module 60.
Caching release module 30 is mainly used for not listening to the voice data traffic for needing to receive in receiving module 10 When data, the first FIFO40 are sky and the 2nd FIFO50 is non-empty, caching release module 30 reads caching from the 2nd FIFO50 Address pointer, and stored from the cache module 60 pointed by the buffer address pointer read out in the 2nd FIFO50 according to it Corresponding data carries out caching release processing.In addition, release module 30 is cached in the case where receiving module 10 generates interrupt signal, If caching release module 30 is carrying out caching release processing, caching release module 30 should stop immediately at the caching release Reason operation, in order to which receiving module 10 can normally execute caching process operation.
Embodiment three, the data transmission system of voice data traffic based on UDP.
The system includes:Transmitting terminal and at least one receiving terminal.In the case where system includes multiple receiving terminals, the system As shown in Fig. 6.
System in Fig. 6 includes N(N>1)A receiving terminal(That is receiving terminal 1, receiving terminal 2, receiving terminal 3 ... receiving terminal N), Transmitting terminal is connect by Ethernet with each receiving terminal, and transmitting terminal can pass through multicast address(Extremely such as 239.0.0.0 239.255.255.255)The voice data traffic based on UDP is sent to receiving terminal 1, receiving terminal 2, receiving terminal 3 ... receiving terminal N Data.
When the data that transmitting terminal is sent to receiving terminal are the data of frame packing forms, transmitting terminal may include:First envelope Die-filling piece, the second package module and sending module.
First package module is connect with the second package module.First package module is mainly used for the voice number that will need to send The FIP of frame format is encapsulated as according to stream.The specific format of FIP such as the description in above-described embodiment one, this will not be repeated here.
Second package module is all connected with the first package module and sending module.Second package module is mainly used at one When the length of FIP is more than predetermined maximum, the packaged FIP of above-mentioned first package module is segmented, and be encapsulated in multiple UIP In, otherwise, the packaged FIP of above-mentioned first package module is directly encapsulated in a UIP by the second package module.Second encapsulation Module exports its packaged UIP.Here the specific format of UIP such as the description in above-described embodiment one, are not repeated herein Explanation.
Sending module is connect with the second package module.Sending module is mainly used in a manner of unicast or multicast to one Or multiple receiving terminals send the UIP of the second package module output.
The data sink of the voice data traffic based on UDP is provided in receiving terminal, the device such as above-described embodiment Description in two, this will not be repeated here.
The above is only presently preferred embodiments of the present invention, is not intended to limit the present invention in any form, though So the present invention discloses as above, the technology that however, it is not intended to limit the invention with preferred embodiment, any to be familiar with this profession Technical staff without departing from the scope of the present invention, when the technology contents using the disclosure above make it is a little change or It is modified to the equivalent embodiment of equivalent variations, as long as being the content without departing from technical solution of the present invention, technology according to the present invention Essence still falls within the model of technical solution of the present invention to any simple modification, equivalent change and modification made by above example In enclosing.

Claims (10)

1. a kind of data transmission method of the voice data traffic based on UDP, which is characterized in that including:
Receiving terminal intercept whether the data of the voice data traffic of reception in need;
When listening to the data of voice data traffic of reception in need, receiving terminal executes data buffer storage operation, the data Caching includes:By in the data buffer storage to cache module of the voice data traffic, and in the first FIFO described in storage The buffer address pointer of data;
The data of voice data traffic for needing to receive are not being listened to, and when the first FIFO is non-empty, receiving terminal executes number According to processing operation, the data processing operation includes:Buffer address pointer is read from the first FIFO, is referred to according to the buffer address Dissection process is carried out for the corresponding data that is stored in the cache module, and storing and resolving treated the number in the 2nd FIFO According to buffer address pointer;
When not listening to the data for the voice data traffic that needs receive, the first FIFO being sky and the 2nd FIFO is non-empty, Receiving terminal executes caching release operation, and the caching release operation includes:Buffer address pointer, and root are read from the 2nd FIFO Refer to according to the buffer address read out from the 2nd FIFO and carries out caching release for the corresponding data stored in the cache module Processing;
In above-mentioned data processing operation or caching release operating process, if receiving terminal listens to reception in need The data of voice data traffic then interrupt current data processing operation or caching release operation, and execute the data buffer storage Operation.
2. the data transmission method of the voice data traffic based on UDP as described in claim 1, which is characterized in that institute's predicate The data of sound data service are:The UDP interface packets being packaged in a frame format.
3. the data transmission method of the voice data traffic based on UDP as claimed in claim 2, which is characterized in that the side Method further includes:
The frame interface packet FIP that transmitting terminal will need the audio data stream sent to be encapsulated as frame format;
When the length of a FIP is more than predetermined maximum, transmitting terminal is by the FIP segment encapsulations in multiple UDP interfaces packets In;
When the length of a FIP is not more than predetermined maximum, the FIP is directly encapsulated in a UDP interface by transmitting terminal Bao Zhong.
4. the data transmission method of the voice data traffic based on UDP as claimed in claim 3, which is characterized in that the FIP Frame head include:FIP frame numbers field, retains bit field and data frame length field at traffic data type field.
5. the data transmission method of the voice data traffic based on UDP as claimed in claim 3, which is characterized in that the UDP The frame head of interface packet includes:It is data structure version identifier field, the serial number of UDP interface packets, payload type, FIP segment identifications, net Lotus length and cyclic redundancy check.
6. the data transmission method of the voice data traffic based on UDP as described in any claim in claim 1 to 5, It is sent out in a manner of unicast or multicast it is characterized in that, the data for the voice data traffic that the receiving terminal receives are transmitting terminals The data sent.
7. a kind of data sink of the voice data traffic based on UDP, which is characterized in that the device includes:Receiving module, Dissection process module, caching release module, the first FIFO, the 2nd FIFO and cache module;
The receiving module, for when listening to the data for the voice data traffic for needing to receive, interrupt signal being generated, by institute In the data buffer storage to cache module for stating voice data traffic, and the buffer address for storing in the first FIFO the data refers to Needle, wherein it is currently processed that the interrupt signal makes the dissection process module or caching release module interrupt;
Dissection process module, the data for not listening to the voice data traffic for needing to receive in receiving module, and first When FIFO is non-empty, buffer address pointer is read from the first FIFO, is referred in the cache module according to the buffer address The corresponding data of storage carries out dissection process, and in the 2nd FIFO storing and resolving treated data buffer address pointer;
Cache release module, for receiving module do not listen to need receive voice data traffic data, first When FIFO is sky and the 2nd FIFO is non-empty, buffer address pointer is read from the 2nd FIFO, and read according to from the 2nd FIFO The buffer address of taking-up refers to carries out caching release processing for the corresponding data stored in the cache module.
8. the data sink of the voice data traffic based on UDP as claimed in claim 7, which is characterized in that institute's predicate The data of sound data service are:The UDP interface packets being packaged in a frame format, and carried in the payload of the UDP interfaces packet The frame interface packet FIP being packaged in a frame format.
9. a kind of data transmission system of the voice data traffic based on UDP, which is characterized in that including:Transmitting terminal and at least one A receiving terminal;
Data of the transmitting terminal for sending voice data traffic to the receiving terminal in a manner of unicast or multicast;
The receiving terminal includes the data sink of the voice data traffic based on UDP as claimed in claim 7.
10. the data transmission system of the voice data traffic based on UDP as claimed in claim 9, which is characterized in that the hair Sending end includes:
First package module, the frame interface packet FIP for the audio data stream for needing to send to be encapsulated as to frame format;
Second package module, when for the length in a FIP more than predetermined maximum, by the FIP segment encapsulations more In a UDP interfaces packet, otherwise, directly the FIP is encapsulated in a UDP interface packet;
Sending module, for sending the UDP interfaces packet to the receiving terminal in a manner of unicast or multicast.
CN201210504545.7A 2012-11-30 2012-11-30 The data transmission method of voice data traffic based on UDP, device and system Active CN103856445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210504545.7A CN103856445B (en) 2012-11-30 2012-11-30 The data transmission method of voice data traffic based on UDP, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210504545.7A CN103856445B (en) 2012-11-30 2012-11-30 The data transmission method of voice data traffic based on UDP, device and system

Publications (2)

Publication Number Publication Date
CN103856445A CN103856445A (en) 2014-06-11
CN103856445B true CN103856445B (en) 2018-10-16

Family

ID=50863667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210504545.7A Active CN103856445B (en) 2012-11-30 2012-11-30 The data transmission method of voice data traffic based on UDP, device and system

Country Status (1)

Country Link
CN (1) CN103856445B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187440A (en) * 2015-09-26 2015-12-23 北京暴风科技股份有限公司 Method and system for transmitting video data by using UDP protocol
CN110062008A (en) * 2019-05-21 2019-07-26 北京计算机技术及应用研究所 Phonautograph system optimization method for software under harsh temperature conditions

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1452351A (en) * 2002-04-17 2003-10-29 华为技术有限公司 Method for managing and allocating buffer storage during Ethernet interchange chip transmission of data
CN1819544A (en) * 2005-01-05 2006-08-16 华为技术有限公司 Buffer management based on bitmap list
CN101150525A (en) * 2007-11-20 2008-03-26 杭州华三通信技术有限公司 Release method, system and logic module for buffered address

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101551736B (en) * 2009-05-20 2010-11-03 杭州华三通信技术有限公司 Cache management device and method based on address pointer linked list

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1452351A (en) * 2002-04-17 2003-10-29 华为技术有限公司 Method for managing and allocating buffer storage during Ethernet interchange chip transmission of data
CN1819544A (en) * 2005-01-05 2006-08-16 华为技术有限公司 Buffer management based on bitmap list
CN101150525A (en) * 2007-11-20 2008-03-26 杭州华三通信技术有限公司 Release method, system and logic module for buffered address

Also Published As

Publication number Publication date
CN103856445A (en) 2014-06-11

Similar Documents

Publication Publication Date Title
US20220311544A1 (en) System and method for facilitating efficient packet forwarding in a network interface controller (nic)
EP1234428B1 (en) Method and apparatus for packet delay reduction using scheduling and header compression
KR100716184B1 (en) Apparatus and method for a queue management of network processor
US10432556B1 (en) Enhanced audio video bridging (AVB) methods and apparatus
EP3573297B1 (en) Packet processing method and apparatus
US20130016724A1 (en) Link layer preemption
JP7329627B2 (en) Packet processing method and related device
WO2018161672A1 (en) Packet processing method, apparatus and system
CN104378315B (en) A kind of method and device of CAPWAP tunnel packet transmission
US8990422B1 (en) TCP segmentation offload (TSO) using a hybrid approach of manipulating memory pointers and actual packet data
CN103856445B (en) The data transmission method of voice data traffic based on UDP, device and system
WO2013097218A1 (en) Stream media data processing method, device and system
WO2014146468A1 (en) Method and apparatus for scheduling and buffering data packet, and computer storage medium
WO2020108568A1 (en) Information processing method and device and computer storage medium
JP2006279188A (en) Transmission controller conducting priority control, communication controller, communication system, communication network and transmission method
TWI689820B (en) Usb transmission system, usb device and host capable of usb transmission
CN111988674A (en) Multimedia data transmission method, device, equipment and storage medium
CN114051008B (en) System for reducing game service time delay of wireless network
CN103888629A (en) Device for carrying out voice compression/meeting exchange processing on PCM voice
CN116193000B (en) FPGA-based intelligent packet rapid forwarding system and forwarding method
CN111245744A (en) Message transmission control method and device
US8842696B1 (en) Guaranteed rate port scheduler
WO2023241037A1 (en) Message encapsulation method and device, storage medium, and electronic device
CN117579555A (en) Data transmission method, computing device and system
CN117041166A (en) Congestion control method and device, switch and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant