CN100417131C - Media transmission flow data transmitting method - Google Patents
Media transmission flow data transmitting method Download PDFInfo
- Publication number
- CN100417131C CN100417131C CNB2004100580696A CN200410058069A CN100417131C CN 100417131 C CN100417131 C CN 100417131C CN B2004100580696 A CNB2004100580696 A CN B2004100580696A CN 200410058069 A CN200410058069 A CN 200410058069A CN 100417131 C CN100417131 C CN 100417131C
- Authority
- CN
- China
- Prior art keywords
- packet
- forwarding
- protocol package
- message
- processing
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention discloses method for forwarding media transmission flow data. The present invention comprises three parallel processing progresses of a receiving, cache and message processing and distribution progress for media transmission flow, a transmission protocol packet analysis and processing progress and a data packet forwarding progress. The present invention is adopted to provide the method, and the receiving, the processing and the forwarding of the media transmission flow data are carried out in parallel. The method has high efficiency, and simultaneously realizes the flow diversion parallel processing on a video and audio media packet with multiple sources and the relevant transmission protocol packet in the media transmission flow. The two data packets are independently processed, and are contacted only through a transmission table, which avoids blocking the rapid transmission of the video and audio media packet caused by the transmission protocol packet with low analysis and processing real-time requirements and leading large time delay and dithering. In addition, the video and audio media packet with multiple sources is introduced with priority concept, which enables the video and audio media packet with multiple sources to be divided by different priorities and transmitted according to the priority order, and thus, the transmission flexibility of the media transmission flow is strengthened.
Description
Technical field
The present invention relates to the multi-medium data communication field, particularly a kind of media transport stream processing method of data.
Background technology
In the multi-medium data communication field, there are many media transport stream data transfer equipments, such as equipment such as streaming media server, exchange of media machines.They mainly are responsible for and will specify the audio frequency media bag of looking of information source to be transmitted to the terminal that all need watch these medium, the i.e. stay of two nights in the media transport stream.
Media transport stream (as RTP/RTCP stream etc.) be a kind of transport stream that multiple source is looked audio frequency media bag and associated transport protocol package of carrying, wherein multiple source is looked the audio frequency media bag and is taken main bandwidth, the real-time of transmitting and handling requires very high, but handle simple relatively, do not need to analyse in depth the particular content of medium bag, only need search and transmit, revise the purpose sign of medium bag and transmit output then according to the correlated identities of medium bag; The associated transport protocol package is mainly carried information source configuration information, information source medium map information and the medium of some media transport streams and is transmitted redirection information etc., these protocol package take bandwidth seldom, the real-time of transmitting and handling is less demanding, some is even with transmitting, but processing relative complex, need to analyse in depth the particular content of these protocol package, extract relevant information, and utilize these maintenances of information to transmit.
The usual method of media transport stream data forwarding is as shown in Figure 1: receiving media transport stream in real time from the network line at first, the current also untreated packet that receives is sent in the reception buffering area; Processing unit is at first judged this type of data packet take out a packet from receive buffering area after, if the associated transport protocol package, then analyses in depth the content of this protocol package, extracts relevant information, and utilizes these maintenances of information to transmit; If look the audio frequency media bag, then search and transmit according to the correlated identities in the medium bag, transmit the purpose sign of then revising the medium bag if desired and transmit output then; After this processing data packets was intact, processing unit took out next packet from receive buffering area, and adopts identical method to handle.
There are following two defectives in the method for above-mentioned media transport stream data forwarding:
1. what adopt is the mechanism of serial process.Work serials such as reception, processing and forwarding packet are carried out, and inefficiency has caused the bottleneck that medium are transmitted; Thereby and not by distinguishing the mode of looking audio frequency media bag and associated transport protocol package employing shunting parallel processing in the media transport stream, when real-time of analyzing and processing requires when not being very high associated transport protocol package, must cause receiving the forwarding that requires the real-time fast multiple source of transmitting to look the audio frequency media bag in the buffering area and stagnate, be unfavorable for the quick forwarding of medium bag; Because the holding time of associated transport protocol package analyzing and processing is long different with holding time, in the repeating process of media transport stream, will inevitably increase the time-delay and the shake of media transport stream in addition.
2. multiple source looks the notion that the audio frequency media bag does not have priority.Can't carry out priority to them according to the priority of medium bag transmits.When the low medium bag of forwarding priority, the forwarding that must cause receiving the high medium bag of buffering area medium priority is stagnated, and the medium bag that the medium bag that priority is high is low with respect to priority can't be realized preferentially transmitting fast, lacks flexibility.
Summary of the invention
Purpose of the present invention is exactly to propose a kind of efficient, quick, flexible and little media transport stream data forwarding method of delay jitter.
A kind of media transport stream data forwarding method comprises following three parallel treatment progress:
Media transport stream reception, buffer memory and processing messages distribution process comprise:
1.1 the receiving media transport stream, and it is sent into the reception buffer stores;
1.2 from receive buffering area, take out a packet, judge whether it is transmission protocol package;
1.3 after associated transport protocol package processing queue, get back to step 1.1 if then send processing messages;
1.4 otherwise judge it whether for looking the audio frequency media bag, if then according to medium bag sign inquiry transmit, transmit if desired then to send and forward the message in the corresponding medium bag forwarding queue, get back to step 1.1;
1.5 if this packet is not to look the audio frequency media bag or look the audio frequency media bag but do not need and transmit, get back to step 1.1 after then abandoning this packet;
Transmission protocol package analyzing and processing process comprises:
2.1 query transmission protocol package processing queue is if having message then take out;
2.2 find the transmission protocol package that receives correspondence in the buffering area according to message content, analyze the content of this protocol package, extract relevant information, and utilize these information to transmit in conjunction with user's configuring maintenance;
2.3 the sign inquiry according to transmission protocol package is transmitted, and transmits if desired then to send to forward the message in the corresponding transmission protocol package forwarding queue, gets back to step 2.1;
2.4 otherwise get back to step 2.1 after abandoning this transmission protocol package;
Packet is transmitted process, comprising:
3.1 inquiry medium bag forwarding queue and transmission protocol package forwarding queue are if having message then take out;
3.2 search and take out the packet that receives correspondence in the buffering area according to message content;
3.3 the correlated identities inquiry according to packet is transmitted, and revises the purpose sign of packet and transmits output.
In said method, can also divide into different priority and handle: in the step 1.4, transmit then priority according to this medium bag if desired and send and forward the message in the medium bag forwarding queue of corresponding priority looking the audio frequency media bag; In the above-mentioned packet forwarding process, the message in the high medium bag forwarding queue of first processing priority, the message in the low medium bag forwarding queue of reprocessing priority.
Adopt the present invention to propose method, the Data Receiving of media transport stream, processing and forwarding are parallel to be carried out, this method efficient height, realized that simultaneously multiple source is looked the shunting parallel processing of audio frequency media bag and associated transport protocol package in the media transport stream, make the processing of these two types of packets independently of one another, only get in touch, avoided because the less demanding transmission protocol package of analyzing and processing real-time causes hindering the quick forwarding of looking the audio frequency media bag and introduces bigger time-delay and shake by transmitting.In addition multiple source is looked the notion that the audio frequency media bag has been introduced priority, making multiple source look the audio frequency media bag can be shunted by different priority, carries out priority according to priority then and transmits, and has strengthened the flexibility that media transport stream is transmitted.
Description of drawings
Fig. 1 is the flow chart of media transport stream data forwarding method in the prior art;
Fig. 2 is media transport stream reception among the present invention, buffer memory and processing messages distribution flow figure;
Fig. 3 is a transmission protocol package analyzing and processing flow chart among the present invention;
Fig. 4 is the flow chart that packet is transmitted among the present invention;
Fig. 5 is the schematic diagram of the data forwarding method that proposes of the present invention;
Fig. 6 is a data flow schematic diagram in the network processing unit in the embodiments of the invention;
Fig. 7 is the schematic diagram of bag descriptor storehouse in the embodiments of the invention.
Embodiment
The present invention is described in further detail below in conjunction with drawings and Examples.
Fig. 1 had carried out explanation in background technology.
Fig. 2 is media transport stream reception among the present invention, buffer memory and processing messages distribution flow figure, as shown in Figure 2, comprises the following steps: 1, the receiving media transport stream, and it is sent into the reception buffer stores; 2, from receive buffering area, take out a packet, judge whether it is transmission protocol package; 3 get back to step 1 if then send processing messages after associated transport protocol package processing queue; 4 otherwise judge it whether for looking the audio frequency media bag, if then according to medium bag sign inquiry transmit, transmit if desired then to send and forward the message in the corresponding medium bag forwarding queue, get back to step 1.If 5 these packets are not to look the audio frequency media bag or look the audio frequency media bag but do not need and transmit, get back to step 1 after then abandoning this packet.
Fig. 3 is a transmission protocol package analyzing and processing flow chart among the present invention, as shown in Figure 3, comprising: 1, query transmission protocol package processing queue, if message arranged then take out; 2, find the transmission protocol package that receives correspondence in the buffering area according to message content, analyze the content of this protocol package, extract relevant information, and utilize these information to transmit in conjunction with user's configuring maintenance; 3, transmit according to the sign inquiry of transmission protocol package, forwarding then sends and forwards the message in the corresponding transmission protocol package forwarding queue if desired, gets back to step 1; 4 otherwise get back to step 1 after abandoning this transmission protocol package.
Fig. 4 is the flow chart that packet is transmitted among the present invention, as shown in Figure 4, comprising: 1, inquiry medium bag forwarding queue and transmission protocol package forwarding queue, if message arranged then take out; 2, search and take out the packet that receives correspondence in the buffering area according to message content; 3, transmit according to the correlated identities inquiry of packet, revise the purpose sign of packet and transmit output.
Fig. 5 is the schematic diagram of the data forwarding method that proposes of the present invention, and as shown in Figure 5, the data forwarding method that the present invention proposes comprises: 1, the input medium transport stream enters processing unit 1, this unit reception, buffer memory, analysis packet and processing messages distribution.If transmission protocol package then sends processing messages to the transmission protocol package processing queue.If the medium bag is then transmitted according to its correlated identities inquiry, when needs are transmitted, then forward the message in the medium bag forwarding queue of corresponding priority, otherwise abandon this medium bag according to its forwarding priority transmission; 2, processing unit 2 query transmission protocol package processing queue, if message arranged then take out, find according to message content and to receive transmission protocol package corresponding in the buffering area, analyze the content of this protocol package, extract relevant information, and utilize these information to transmit in conjunction with user's configuring maintenance.Sign inquiry according to transmission protocol package is transmitted, and transmits if desired then to send to forward the message in the corresponding transmission protocol package forwarding queue; 3, processing unit 3 inquiry medium bag forwarding queue and transmission protocol package forwarding queues, if message arranged then take out, search and take out the packet that receives correspondence in the buffering area according to message content, transmit according to the correlated identities inquiry of packet, the purpose of revising packet identifies also to transmit to be exported.
Further specify detailed realization of the present invention below in conjunction with a specific embodiment.
Network processing unit is the integrated integrated data processing device of a kind of height, and it provides the high performance parallel disposal ability, is widely used in the diverse network communication.Sort processor has a common characteristic: inside all has the parallel processing framework of general processor+a plurality of forwarding engines (a plurality of hardware threads are arranged again in each forwarding engine), the general processor computing capability is very strong, the I/O disposal ability of forwarding engine is very strong, has powerful packet handling capacity, can realize the I/O capability of gigabit, but computing capability a little less than.
By top analysis as seen: the construction characteristic of network processing unit inside is fit to be applied to realize method described in the invention very much.We can allow general processor be responsible for control plane, handle the less demanding transmission protocol package of real-time, and maintenance is transmitted; Forwarding engine is responsible for transmitting according to medium the medium bag is transmitted fast.Based on above analysis, can be with mobile be divided into two paths of media transport stream in network processing unit, as shown in Figure 6, be fast passage (fast path) and slow channel (slowpath), the processing procedure of multiple source looks audio frequency media bag and associated transport protocol package that this two paths is corresponding respectively.Usually, the connection object on the fast passage is the medium bags, and data volume is big, arrives the frequency height, but handles simple; And the connection object on the slow channel mainly is a protocol package, arrives the low but treating capacity big (amount of calculation is big) of frequency.So the processing unit on fast passage is usually by a plurality of simple forwarding engine Parallel Implementation, and the processing unit on the slow channel is realized by the general processor with powerful calculating ability usually.
Specifically describe processor Network Based below and realize the step of method described in the invention:
1, introduces the notion of bag descriptor, create and initialization bag descriptor storehouse.As shown in Figure 7, the storehouse initial condition is for pressing full many available idle packet descriptor resources, these bag descriptors manage by the mode of single-track link table, each bag descriptor is corresponding with storage area in the packet pool, in the medium repeating process, the medium bag of each forwarding is corresponding with one of them bag descriptor, bag descriptor resource how much determined the medium bag number that the media transport stream forwarding unit at most can buffer memory in repeating process.Adopt the benefit of this mode to be: when distributing at the medium bag of transmitting and discharging resource, can be undertaken by the mode of bag descriptor discrepancy chained list simply, can distribute quickly and efficiently and managing memory source; Storage area in the packet pool that each bag descriptor of initialization points to; The communication mailbox of establishment and initialization forwarding engine cross-thread; The medium bag forwarding queue of establishment and a plurality of different priorities of initialization; Create transmission protocol package processing queue and forwarding queue.
2, forwarding engine is divided into input micro engine and output micro engine according to finishing of task, distribute a plurality of micro engine thread process circuit inputs, input micro engine thread carries out robin scheduling in line with the principle of load sharing, scheduling is carried out automatically by the mode of transmitting token at cross-thread, after an input micro engine thread process is intact, give next input micro engine thread with token, start its work.Distribute a plurality of micro engine thread process circuit outputs, one of them output micro engine thread is as the scheduling thread of other output micro engine thread, scheduling thread is responsible for according to priority inquiry medium bag forwarding queue, when having the medium bag to transmit in the formation, distribute idle output micro engine thread that this medium bag is transmitted output by it.Adopting these machine-processed benefits is the many forwarding engines framework and the parallel processing capabilities that can make full use of network processing unit, improves the forwarding speed of medium bag.
3, each input micro engine thread once can only the process circuit input maximum 64 byte fragments (we are referred to as a MPKT) of packet, when certain input micro engine thread when circuit receives first MPKT of a packet, it is from be hit by a bullet out the bag descriptor of a free time of bag descriptor resource storehouse, with this descriptor the packet that this begins to receive is described, this descriptor points to the storage area of a free time in the packet pool, this MPKT is moved from input FIFO in the bag descriptor packet pool zone pointed, the next storage offset address of MPKT in packet pool that will receive of record, send initiation message and (comprise this offset address parameter in the message, this initiation message is a token) to the next micro engine thread that will be scheduled, start its work, when the micro engine thread that this is scheduled is received a MPKT from circuit after, from importing the storage offset address of moving among the FIFO in the packet pool, and then the MPKT of a last reception of this packet deposits with this MPKT.The rest may be inferred up to packet by complete reception and move in the packet pool.The micro engine thread of last MPKT of receiving media bag sends a message in the different processing queue according to the type of this packet, the content of message is the memory address of this bag descriptor and some information relevant with bag: if the associated transport protocol package, then send a message in the associated transport protocol package processing queue, by this transmission protocol package of general processor analyzing and processing, information extraction and maintenance are transmitted, and transmit by the general processor inquiry, send a message to the transmission protocol package forwarding queue if this protocol package need be transmitted; If the medium bag is transmitted according to its sign inquiry, transmit if desired, then the priority according to the medium bag sends a message in the medium bag forwarding queue of corresponding priority.
4, the medium bag forwarding queue and the transmission protocol package forwarding queue of output micro engine scheduling thread inquiry different priorities, it should be noted that, when the medium bag forwarding queue of inquiry different priorities, message in the high medium bag forwarding queue of elder generation's processing priority, the message in the low medium bag forwarding queue of reprocessing priority.When packets need was transmitted, the output micro engine thread to the free time sent message, starts it this packet is transmitted output, and each output micro engine thread once is responsible for MPKT of output at most.Output micro engine thread is transmitted in conjunction with other correlated identities information inquiry in the bag descriptor according to the memory address of packet in Buffer Pool, revises the purpose sign of packet, transmits output then.
Embodiments of the invention make full use of the inside structure characteristics of network processing unit, realize the quick forwarding of medium bag, can be widely used in the multi-medium data communication field,, greatly improve the performance of these equipment such as equipment such as streaming media server, medium passing fire wall switches.
Claims (2)
1. a media transport stream data forwarding method is characterized in that, comprises following three parallel treatment progress:
Media transport stream reception, buffer memory and processing messages distribution process comprise:
1.1 the receiving media transport stream, and it is sent into the reception buffer stores;
1.2 from receive buffering area, take out a packet, judge whether it is transmission protocol package;
1.3 after associated transport protocol package processing queue, get back to step 1.1 if then send processing messages;
1.4 otherwise judge it whether for looking the audio frequency media bag, if then according to medium bag sign inquiry transmit, transmit if desired then to send and forward the message in the corresponding medium bag forwarding queue, get back to step 1.1;
1.5 if this packet is not to look the audio frequency media bag or look the audio frequency media bag but do not need and transmit, get back to step 1.1 after then abandoning this packet;
Transmission protocol package analyzing and processing process comprises:
2.1 query transmission protocol package processing queue is if having message then take out;
2.2 find the transmission protocol package that receives correspondence in the buffering area according to message content, analyze the content of this protocol package, extract relevant information, and utilize these information to transmit in conjunction with user's configuring maintenance;
2.3 the sign inquiry according to transmission protocol package is transmitted, and transmits if desired then to send to forward the message in the corresponding transmission protocol package forwarding queue, gets back to step 2.1;
2.4 otherwise get back to step 2.1 after abandoning this transmission protocol package;
Packet is transmitted process, comprising:
3.1 inquiry medium bag forwarding queue and transmission protocol package forwarding queue are if having message then take out;
3.2 search and take out the packet that receives correspondence in the buffering area according to message content;
3.3 the correlated identities inquiry according to packet is transmitted, and revises the purpose sign of packet and transmits output, gets back to step 3.1.
2. media transport stream data forwarding method according to claim 1, it is characterized in that: will look the audio frequency media bag and divide into different priority, in the described step 1.4, forwarding then forwards the message in the medium bag forwarding queue of corresponding priority according to the priority transmission of this medium bag if desired; In the described packet forwarding process, the message in the high medium bag forwarding queue of first processing priority, the message in the low medium bag forwarding queue of reprocessing priority.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100580696A CN100417131C (en) | 2004-08-11 | 2004-08-11 | Media transmission flow data transmitting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100580696A CN100417131C (en) | 2004-08-11 | 2004-08-11 | Media transmission flow data transmitting method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1735068A CN1735068A (en) | 2006-02-15 |
CN100417131C true CN100417131C (en) | 2008-09-03 |
Family
ID=36077269
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100580696A Expired - Fee Related CN100417131C (en) | 2004-08-11 | 2004-08-11 | Media transmission flow data transmitting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100417131C (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100438442C (en) * | 2006-04-25 | 2008-11-26 | 中国移动通信集团公司 | Media stream shunting system and media stream shunting method |
CN101997758A (en) * | 2009-08-11 | 2011-03-30 | 中兴通讯股份有限公司 | Forwarding device and method |
CN102495764A (en) * | 2011-12-06 | 2012-06-13 | 曙光信息产业股份有限公司 | Method and device for realizing data distribution |
CN103036788A (en) * | 2012-12-14 | 2013-04-10 | 上海斐讯数据通信技术有限公司 | Implementation method of multi-interface gateway equipment data transmitting |
CN109547357A (en) * | 2018-12-03 | 2019-03-29 | 郑州云海信息技术有限公司 | Transmission method, device, equipment and the medium of data information in a kind of storage system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1402492A (en) * | 2002-09-29 | 2003-03-12 | 清华大学 | Method for implementing stream medium transmission based on real time transmission protocol and transmission control protocol |
CN1416244A (en) * | 2001-10-31 | 2003-05-07 | 三星电子株式会社 | System and method of network self adaption real time multimedia flow transfer way |
WO2003090101A1 (en) * | 2002-04-19 | 2003-10-30 | Midstream Technologies, Inc. | Optimized digital media delivery engine |
CN1468001A (en) * | 2002-06-27 | 2004-01-14 | 上海汉唐科技有限公司 | Media flow self-adapting transmission method based on internet |
-
2004
- 2004-08-11 CN CNB2004100580696A patent/CN100417131C/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1416244A (en) * | 2001-10-31 | 2003-05-07 | 三星电子株式会社 | System and method of network self adaption real time multimedia flow transfer way |
WO2003090101A1 (en) * | 2002-04-19 | 2003-10-30 | Midstream Technologies, Inc. | Optimized digital media delivery engine |
CN1468001A (en) * | 2002-06-27 | 2004-01-14 | 上海汉唐科技有限公司 | Media flow self-adapting transmission method based on internet |
CN1402492A (en) * | 2002-09-29 | 2003-03-12 | 清华大学 | Method for implementing stream medium transmission based on real time transmission protocol and transmission control protocol |
Also Published As
Publication number | Publication date |
---|---|
CN1735068A (en) | 2006-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6980552B1 (en) | Pipelined packet switching and queuing architecture | |
Oueslati et al. | Flow-aware traffic control for a content-centric network | |
CN113728315A (en) | System and method for facilitating efficient message matching in a Network Interface Controller (NIC) | |
US9864633B2 (en) | Network processor having multicasting protocol | |
EP2208322B1 (en) | A grid router | |
US20060242313A1 (en) | Network content processor including packet engine | |
US20030037154A1 (en) | Protocol processor | |
US6392996B1 (en) | Method and apparatus for frame peeking | |
US8949578B2 (en) | Sharing of internal pipeline resources of a network processor with external devices | |
EP1806870B1 (en) | Method for providing data and data transmission system | |
CN103685058B (en) | Method for controlling QoS (Quality of Service) of stream data, and OpenFlow controller | |
CN102811176A (en) | Data traffic control method and device | |
CN100417131C (en) | Media transmission flow data transmitting method | |
US8031682B2 (en) | Apparatus and method for aggregating and switching traffic in subscriber network | |
US10581759B1 (en) | Sharing packet processing resources | |
JP2000083055A (en) | Router | |
US20040071144A1 (en) | Method and system for distributed single-stage scheduling | |
CN113422741B (en) | Time-triggered Ethernet switch structure | |
TWI248269B (en) | A method and apparatus for sharing connection state information between multiple processing elements | |
CN116346953B (en) | Acceleration method and device for real-time data transmission | |
US11805066B1 (en) | Efficient scheduling using adaptive packing mechanism for network apparatuses | |
US8842696B1 (en) | Guaranteed rate port scheduler | |
Li et al. | A content store-based module for congestion control algorithms of named data networking | |
Mabayoje et al. | An efficient fair queuing model for data communication networks | |
Soudani et al. | Efficient scheme for congestion control in network-on-chip with QoS consideration |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080903 Termination date: 20170811 |
|
CF01 | Termination of patent right due to non-payment of annual fee |