CN107493242A - A kind of data message forwarding method, data forwarding device and communication system - Google Patents
A kind of data message forwarding method, data forwarding device and communication system Download PDFInfo
- Publication number
- CN107493242A CN107493242A CN201610410802.9A CN201610410802A CN107493242A CN 107493242 A CN107493242 A CN 107493242A CN 201610410802 A CN201610410802 A CN 201610410802A CN 107493242 A CN107493242 A CN 107493242A
- Authority
- CN
- China
- Prior art keywords
- data message
- rtp
- parameter
- terminal
- next stage
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/28—Flow control; Congestion control in relation to timing considerations
- H04L47/283—Flow control; Congestion control in relation to timing considerations in response to processing delays, e.g. caused by jitter or round trip time [RTT]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/56—Queue scheduling implementing delay-aware scheduling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/65—Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a kind of data message forwarding method, data forwarding device and communication system, this method includes:Receive the first data message;The first RTP parameters in the first data message are extracted, call the 2nd RTP parameters of the first data message;First RTP parameters are revised as the 2nd RTP parameters, generate the second data message;Wherein the first RTP parameters come from upper level terminal, and the 2nd RTP parameters come from next stage terminal;Second data message is sent to next stage terminal.Pass through the implementation of the embodiment of the present invention, when the RTP parameters of upper level terminal differ with the RTP parameters of next stage terminal in data message, directly it is revised as the RTP parameters of next stage terminal, and send to next stage terminal, in this process, anti-jitter buffer queue is needed not move through, the stand-by period of buffer queue is eliminated, alleviates the problem of time delay is excessive to a certain extent.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of data message forwarding method, data forwarding device and communication system
System.
Background technology
In the field of communications, data message is in IP (Internet Protocol, internet protocol) network transmission, meeting
There is the problems such as out of order, time delay, shake.In order to solve the above problems, prior art provides RTP (Real-Time
Transport Protocol, RTP) anti-jitter buffer queue ensures transmission quality, RTP anti-jitter queues move
Operation principle is first to be cached to anti-jitter queue, then regularly goes out team, by cache eliminate IP network transmission introduce it is out of order,
The problems such as time delay, shake.As shown in figure 1, Fig. 1 shows the structure of rtp stack, including DATA business data processings module,
Real-time Transport Protocol layer, UDP (User Datagram Protocol, UDP) protocol layers and IPV4/IPV6
(Internet Protocol Version 4/Internet Protocol Version 6, Internet protocol the 4th edition/the 6th
Version) the several parts of protocol layer, the queue of RTP anti-jitters is located at Real-time Transport Protocol layer.
In actual applications, data message is by transmission node or MGW (Media GateWay, media nets such as routers
Close) etc. processing node when, be required for ensureing transmission quality by Queue module, particularly RTP anti-jitters buffer queue, but
It is, if a transmission session passes through multiple IP (Internet Protocol, Internet protocol) network, by multiple
Queue module and anti-jitter caching process, can introduce multiple processing delay, and during real-time Communication for Power, propagation delay time is too big
User's impression can be reduced, reduces transmission quality end to end on the contrary.As shown in Fig. 2 Fig. 2 shows datagram in the prior art
Text will often carry out the schematic diagram of an anti-jitter caching by a forward node;Real time data passes through three operator's nets
Network, 3 anti-jitter caching process can be passed through, introduce 3 processing delay.
In view of the above-mentioned problems, proposing a kind of data message forwarding method, saved with alleviating available data message in all transmission
Point be required for by time delay caused by anti-jitter buffer queue it is excessive the problem of.
The content of the invention
The embodiments of the invention provide a kind of data message forwarding method, data forwarding device and communication system, to alleviate
Available data message is required for the problem of excessive by time delay caused by anti-jitter buffer queue in all transmission nodes.
The embodiments of the invention provide a kind of data message forwarding method, and it includes:
Receive the first data message;
The first RTP parameter in the first data message is extracted, calls the second of the first data message to pass in real time
Defeated protocol parameter;First RTP parameter is revised as the second RTP parameter, generates the second data message;
Wherein the first RTP parameter comes from upper level terminal, and the second RTP parameter comes from next stage end
End;
Second data message is sent to next stage terminal.
The embodiments of the invention provide a kind of data forwarding device, including:
Receiving module, for receiving the first data message;
Processing module, for extracting the first RTP parameter in the first data message, call the first datagram
Second RTP parameter of text;First RTP parameter in first data message is revised as into second to pass in real time
Defeated protocol parameter, generate the second data message;Wherein the first RTP parameter comes from upper level terminal, and second is real-time
Transport protocol parameters come from next stage terminal;
Sending module, for the second data message to be sent to next stage terminal.
The embodiments of the invention provide a kind of communication system, and it includes at least one data provided in an embodiment of the present invention and turned
Transmitting apparatus.
The embodiments of the invention provide a kind of computer-readable storage medium, computer is stored with computer-readable storage medium to be held
Row instruction, computer executable instructions are used to perform foregoing data message forwarding method.
The beneficial effect of the embodiment of the present invention:
The embodiments of the invention provide a kind of data message forwarding method, after message is received, if in data message
It is when the RTP parameters of the RTP parameters of one-level terminal and the next stage terminal of data message differ, upper level in data message is whole
The RTP parameters at end are revised as the RTP parameters of next stage terminal, and amended data message is sent to next stage terminal, at this
During individual, it is not necessary to by anti-jitter buffer queue, with prior art " data message all transmission nodes be required for by
The mode of anti-jitter buffer queue " is compared, and eliminates the stand-by period of buffer queue, and it is excessive to alleviate time delay to a certain extent
The problem of, enhance the usage experience of user.
Brief description of the drawings
Fig. 1 is rtp stack and RTP anti-jitters processing schematic diagram;
Fig. 2 is to introduce multiple anti-jitter processing delay schematic diagram by multiple forward node in the prior art;
Fig. 3 is the structural representation for the data message forwarding device that first embodiment of the invention provides;
Fig. 4 is the flow chart for the data message forwarding method that second embodiment of the invention provides;
Fig. 5 is a kind of schematic diagram for the head-end site that third embodiment of the invention provides;
Fig. 6 is the flow chart for the data message forwarding method that sixth embodiment of the invention provides;
Fig. 7 is the schematic diagram for the communication system that sixth embodiment of the invention provides;
Fig. 8 is the data flow schematic diagram that third embodiment of the invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment in the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Further annotation explanation is now made to the embodiment of the present invention by way of embodiment combination accompanying drawing.
First embodiment:
Fig. 3 is the structural representation for the data message forwarding device that first embodiment of the invention provides, from the figure 3, it may be seen that this
The data message forwarding device that embodiment provides includes:
Receiving module 11, for receiving the first data message;
Processing module 12, for extracting the first RTP parameters in the first data message, call the 2nd RTP of data message
Parameter;First RTP parameters in data message are revised as the 2nd RTP parameters, generate the second data message;Wherein the first RTP joins
Number comes from upper level terminal, and the 2nd RTP parameters come from next stage terminal;
Sending module 13, for the second data message to be sent to next stage terminal.
In actual applications, communication system as shown in Figure 7, the first data message are sent to terminal B from terminal A, successively
Forwarded by node 1, node 2, node 3 and node 4, in this transmission path, terminal B is the mesh of the first data message
Terminal, node 1, node 2, node 3 are intermediate forwarding nodes, and node 4 is the end forward node of this transmission path, section
Point 1, node 2, node 3 can perform the scheme of directly modification RTP parameter transparent transmissions provided in an embodiment of the present invention, and node 4 is then
It can not perform, it is necessary to by anti-jitter buffer queue, to eliminate the problems such as IP network transmits the out of order of introducing, time delay, shake.Pin
For node 2, its upper level terminal is node 1, next stage terminal is node 3, for node 3, its upper level terminal
It is node 4 for node 2, next stage terminal.
In certain embodiments, the processing module 12 in above-described embodiment is by the first RTP parameters in the first data message
It is revised as before the 2nd RTP parameters, is additionally operable to carry out IP agreement and UDP dissection process to the first data message;After it will change
The second data message send to before next stage terminal, be additionally operable to completing the first RTP parameters in data message being revised as
The data messages of 2nd RTP parameters carries out IP agreement and UDP encapsulate and recalculate the IP heads verification of the first data message with.
In certain embodiments, the processing module 12 in above-described embodiment is used to call forwarding entry table, according to the first number
Tabled look-up according to the IP address in message, udp port and the first RTP parameters in forwarding entry table, obtain corresponding forwarding entry
IP address, udp port and the RTP parameters of secondary terminal;By the IP address in data message, udp port and the first RTP parameters,
IP address, udp port and the 2nd RTP parameters of the next stage terminal of forwarding entry are respectively modified as, and recalculates the first number
According to message IP heads verification and.
In certain embodiments, the data message forwarding device in above-described embodiment also includes judge module, for carrying
Take and before the first RTP parameters, judge whether the next stage terminal of the first data message is the first datagram in the first data message
The target terminal of text, if so, then caching the first data message to anti-jitter buffer queue, if it is not, then extracting the first data
First RTP parameters in message.
In certain embodiments, the judge module in above-described embodiment is additionally operable to obtain the encoding and decoding that upper level terminal uses
The encoding and decoding protocol parameter that protocol parameter and next stage terminal use;Judge encoding and decoding protocol parameter that upper level terminal uses with
Whether the encoding and decoding protocol parameter that next stage terminal uses is identical, if so, the first RTP parameters in the first data message are then extracted,
If it is not, then the first data message is cached to anti-jitter buffer queue.
In actual applications, receiving module, processing module, judge module and the sending module that the present embodiment is related to can
Realized by processor chips and all circuits and device that possess processor chips function.
Second embodiment:
Fig. 4 is the flow chart for the data message forwarding method that second embodiment of the invention provides, as shown in Figure 4, this implementation
The data message forwarding method that example provides includes:
S201:Receive the first data message;
S202:The first RTP parameters in the first data message are extracted, call the 2nd RTP parameters of the first data message;By
The first RTP parameters are revised as the 2nd RTP parameters in one data message, generate the second data message;Wherein the first RTP parameters come from
In upper level terminal, the 2nd RTP parameters come from next stage terminal;
S203:Second data message is sent to next stage terminal.
In certain embodiments, the method in above-described embodiment is revised as by the first RTP parameters in the first data message
Before 2nd RTP parameters, in addition to:Judge whether the first RTP parameters and the 2nd RTP parameters are identical, if differing, by first
RTP parameters are revised as the 2nd RTP parameters, if identical, directly send the first data message to next stage terminal.
In certain embodiments, the method in above-described embodiment is joined by the first RTP in the first data message
Number is revised as before the second RTP parameter, in addition to:First data message is carried out at IP agreement and udp protocol
Reason;By after the first RTP parameter is revised as the second RTP parameter in the first data message, also wrap
Include:To completing the first RTP parameter in the first data message being revised as the first of the second RTP parameter
Data message, IP agreement and UDP encapsulation are carried out, generates the second data message.
In certain embodiments, the first RTP parameters in the first data message are revised as the 2nd RTP in above-described embodiment
Parameter includes:Forwarding entry table is called, IP address, udp port and the first RTP parameters in the first data message are forwarding
Table of articles is tabled look-up, and obtains IP address, udp port and the 2nd RTP parameters of the secondary terminal of corresponding forwarding entry;By data
IP address, udp port and the first RTP parameters in message, be respectively modified as the next stage terminal of forwarding entry IP address,
Udp port and the first RTP parameters and recalculate the first data message IP heads verification and.
In certain embodiments, the method in above-described embodiment also includes:Obtain the parameter letter of at least one forwarding entry
Breath, parameter information include source address information and destination address information, source address information and destination in forwarding entry respective path
Location information includes IP address, udp port and RTP parameters;The parameter information of at least one forwarding entry is added to forwarding entry
Table.
In certain embodiments, the method in above-described embodiment is before the first RTP parameters in extracting the first data message,
Also include:Judge the first data message next stage terminal whether be the first data message target terminal, if so, then by first
Data message is cached to anti-jitter buffer queue, if it is not, then extracting the first RTP parameters in the first data message.
In certain embodiments, the method in above-described embodiment is before judging whether next stage terminal is target terminal,
Also include:The encoding and decoding protocol parameter that the encoding and decoding protocol parameter and next stage terminal that acquisition upper level terminal uses use;Sentence
Whether the encoding and decoding protocol parameter that disconnected upper level terminal uses and the encoding and decoding protocol parameter that next stage terminal uses are identical, if
It is then to extract the first RTP parameters in the first data message, team is cached if it is not, then caching the first data message to anti-jitter
Row.
Or after next stage terminal is target terminal, in the first data message of extraction before the first RTP parameters, also
Including:The encoding and decoding protocol parameter that the encoding and decoding protocol parameter and next stage terminal that acquisition upper level terminal uses use;Judge
Whether the encoding and decoding protocol parameter that upper level terminal uses and the encoding and decoding protocol parameter that next stage terminal uses are identical, if so,
The first RTP parameters in the first data message are then extracted, if it is not, then caching the first data message to anti-jitter buffer queue.
3rd embodiment:
As shown in figure 5, in the present embodiment, head-end site provided by the invention includes:At control module 31, media
Module 32 is managed, medium process module 32 includes RTP processing modules, and RTP processing modules include RTP parameter adapting modules;Wherein,
Medium process module 32 is used to receive the first data message from upper level terminal;
Control module 31 is used to obtain the message parameter of the first data message and analyzed, and determines first in data message
RTP parameters and the 2nd RTP parameters, and the first RTP parameters and the 2nd RTP parameters are sent to RTP parameter adapting modules;Wherein
One RTP parameters come from upper level terminal, and the 2nd RTP parameters come from next stage terminal;
RTP parameter adapting modules are used to the first RTP parameters in data message being revised as the 2nd RTP parameters, generation second
Data message;
Medium process module 32 is additionally operable to send the second data message to next stage terminal.
In certain embodiments, the control module 31 in above-described embodiment is by the first RTP parameters in the first data message
It is revised as before the 2nd RTP parameters, is additionally operable to judge whether the first RTP parameters and the 2nd RTP parameters are identical, if differing,
First RTP parameters and the 2nd RTP parameters are sent to RTP parameter adapting modules, if identical, control medium process module is by the
After one data message carries out IP address and udp port modification, send to next stage terminal.
In certain embodiments, the control module 31 in above-described embodiment is used to call forwarding entry table, according to the first number
Tabled look-up according to the IP address in message, udp port and the first RTP parameters in forwarding entry table, obtain corresponding forwarding entry
IP address, udp port and the 2nd RTP parameters of secondary terminal;By the IP address of the secondary terminal of corresponding forwarding entry, UDP ends
The IP heads of mouth and the 2nd RTP parameters and the data message for recalculating to obtain are verified and sent to RTP parameter adapting modules.
In certain embodiments, the control module 31 in above-described embodiment is additionally operable to obtain the ginseng of at least one forwarding entry
Number information, parameter information include source address information and destination address information, source address information and mesh in forwarding entry respective path
Address information include IP address, udp port and RTP parameters;The parameter information of at least one forwarding entry is added to forwarding
Table of articles.
In actual applications, the content of forwarding entry table can be with as shown in table 1 below:
Table 1
Forwarding entry | Source address information | Destination address information |
Forwarding entry 1 | IP1/UDP1/PT1 | IP2/UDP2/PT2 |
Forwarding entry 2 | IP3/UDP3/PT3 | IP4/UDP4/PT4 |
…… | …… | …… |
Forwarding entry n | IP2n-1/UDP2n-1/PT2n-1 | IP2n/UD P2n/PT2n |
In certain embodiments, the RTP processing modules in above-described embodiment include anti-jitter buffer queue;Control module exists
Extract and before the first RTP parameters, be additionally operable to whether the next stage terminal for judging data message is the first number in the first data message
According to the target terminal of message, if so, then control RTP processing modules cache the first data message to anti-jitter buffer queue, if
It is not then to obtain the first RTP parameters in the first data message.
In certain embodiments, the control module 31 in above-described embodiment is judging whether next stage terminal is target terminal
Before, or, after next stage terminal is target terminal, in extraction data message before the first RTP parameters, it is additionally operable to obtain
The encoding and decoding protocol parameter that the encoding and decoding protocol parameter and next stage terminal that upper level terminal uses use;Judge upper level terminal
Whether the encoding and decoding protocol parameter used and the encoding and decoding protocol parameter that next stage terminal uses are identical, if so, then obtaining first
First RTP parameters in data message, cached if it is not, then controlling RTP processing modules to cache the first data message to anti-jitter
Queue.
Corresponding, the invention provides a kind of communication system, and it includes code stream provided by the invention and distorts supervising device.
Further annotation explanation is done to the present invention in conjunction with concrete application scene.
End-to-end transmission delay is to weigh a key factor of network transmission quality, current optimization network transmission quality
Mode mainly has following two:
TrFO (Transcoder Free Operation, encode/decode-free technology), in session establishment phase, consults road
Each section all uses identical encoding and decoding on footpath, can be when saving encoding and decoding conversion on the path that whole session is passed through is brought
Prolong.But this mode belongs to the solution of business data processing aspect, on RTP layer protocol stacks, RTP is not reduced
The anti-jitter caching process of aspect.
NAT (the Network Address Translator) pass-through mode mapped by IP address+UDP port number.
After the UDP port number and the modification of IP address information that receive message, directly transmit, avoid queuing and anti-jitter caching process, from
And reduce time delay.But the solution that this mode belongs to below RTP aspects, adopted for the data of (RTP+DATA) part
The means of former state transparent transmission, if between heterogeneous networks RTP layer protocols parameter it is variant and can not direct transparent transmission when, can not
In this way.
For in the prior art, it is impossible to solve that operation layer codec parameters are identical but RTP layer protocol parameters are variant, resist
Jitter cache introduces delay problem, and the embodiments of the invention provide the method for solution, this method is handled in RTP layers.
The embodiment of the present invention provides following technical scheme:As the forward process node of data, when operation layer encoding and decoding are joined
Number it is identical, but receive data Real-time Transport Protocol with reference in PT (payload type, payload type) parameters with it is to be sent
During RTP PT parameter differences, the processing of subordinate protocol stack is sent to after RTP PT modified modules directly change PT values, without
The anti-jitter queue processing of rtp stack, reach the purpose for reducing processing delay.
The present embodiment uses forward process node as shown in Figure 5, wherein, control module 31:Obtain and receive data, send
Data relevant parameter, judge the processing mode of medium process module, control the processing logic of medium process module;Media handling mould
Block 32:The module of media message is handled, comprising:IP Process Module, IP protocol stack;UDP processing modules, udp protocol stack;At RTP
Manage module, rtp stack, anti-jitter queue and the PT modified modules newly increased;Business data processing module, processing business
Data.
The embodiment of the present invention provides a kind of method of data message forwarding, can effectively reduce RTP message transmissions time delays;
Fig. 8 is refer to, shows the data flow of the present invention;The method of the present embodiment comprises the following steps:
Step 1, control module consult parameter with both ends access control layer, if the encoding and decoding that both ends access uses are related
All, but PT values are different for parameter, then meet the use condition of the present invention, judge the data of this session in RTP layer protocols
Stack is directly handled by PT modified modules.
Step 2, control module notice RTP PT modified modules, meet that the PT values of the session both ends access data of condition are each
What is.
Step 3, after receiving data, by IP protocol stack, the processing of udp protocol stack, the message of session is specified in RTP PT
It is later direct to subordinate protocol stack, encapsulation UDP heads and IP heads when new RTP heads+DATA is sent after modified module renewal PT values
Send.
The present embodiment reduces the processing of rtp stack moderate resistance jitter cache, reduced on the premise of preparatory condition is met
The processing delay of data.
In actual applications, implementation of the invention can be divided into two stages:Stage one, control module access according to both ends
Whether parameter decision, session meet directly to change PT conditions;Stage two, medium process module are entered according to control module result of determination
Row data Message processing.
Different embodiment needs the node that participates in also different, describes embodiments of the invention below in conjunction with the accompanying drawings, needs
It should be noted that, there is provided following preferred embodiment, to provide comprehensive and thorough understanding to the present invention, rather than to the present invention
Carry out any restrictions.
Fourth embodiment:
It can accomplish to be handled according to design parameter differentiation during session establishment using the present embodiment, coordinate as follows
Complete present invention:
Step 1, in session establishment phase, control parameter negotiations process, control module obtains the encoding and decoding ginseng of incoming end 1
Number, RTP PT parameters.
Step 2, in session establishment phase, control parameter negotiations process, control module obtains the encoding and decoding ginseng of incoming end 2
Number, RTP PT parameters.
Step 3, session establishment phase, control module comprehensive analysis incoming end 1, the codec parameters of incoming end 2, RTP PT
Parameter.Indicate that medium surface processing module to the processing mode of this session, can be divided into following three:
If codec parameters are different, this instruction medium surface processing module carries out encoding and decoding conversion work;
If codec parameters are identical, RTP PT parameters are identical, it indicates that medium surface processing module according to existing IP address+
The NAT of UDP port number mapping scheme is handled;
If codec parameters are identical, RTP PT parameters are different, it indicates that medium surface processing module is according to side of the invention
Formula is handled.
Step 4, after session establishment, for the session using mode of the present invention, data message is received from incoming end 1, is passed through
After crossing IP, UDP processing, the PT values in RTP heads are modified as the PT that incoming end 2 needs by PT modified modules in RTP processing modules
Value, lower-layer protocols stack is then transferred to be sent to incoming end 2 after carrying out UDP, IP encapsulation;Similarly, datagram is received from incoming end 2
Text, the PT values in RTP heads are modified as the PT values that incoming end 1 needs by PT modified modules, after then being encapsulated by lower-layer protocols stack
It is sent to incoming end 1.
5th embodiment:
It can be accomplished according to parameter set in advance using the present embodiment, it is every to be equal on the basis of NAT forward tables
Individual forwarding entry increases RTP PT parameters, allows medium process module to match somebody with somebody as follows according to fixed processing rule process
Close and complete present invention.
Step 1, operating personnel arrange the relevant information of all incoming ends 1, are configured to the source address information of forwarding entry.
Step 2, operating personnel arrange the relevant information of all incoming ends 2, are configured to the destination address information of forwarding entry.
Step 3, it is synchronized to medium process module after the completion of the configuration of forwarding entry table.
Step 4, data message is received from receiving terminal 1, is looked into according to (IP address, udp port, RTP PT) three critical fielies
Forwarding entry table is ask, according to the result tabled look-up, rewrites transmission after message (IP address, udp port, RTP PT) three keywords
To receiving terminal 2.Similarly, the data message received from receiving terminal 2, (IP address, UDP ends are rewritten also according to inquiry forward table result
Mouthful, RTP PT) receiving terminal 1 is sent to after three keywords.
Sixth embodiment:
The present embodiment is mainly briefly described to the present invention, and the scene of application is communication system as shown in Figure 7, data
Message forwarding method is as shown in fig. 6, comprise the following steps:
S601:Judge whether it is intermediate forwarding nodes;If so, then performing step S602, otherwise, step S604 is performed;
For forward node 1-4, it judges whether next stage terminal is target terminal B respectively, if so, during then node is not
Between forward node, if it is not, then node is intermediate forwarding nodes.
Specifically, in the system shown in Fig. 7, node 1-3 is intermediate forwarding nodes, performs step S602, and node 4 is not
Intermediate forwarding nodes, perform step S604.
S602:Judge whether the encoding and decoding protocol parameter of two incoming ends is identical, if so, step S603 is then performed, if it is not, then
Perform step S604;
In the prior art, forward node in a transmission path, it is traditionally arranged to be and all uses identical encoding and decoding agreement
Parameter, and the encoding and decoding protocol parameter that the encoding and decoding protocol parameter that terminal A is used uses with the forward node in transmission path is
Different;So, on this basis, an incoming end of node 1 is terminal A, and another input is node 2, what terminal A was used
Encoding and decoding protocol parameter is different from the encoding and decoding protocol parameter that the forward node 2 in transmission path uses, therefore, for section
Point 1, perform step S604;And node 2 and 3 is directed to, two incoming end (being respectively node 1 and node 3, node 2 and node 4)
It is the forward node in transmission path, using identical encoding and decoding protocol parameter, therefore, for node 2 and 3, performs step
S603。
S603:PT values are changed, carry out transparent transmission;
Specifically, the step can include:IP agreement and udp protocol processing are carried out to data message;Change PT values;To complete
IP agreement and UDP encapsulation are carried out into the data message that the first RTP parameters in data message are revised as to the 2nd RTP parameters, is carried out
Transparent transmission.
The step can also include:Call forwarding entry table, IP address, udp port and first in data message
RTP parameters are tabled look-up in forwarding entry table, obtain IP address, the udp port and second of the secondary terminal of corresponding forwarding entry
RTP parameters;By the IP address in data message, udp port and the first RTP parameters, the next stage of forwarding entry is respectively modified as
IP address, udp port and the 2nd RTP parameters of terminal, and recalculate the verification of IP heads and the progress transparent transmission of data message.
S604:Cache to anti-jitter queue;
This step uses existing step, and data message is cached to anti-jitter queue, and solve that transmission introduces out of order etc. asks
After topic, complete data flow is formed, after then carrying out encoding and decoding processing, is sent to next stage terminal.
The embodiments of the invention provide a kind of data message forwarding method, after message is received, if in data message
When one RTP parameters and the 2nd RTP parameters of data message differ, the first RTP parameters in data message are revised as the 2nd RTP
Parameter, amended data message is sent to next stage terminal, in this process, it is not necessary to cache team by anti-jitter
Row, compared with the mode of prior art " data message is required for by anti-jitter buffer queue in all transmission nodes ", remove
The stand-by period of buffer queue, the problem of time delay is excessive is alleviated to a certain extent, enhances the usage experience of user.
Further, the embodiment of the present invention additionally provides the mode of modification RTP parameters, can be advanced as prior art
Row IP agreement and udp protocol processing, then perform the RTP parameters modification of the present invention, then perform IP agreement and udp protocol encapsulation,
It can also use and once carry out IP address, udp port and the modification of Real-time Transport Protocol parameter and the verification of IP heads and calculate, reduce place
Number is managed, further alleviates the problem of time delay is excessive.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combination software and hardware
Formula.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more to use storage
The form for the computer program product that medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.).
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
It the above is only the embodiment of the present invention, any formal limitation not done to the present invention, it is every
Any simple modification, equivalent variations, combination or the modification that technical spirit according to the present invention is made to embodiment of above, still
Belong to the protection domain of technical solution of the present invention.
Claims (12)
- A kind of 1. data message forwarding method, it is characterised in that including:Receive the first data message;The first RTP parameter in first data message is extracted, the second of calling first data message is real When transport protocol parameters;The first RTP parameter is revised as the second RTP parameter, generated Second data message;Wherein described first RTP parameter comes from upper level terminal, the second real-time Transmission association View parameter comes from next stage terminal;Second data message is sent to the next stage terminal.
- 2. data message forwarding method as claimed in claim 1, it is characterised in that by described in first data message First RTP parameter is revised as before the second RTP parameter, in addition to:Judge whether the first RTP parameter and the second RTP parameter are identical;If differing, the first RTP parameter is revised as the second RTP parameter;With/ OrIf identical, directly first data message is sent to the next stage terminal.
- 3. data message forwarding method as claimed in claim 1, it is characterised in thatFirst RTP parameter described in first data message is being revised as second RTP Before parameter, in addition to:IP agreement and User Datagram Protocol dissection process are carried out to first data message;Or/andFirst RTP parameter described in first data message is being revised as second RTP After parameter, in addition to:It is described to completing the first RTP parameter described in first data message being revised as First data message of the second RTP parameter, carry out IP agreement and User Datagram Protocol processing, generation described the Two data messages.
- 4. data message forwarding method as claimed in claim 1, it is characterised in that described by described in the first data message One RTP parameter, which is revised as the second RTP parameter, to be included:Forwarding entry table is called, the IP address, User Datagram Protocol port and first in first data message are real When transport protocol parameters tabled look-up in the forwarding entry table, obtain the IP address of the secondary terminal of corresponding forwarding entry, use User data packet protocol port and the second RTP parameter;IP address in first data message, User Datagram Protocol port and first RTP are joined Number, it is respectively modified as IP address, User Datagram Protocol port and the second real-time biography of the next stage terminal of the forwarding entry Defeated protocol parameter, and recalculate first data message IP heads verification and.
- 5. data message forwarding method as claimed in claim 4, it is characterised in that also include:Obtain at least one forwarding bar Purpose parameter information, the parameter information include source address information and destination address information in the forwarding entry respective path; The parameter information of at least one forwarding entry is added to the forwarding entry table.
- 6. the data message forwarding method as described in any one of claim 1 to 5, it is characterised in that extracting first number Before the first RTP parameter described in message, in addition to:Judge first data message next stage terminal whether be first data message target terminal;If so, then first data message is cached to anti-jitter buffer queue;And/orIf it is not, then extract the first RTP parameter described in first data message.
- 7. data message forwarding method as claimed in claim 6, it is characterised in that judge the next stage terminal whether be Before the target terminal, in addition to:Obtain the encoding and decoding protocol parameter that the upper level terminal uses and the encoding and decoding agreement ginseng that the next stage terminal uses Number;Judge that the upper level terminal encoding and decoding protocol parameter used and the encoding and decoding agreement that the next stage terminal uses are joined Whether number is identical;If so, then extract the first RTP parameter described in first data message;If it is not, then first data message is cached to anti-jitter buffer queue.
- A kind of 8. data message forwarding device, it is characterised in that including:Receiving module, for receiving the first data message from upper level terminal;Processing module, for extracting the first RTP parameter in first data message, call first number According to the second RTP parameter of message;First RTP parameter described in first data message is changed For the second RTP parameter, the second data message is generated;Wherein described first RTP parameter comes from In upper level terminal, the second RTP parameter comes from next stage terminal;Sending module, for second data message to be sent to the next stage terminal.
- 9. data message forwarding device as claimed in claim 8, it is characterised in that the processing module is used to call forwarding bar Mesh table, IP address, User Datagram Protocol port and first RTP in first data message Parameter is tabled look-up in the forwarding entry table, obtains IP address, the user data package association of the secondary terminal of corresponding forwarding entry Discuss port and the second RTP parameter;By the IP address in first data message, User Datagram Protocol port And the first RTP parameter, it is respectively modified as IP address, the number of users of the next stage terminal of the forwarding entry According to packet protocol port and the second RTP parameter, second data message is generated.
- 10. data message forwarding device as claimed in claim 8 or 9, it is characterised in that also including judge module, for Extract described in first data message before the first RTP parameter, judge the next of first data message Whether level terminal is the target terminal of first data message, if so, then caching first data message to anti-jitter Buffer queue, if it is not, then extracting the first RTP parameter described in first data message.
- 11. data message forwarding device as claimed in claim 10, it is characterised in that the judge module is additionally operable to obtain institute State the encoding and decoding protocol parameter that upper level terminal uses and the encoding and decoding protocol parameter that the next stage terminal uses;Described in judgement Whether the encoding and decoding protocol parameter that upper level terminal uses and the encoding and decoding protocol parameter that the next stage terminal uses are identical, if It is then to extract the first RTP parameter described in first data message, if it is not, then by first datagram Text is cached to anti-jitter buffer queue.
- 12. a kind of communication system, it is characterised in that turn including at least one data as described in any one of claim 8 to 11 Transmitting apparatus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610410802.9A CN107493242B (en) | 2016-06-12 | 2016-06-12 | Data message forwarding method, data forwarding device and communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610410802.9A CN107493242B (en) | 2016-06-12 | 2016-06-12 | Data message forwarding method, data forwarding device and communication system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107493242A true CN107493242A (en) | 2017-12-19 |
CN107493242B CN107493242B (en) | 2022-01-25 |
Family
ID=60643131
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610410802.9A Active CN107493242B (en) | 2016-06-12 | 2016-06-12 | Data message forwarding method, data forwarding device and communication system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107493242B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111796578A (en) * | 2020-06-29 | 2020-10-20 | 中国第一汽车股份有限公司 | Vehicle controller testing method, device and system and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7221660B1 (en) * | 2000-08-08 | 2007-05-22 | E.F. Johnson Company | System and method for multicast communications using real time transport protocol (RTP) |
CN1988508A (en) * | 2006-12-04 | 2007-06-27 | 华为技术有限公司 | Separate sheet message transmission method and communication system and tunnel device |
CN101075860A (en) * | 2006-05-18 | 2007-11-21 | 华为技术有限公司 | Method for eliminating message dither |
CN102137005A (en) * | 2010-12-31 | 2011-07-27 | 华为技术有限公司 | Method, device and system for forwarding date in communication system |
CN102821032A (en) * | 2011-06-10 | 2012-12-12 | 中兴通讯股份有限公司 | Method and three-layer device for rapidly forwarding data packet |
CN104954257A (en) * | 2014-03-27 | 2015-09-30 | 苏州与或信息科技有限公司 | Message forwarding system and method |
-
2016
- 2016-06-12 CN CN201610410802.9A patent/CN107493242B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7221660B1 (en) * | 2000-08-08 | 2007-05-22 | E.F. Johnson Company | System and method for multicast communications using real time transport protocol (RTP) |
CN101075860A (en) * | 2006-05-18 | 2007-11-21 | 华为技术有限公司 | Method for eliminating message dither |
CN1988508A (en) * | 2006-12-04 | 2007-06-27 | 华为技术有限公司 | Separate sheet message transmission method and communication system and tunnel device |
CN102137005A (en) * | 2010-12-31 | 2011-07-27 | 华为技术有限公司 | Method, device and system for forwarding date in communication system |
CN102821032A (en) * | 2011-06-10 | 2012-12-12 | 中兴通讯股份有限公司 | Method and three-layer device for rapidly forwarding data packet |
CN104954257A (en) * | 2014-03-27 | 2015-09-30 | 苏州与或信息科技有限公司 | Message forwarding system and method |
Non-Patent Citations (1)
Title |
---|
耿福泉 等: ""基于RTCP反馈的TCP友好的实时流媒体拥塞控制机制"", 《东北大学学报(自然科学版)》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111796578A (en) * | 2020-06-29 | 2020-10-20 | 中国第一汽车股份有限公司 | Vehicle controller testing method, device and system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107493242B (en) | 2022-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104283785B (en) | A kind of method and apparatus of quick processing flow table | |
US10135956B2 (en) | Hardware-based packet forwarding for the transport layer | |
CN104618194B (en) | Software defined network monitoring messages method and SDN controllers, switching equipment | |
WO2018175162A1 (en) | Hardware-accelerated payload filtering in secure communication | |
CN104283701A (en) | Method, system and device for issuing configuration information | |
CN104135446B (en) | System and methods of the IPv4 to IPv6 transition is realized based on SDN | |
CN106712988A (en) | Virtual network management method and device | |
KR101938623B1 (en) | Openflow communication method, system, controller, and service gateway | |
WO2019127134A1 (en) | Data transmission method and virtual switch | |
JP5858141B2 (en) | Control device, communication device, communication system, communication method, and program | |
JP2002271396A (en) | Network-data-packet sorting and demultiplexing | |
JP2007288711A (en) | Gateway apparatus, setting controller, and load distribution method and program for gateway apparatus | |
US20140025800A1 (en) | Systems and methods for multi-blade load balancing | |
CN107733800A (en) | A kind of SDN message transmitting method and its device | |
CN107493242A (en) | A kind of data message forwarding method, data forwarding device and communication system | |
CN107347085A (en) | A kind of information acquisition method and device | |
CN104243338B (en) | Message processing method, equipment and system | |
EP3375158A1 (en) | Enhanced media plane optimization in web real time communication scenarios | |
CN104518959B (en) | A kind of method and device of communication between devices | |
US10177935B2 (en) | Data transfer system, data transfer server, data transfer method, and program recording medium | |
Jain et al. | Performance Comparison Between Different Tunneling Techniques Using Different Routing Protocols | |
CN104363176A (en) | Message control method and equipment | |
CN106506718B (en) | IVI transition method and network system based on the pure IPv6 network of multiple NAT | |
CN113542431A (en) | Information processing method, information processing device, electronic equipment and storage medium | |
JP2016178613A (en) | Communication device and communication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |