WO2016058279A1 - Multi-path data transmission method based on quality evaluation - Google Patents

Multi-path data transmission method based on quality evaluation Download PDF

Info

Publication number
WO2016058279A1
WO2016058279A1 PCT/CN2015/000221 CN2015000221W WO2016058279A1 WO 2016058279 A1 WO2016058279 A1 WO 2016058279A1 CN 2015000221 W CN2015000221 W CN 2015000221W WO 2016058279 A1 WO2016058279 A1 WO 2016058279A1
Authority
WO
WIPO (PCT)
Prior art keywords
calling
client
called
channel
audio
Prior art date
Application number
PCT/CN2015/000221
Other languages
French (fr)
Chinese (zh)
Inventor
钱晓炯
陈兴桃
刘谦
Original Assignee
钱晓炯
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 钱晓炯 filed Critical 钱晓炯
Publication of WO2016058279A1 publication Critical patent/WO2016058279A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • the invention relates to a multi-path data transmission method based on quality evaluation.
  • Real-time audio and video transmission over IP networks can use a variety of paths, including forwarding through media servers, peer-to-peer transmission, and more.
  • the advantage of forwarding through the media server is that complicated operations such as point-to-point penetration are not required, and the audio and video data at both ends of the communication can be directly intercommunicated, the success rate of the connection can be almost 100%, and the connection speed is fast; the disadvantage of forwarding through the media server is communication.
  • the overall traffic bottleneck is constrained by the bandwidth of the media server accessing the network, and the media server side also has the traffic cost. Point-to-point transmission is just the opposite.
  • the advantage is that the overall communication traffic does not depend on the bandwidth of the media server accessing the network, and the cost of the media server is low.
  • the disadvantage is that the peer-to-peer operation is required, the connection speed is slow, and it may not be able to connect, and the point-to-point is simple.
  • the transmission method has a success rate of approximately 90%.
  • the transmission quality of media server forwarding and peer-to-peer transmission sometimes this is good sometimes.
  • the peer-to-peer transmission effect is often better than that of the media server.
  • the two clients are in the same LAN, and the peer-to-peer effect is mostly Ok.
  • the media server forwarding effect is often better than the point-to-point transmission.
  • these analyses can only be roughly predicted, and the actual network quality should be based on actual testing.
  • FIG. 1 shows a structure of a media server forwarding mode.
  • Client 1 and client 2 respectively access the carrier network through a router, and the media server is deployed on the public network; the data of the two clients is directly forwarded to the other party through the media server.
  • FIG. 2 shows a peer-to-peer transmission mechanism, which is the simplest peer-to-peer network penetration method.
  • the STUN server has a public network address, and the client accessed through the router can access it through the public network address.
  • the NAT function of the router translates the intranet address of client 1 into a public network IP address plus port, and the data sent by other network elements on the public network to this address and port will be transferred.
  • the client 1, the STUN server will send the public IP address plus the port to the client 2, so if the two clients send data to the public network address and port at the same time, most of the cases are able to pass.
  • the point-to-point transmission mechanism needs to go through a detection process, and the connection time is inevitably long. At the same time, due to the difference of routers, the above mechanism cannot penetrate 100% of the various routers on the market.
  • the technical problem to be solved by the present invention is to provide a quality evaluation-based multipath data transmission method with fast connection speed, high connection success rate, and effective consideration of network cost.
  • the technical solution adopted by the present invention to solve the above technical problem is: a multi-path data transmission method based on quality evaluation, which is characterized in that:
  • different clients connect to different media servers according to the principle of proximity, and then when the calling client initiates audio and video communication to the called client, the calling client and the called client first pass through the 0th channel.
  • the nearest media server connected to the calling client is called the calling media server, and the nearest media server connected to the called client is called the called media server.
  • the data transmission path of the 0th channel is: The calling client sends the calling audio and video data to the calling media server, and the calling media server forwards the calling audio and video data to the called media server, and the called media server forwards the calling audio and video data.
  • the called client sends the called audio and video data to the called media server, and the called media server forwards the called audio and video data to the calling media server, the calling end
  • the media server forwards the called audio and video data to the calling client;
  • the data transmission path of the first channel is: the calling client sends the calling audio and video data to the calling media server, and then the calling media server forwards the calling audio and video data to the called client; Similarly, the called client sends the called audio and video data to the called media server, and then the called media server forwards the called audio and video data to the calling client;
  • the data transmission path of the second channel and the second channel is: the calling client sends the calling audio and video data to the called media server, and then the called media server forwards the calling audio and video data to the called client: Similarly, the called client sends the called audio and video data to the calling media server, and then the calling media server forwards the called audio and video data to the calling client;
  • the data transmission path of the third channel and the third channel is: a point-to-point transmission mechanism between the calling client and the called client;
  • the calling client or/and the called client simultaneously send the network quality detection packet to the above four channels. Therefore, the network quality of the above four channels is detected, and then the network path quality scores of the above four channels are respectively obtained, and finally the main intersection The channel with the highest network path quality score is selected between the client and the called client for audiovisual data transmission.
  • the method provided by the present invention can support the transmission of media data in multiple channels at the same time. This mode is applicable to the path bottleneck not being on the access side of the terminal, and in the middle of the path, the transmission throughput of a single path can be increased.
  • the network quality detection packet of the currently applied channel between the calling client and the called client is a custom data packet header added before the calling audio and video data or the called audio and video data
  • the customized data packet header includes The header type, channel number, serial number, timestamp, and data stream type; and the network quality probe packets sent by the other three channels include the aforementioned custom packet header plus IP/UDP packet header.
  • the network quality probe packets sent by the calling client or/and the called client to the four channels are simultaneously transmitted, and the total size of the four network quality probe packets simultaneously transmitted to the four channels does not exceed the calling party. 5% of audio and video data or called audio and video data.
  • the size of the aforementioned custom packet header is 5 bytes, and the IP/UDP packet header is 55 bytes.
  • the calling client or/and the called client are separated by a fixed time to send network quality detection packets to the above four channels, thereby re-detecting the network quality of the above four channels, and respectively obtaining the above four channels.
  • the new network path quality score, the main network client and the called client select the channel with the highest network path quality score for the transmission of audiovisual data.
  • score is the network path quality score
  • clip3 is a finite function, that is, to ensure that the output value is between 0 and 100
  • factor (path) is the weighting factor of the connection mode, depending on the server cost, the factor (path) of the different connection mode Set in advance;
  • Td(0) represents the unidirectional path delay of the 0th channel
  • Td(0) T0-t0-deltaT
  • deltaT is the time difference between the calling client and the called client
  • T0 is sent by the calling client through the 0th channel.
  • the time of the calling audio and video data, t0 is the time when the called client receives the calling audio and video data at the moment;
  • Td(1) represents the unidirectional path delay of the first channel
  • Td(1) T1-t1-deltaT
  • deltaT is the time difference between the calling client and the called client
  • T1 is sent by the calling client through the first channel.
  • t1 is the time when the called client receives the calling audio and video data at the moment.
  • Td(2) represents the unidirectional path delay of the second channel
  • Td(2) T2-t2-deltaT
  • deltaT is the time difference between the calling client and the called client
  • T2 is sent by the calling client through the second channel.
  • the moment when the calling audio and video data is called, t2 is the moment when the called client receives the calling audio and video data at the moment;
  • Td(3) indicates the unidirectional path delay of the third channel
  • Td(3) T3-t3-deltaT
  • deltaT is the time difference between the calling client and the called client
  • T3 is sent by the calling client through the third channel.
  • Td_min min(Td(0), Td(1), Td(2), Td(3));
  • Rtt_min min(rtt(0), rtt(1), rtt(2), rtt(3)), and rtt(0) represents the round-trip path delay of channel 0; rtt(1) represents the round-trip of channel 1 Path delay; rtt(2) represents the round-trip path delay of the second channel; rtt(3) represents the round-trip path delay of the third channel;
  • Yl -29.43ln(PLR)-29.637; PLR is the data packet loss rate under different channels.
  • the factor (path) is always equal to 1. If the forwarding cost of the media server is considered, the weighting factor of the media server forwarding mode can be set to 1, the calling media server forwarding mode and the called media server. The weighting factor of the forwarding mode is set to 2, and the weighting factor of the point-to-point mode is set to 4.
  • the present invention has the advantages that the method provided by the present invention solves the problem of the connection speed between two clients, and also dynamically manages the network path quality of different paths to optimize the network path.
  • the transmission of audiovisual data is performed.
  • FIG. 1 is a structural block diagram of a media server forwarding mode in the prior art
  • FIG. 2 is a structural block diagram of a mechanism of point-to-point transmission in the prior art
  • FIG. 3 is a block diagram showing the connection of the 0th channel in the embodiment of the present invention.
  • FIG. 4 is a block diagram showing the connection of the first channel in the embodiment of the present invention.
  • Figure 5 is a block diagram showing the connection of the second channel in the embodiment of the present invention.
  • Figure 6 is a block diagram showing the connection of the third channel in the embodiment of the present invention.
  • FIG. 7 is a structural diagram of a custom data packet header according to an embodiment of the present invention.
  • FIG. 8 is a block diagram of calculation of a relative one-way path delay according to an embodiment of the present invention.
  • the multi-path data transmission method based on quality evaluation provided by the invention first solves the problem of the connection speed, that is, different clients are connected to different media servers according to the principle of proximity, and then the calling client initiates to the called client.
  • the calling client and the called client first connect through the 0th channel;
  • the nearest media server connected to the calling client is called the calling media server, and the nearest media server connected to the called client is called the called media server;
  • the data transmission path of the 0th channel is: the calling client sends the calling audio and video data to the calling media server, and the calling media server forwards the calling audio and video data to the called media.
  • the server, the called media server forwards the calling audio and video data to the called client;
  • the called client sends the called audio and video data to the called media server, and the called media server forwards the called audio and video data to the calling media server, and the calling media server will be called.
  • the video data is forwarded to the calling client;
  • this method achieves the fastest connection between the calling client and the called client.
  • the first channel, the second channel, and the third channel can also be connected between the calling client and the called client:
  • the data transmission path of the first channel is: the calling client sends the calling audio and video data to the calling end media server, and then the calling media server forwards the calling audio and video data to the called party.
  • Calling the client likewise, the called client sends the called audio and video data to the called media server, and then the called media server forwards the called audio and video data to the calling client;
  • the data transmission path of the second channel is: the calling client sends the calling audio and video data to the called media server, and then the called media server forwards the calling audio and video data to the called client.
  • the called client sends the called audio and video data to the calling media server, and then the calling media server forwards the called audio and video data to the calling client;
  • the data transmission path of the third channel is: a point-to-point transmission mechanism between the calling client and the called client;
  • the calling client or/and the called client simultaneously send the network quality detection packet to the above four channels. Therefore, the network quality of the above four channels is detected, and the network path quality scores of the above four channels are respectively obtained, and finally the channel with the highest network path quality score is selected between the primary client and the called client to perform audiovisual data. Transmission.
  • the network quality detection packet of the currently applied channel between the calling client and the called client is added to the master.
  • the definition of the IP/UDP packet header is a conventional technique, and will not be described in detail here.
  • the network quality probe packet sent by the channel is 60 bytes, and the network quality probe packets sent by the calling client or/and the called client to the four channels are sent simultaneously, and four times are sent simultaneously to the four channels.
  • the total size of the network quality detection packet does not exceed 5% of the calling audio and video data or the called audio and video data. This method can achieve very fast quality status update frequency, which is easy to understand. A small amount of data, the network path will inevitably reduce the frequency of monitoring, the network sensitivity to changes in the signal quality decreases.
  • the worst case update period is up to about 34 seconds.
  • the method provided in this embodiment sends a network quality probe packet to four channels at the same time, and the total size of the four network quality probe packets does not exceed the calling audio and video data or is Calling 5% of audio and video data can increase the update cycle to about 11 times efficiency. That is, in the case of the same traffic and the same accuracy, the worst case update cycle takes only about 3 seconds to send a larger audio and video bit rate.
  • the present invention performs quality status update at a frequency of up to 1 time per second, at which time the amount of redundancy of the probe packet is much less than 5%.
  • the calling client or/and the called client are simultaneously sent to the four channels to send a network quality detection packet at a fixed time, thereby re-detecting the network quality of the above four channels, thereby obtaining the above four channels respectively.
  • the network path quality score, the main network client and the called client select the channel with the highest network path quality score for the transmission of audiovisual data.
  • the present invention also solves the problem of delay estimation in a single direction of four channels.
  • the traditional RTCP method can only calculate the round-trip time delay rtt (Round-Trip Time) of the path, and the calculation method is a conventional method in the prior art.
  • the round-trip path delay rtt of the path includes the sum of delays in both directions of the sender and the receiver, so the delay in a single direction cannot be accurately evaluated.
  • the present invention can obtain the relative delay in a single direction on the four channels, and obtain 4 pieces.
  • the quality status of the path in a single direction is used to make the best choice. Specifically, the network path quality score is obtained by the following formula.
  • score is the network path quality score
  • clip3 is a finite function, that is, to ensure that the output value is between 0 and 100
  • factor (path) is the weighting factor of the connection mode, depending on the server cost, different connections
  • the mode factor (path) of the mode is set in advance;
  • Td(0) represents the unidirectional path delay of the 0th channel
  • Td(0) T0-t0-deltaT
  • deltaT is the time difference between the calling client and the called client
  • T0 is sent by the calling client through the 0th channel.
  • the time of the calling audio and video data, t0 is the time when the called client receives the calling audio and video data at the moment;
  • Td(1) represents the unidirectional path delay of the first channel
  • Td(1) T1-t1-deltaT
  • deltaT is the time difference between the calling client and the called client
  • T1 is sent by the calling client through the first channel.
  • t1 is the time when the called client receives the calling audio and video data at the moment;
  • Td(2) represents the unidirectional path delay of the second channel
  • Td(2) T2-t2-deltaT
  • deltaT is the time difference between the calling client and the called client
  • T2 is sent by the calling client through the second channel.
  • the moment when the calling audio and video data is called, t2 is the moment when the called client receives the calling audio and video data at the moment;
  • Td(3) indicates the unidirectional path delay of the third channel
  • Td(3) T3-t3-deltaT
  • deltaT is the time difference between the calling client and the called client
  • T3 is sent by the calling client through the third channel.
  • Td_min min(Td(0), Td(1), Td(2), Td(3));
  • Rtt_min min(rtt(0), rtt(1), rtt(2), rtt(3)), and rtt(0) represents the round-trip path delay of channel 0; rtt(1) Indicates the round-trip path delay of the first channel; rtt(2) represents the round-trip path delay of the second channel; rtt(3) represents the round-trip path delay of the third channel;
  • the invention eliminates the time difference deltaT of two clients, obtains a relative one-way delay delay of four paths, and Td_min and rtt_min are iteratively updated through the statistical window, and another advantage of the present invention is that only according to each channel With one piece of data, the result can be obtained, which greatly saves the flow of the probe packet;
  • Yl -29.43ln(PLR)-29.637; PLR is the data packet loss rate under different channels.
  • the factor (path) is always equal to 1, and simply consider the forwarding cost of the server. You can set the weighting factor of the 0th channel to 1, and the weighting factor of the 1st channel and the 2nd channel to 2, the 3rd channel. The weighting factor is 4. In short, according to the size of the server cost, the importance of serving customers, dynamic adjustment of the factor (path).

Abstract

A multi-path data transmission method based on quality evaluation, comprising: firstly, different clients are connected to different media servers according to a principle of proximity, then when a calling client initiates an audio/video communication to a called client, the calling client and the called client are connected with each other via a 0th channel, the audio/video data is forwarded to a calling-end media server, and the calling-end media server forwards the called audio/video data to the calling client; and when the calling client and the called client are connected with each other via the 0th channel, the calling client and the called client are also connected with each other by starting another three channels, and choosing the channel with the highest score of network path quality for audio/video data transmission. Compared with the prior art, the problem of get-through speed between two clients is solved; and meanwhile, the network path quality of different paths is dynamically managed, and audio/video data is transmitted via the optimum network path.

Description

一种基于质量评价的多路径数据传输方法Multi-path data transmission method based on quality evaluation 技术领域Technical field
本发明涉及一种基于质量评价的多路径数据传输方法。The invention relates to a multi-path data transmission method based on quality evaluation.
背景技术Background technique
在IP网络下进行实时的音视频传输可以使用多种路径,包括通过媒体服务器转发、点对点传输等。通过媒体服务器转发的好处是,无需进行点对点穿透的复杂操作,通信两端的音视频数据可以直接互通,接通成功率几乎能达到100%、接通速度快;通过媒体服务器转发的缺点是通信整体流量瓶颈受到媒体服务器接入网络的带宽约束,媒体服务器侧也有流量成本。点对点传输刚好相反,其优势是整体通信流量不依赖于媒体服务器接入网络的带宽,媒体服务器成本低;缺点是需要进行点对点穿透的操作,接通速度慢,而且有可能接不通,简单点对点传输方法接通成功率大概为90%。Real-time audio and video transmission over IP networks can use a variety of paths, including forwarding through media servers, peer-to-peer transmission, and more. The advantage of forwarding through the media server is that complicated operations such as point-to-point penetration are not required, and the audio and video data at both ends of the communication can be directly intercommunicated, the success rate of the connection can be almost 100%, and the connection speed is fast; the disadvantage of forwarding through the media server is communication. The overall traffic bottleneck is constrained by the bandwidth of the media server accessing the network, and the media server side also has the traffic cost. Point-to-point transmission is just the opposite. The advantage is that the overall communication traffic does not depend on the bandwidth of the media server accessing the network, and the cost of the media server is low. The disadvantage is that the peer-to-peer operation is required, the connection speed is slow, and it may not be able to connect, and the point-to-point is simple. The transmission method has a success rate of approximately 90%.
关于媒体服务器转发和点对点传输的传输质量,有时候这个好有时候那个好。比如,当两个通信客户端接入在同一个网络服务提供商环境下,点对点的传输效果往往比媒体服务器转发好,尤其是两个客户端在同一个局域网内,点对点的效果大多数是很好的。又如,当两个通信客户端分别通过不用运营商网络接入互联网,如果媒体服务器部署在多线机房(即同一个机房同时接入不同运营商网络),媒体服务器转发效果往往优于点对点传输。但这些分析只能大致上进行预测,实际的网络质量应该根据实际测试来得出结论。Regarding the transmission quality of media server forwarding and peer-to-peer transmission, sometimes this is good sometimes. For example, when two communication clients are connected in the same network service provider environment, the peer-to-peer transmission effect is often better than that of the media server. In particular, the two clients are in the same LAN, and the peer-to-peer effect is mostly Ok. For example, when two communication clients access the Internet without using the carrier network respectively, if the media server is deployed in a multi-line computer room (that is, the same computer room accesses different carrier networks at the same time), the media server forwarding effect is often better than the point-to-point transmission. . However, these analyses can only be roughly predicted, and the actual network quality should be based on actual testing.
附图1展示了一种媒体服务器转发模式的结构,客户端1和客户端2分别通过路由器接入运营商网络,媒体服务器部署在公网上;两个客户端的数据直接通过媒体服务器转发到达对方。FIG. 1 shows a structure of a media server forwarding mode. Client 1 and client 2 respectively access the carrier network through a router, and the media server is deployed on the public network; the data of the two clients is directly forwarded to the other party through the media server.
附图2展示了一种点对点传输的机制,这是一种最简单的点对点网络穿透方法,其中STUN服务器具有公网地址,通过路由器接入的客户端可通过公网地址访问到它,客户端1尝试向STUN服务器发探测包时,路由器的NAT功能会将客户端1的内网地址翻译为公网IP地址加端口,公网上其它网元向这个地址和端口发送的数据将被转到这个客户端1,STUN服务器会将这个公网IP地址加端口发给客户端2,因此如果两个客户端同时向得到公网地址和端口发数据,大多数情况是能够通的。正如这个过程所描述,点对点传输机制需要经过一个探测过程,接通时间必然长,同时由于路由器的差异性,上述机制不能100%穿透市面上各种路由器。Figure 2 shows a peer-to-peer transmission mechanism, which is the simplest peer-to-peer network penetration method. The STUN server has a public network address, and the client accessed through the router can access it through the public network address. When terminal 1 attempts to send a probe packet to the STUN server, the NAT function of the router translates the intranet address of client 1 into a public network IP address plus port, and the data sent by other network elements on the public network to this address and port will be transferred. The client 1, the STUN server will send the public IP address plus the port to the client 2, so if the two clients send data to the public network address and port at the same time, most of the cases are able to pass. As described in this process, the point-to-point transmission mechanism needs to go through a detection process, and the connection time is inevitably long. At the same time, due to the difference of routers, the above mechanism cannot penetrate 100% of the various routers on the market.
基于上述技术现状,目前出现了一种技术标准ICE(Interactive Conncctivity Establishment,RFC5245)可综合上述两种传输模式的好处,既能尝试进行点对点传输, 如果点对点传输不通,则进行服务器转发,以确保成本和穿透能力。ICE实际上只是结合了点对点传输和媒体服务器转发等各种传输模式,它并不是一种全新的解决方案,其主要问题是接通速度慢,而且也没有对各种传输通道进行质量管理,导致无法得到最佳的通信质量体验。Based on the current state of the art, there is a technical standard ICE (Interactive Conncctivity Establishment, RFC5245) that can combine the advantages of the above two transmission modes, and can try to perform point-to-point transmission. If the point-to-point transmission fails, server forwarding is performed to ensure cost and penetration. ICE actually combines various transmission modes such as point-to-point transmission and media server forwarding. It is not a completely new solution. The main problem is that the connection speed is slow, and there is no quality management for various transmission channels. Unable to get the best communication quality experience.
发明内容Summary of the invention
本发明所要解决的技术问题是针对上述现有技术提供一种接通速度快、接通成功率高、并且有效考虑网络成本的基于质量评价的多路径数据传输方法。The technical problem to be solved by the present invention is to provide a quality evaluation-based multipath data transmission method with fast connection speed, high connection success rate, and effective consideration of network cost.
本发明解决上述技术问题所采用的技术方案为:一种基于质量评价的多路径数据传输方法,其特征在于:The technical solution adopted by the present invention to solve the above technical problem is: a multi-path data transmission method based on quality evaluation, which is characterized in that:
首先,不同的客户端按照就近原则连接到不同的媒体服务器,然后当主叫客户端向被叫客户端发起音视频通信时,主叫客户端和被叫客户端之间先通过第0通道进行连接,而与主叫客户端连接的最近的媒体服务器称为主叫端媒体服务器,与被叫客户端连接的最近的媒体服务器称为被叫端媒体服务器,第0通道的数据传输路径为:主叫客户端将主叫音视频数据发送给主叫端媒体服务器,主叫端媒体服务器将主叫音视频数据转发给被叫端媒体服务器,被叫端媒体服务器再将主叫音视频数据转发给被叫客户端;同样的,被叫客户端将被叫音视频数据发送给被叫端媒体服务器,被叫端媒体服务器再将被叫音视频数据转发给主叫端媒体服务器,主叫端媒体服务器将被叫音视频数据转发给主叫客户端;First, different clients connect to different media servers according to the principle of proximity, and then when the calling client initiates audio and video communication to the called client, the calling client and the called client first pass through the 0th channel. The nearest media server connected to the calling client is called the calling media server, and the nearest media server connected to the called client is called the called media server. The data transmission path of the 0th channel is: The calling client sends the calling audio and video data to the calling media server, and the calling media server forwards the calling audio and video data to the called media server, and the called media server forwards the calling audio and video data. To the called client; likewise, the called client sends the called audio and video data to the called media server, and the called media server forwards the called audio and video data to the calling media server, the calling end The media server forwards the called audio and video data to the calling client;
然后,在主叫客户端和被叫客户端之间通过第0通道进行连接的同时,主叫客户端和被叫客户端之间还启动如下通道进行连接:Then, while the calling client and the called client are connected through the 0th channel, the following channels are also started to be connected between the calling client and the called client:
第1通道,第1通道的数据传输路径为:主叫客户端将主叫音视频数据发送给主叫端媒体服务器,然后主叫端媒体服务器将主叫音视频数据转发给被叫客户端;同样的,被叫客户端将被叫音视频数据发送给被叫端媒体服务器,然后被叫端媒体服务器将被叫音视频数据转发给主叫客户端;In the first channel, the data transmission path of the first channel is: the calling client sends the calling audio and video data to the calling media server, and then the calling media server forwards the calling audio and video data to the called client; Similarly, the called client sends the called audio and video data to the called media server, and then the called media server forwards the called audio and video data to the calling client;
第2通道,第2通道的数据传输路径为:主叫客户端将主叫音视频数据发送给被叫端媒体服务器,然后被叫端媒体服务器将主叫音视频数据转发给被叫客户端:同样的,被叫客户端将被叫音视频数据发送给主叫端媒体服务器,然后主叫端媒体服务器将被叫音视频数据转发给主叫客户端;The data transmission path of the second channel and the second channel is: the calling client sends the calling audio and video data to the called media server, and then the called media server forwards the calling audio and video data to the called client: Similarly, the called client sends the called audio and video data to the calling media server, and then the calling media server forwards the called audio and video data to the calling client;
第3通道,第3通道的数据传输路径为:主叫客户端与被叫客户端之间进行点对点传输机制;The data transmission path of the third channel and the third channel is: a point-to-point transmission mechanism between the calling client and the called client;
最后,当第0通道、第1通道、第2通道和第3通道这四种个传输路径均建立后,主叫客户端或/和被叫客户端同时对上述四个通道发送网络质量探测包,从而对上述四个通道的网络质量进行探测,进而分别得到上述四个通道的网络路径质量得分,最后主交 客户端和被叫客户端之间选取网络路径质量得分最高的通道进行音视数据的传输。Finally, when the four transmission paths of the 0th channel, the 1st channel, the 2nd channel, and the 3rd channel are established, the calling client or/and the called client simultaneously send the network quality detection packet to the above four channels. Therefore, the network quality of the above four channels is detected, and then the network path quality scores of the above four channels are respectively obtained, and finally the main intersection The channel with the highest network path quality score is selected between the client and the called client for audiovisual data transmission.
因此本发明提供的方法可以支持同时在多条通道发送媒体数据,这种模式适用于路径的瓶颈不在终端的接入侧,而在路径中间部位时,能增加单条路径的传输吞吐量。Therefore, the method provided by the present invention can support the transmission of media data in multiple channels at the same time. This mode is applicable to the path bottleneck not being on the access side of the terminal, and in the middle of the path, the transmission throughput of a single path can be increased.
作为改进,主叫客户端和被叫客户端之间当前应用的通道的网络质量探测包为在主叫音视频数据或被叫音视频数据前加的自定义数据包头,该自定义数据包头包含包头类型、通道编号、序列号、时间戳、数据流类型;而其他三个通道发送的网络质量探测包包含前述自定义数据包头加IP/UDP数据包头。As an improvement, the network quality detection packet of the currently applied channel between the calling client and the called client is a custom data packet header added before the calling audio and video data or the called audio and video data, and the customized data packet header includes The header type, channel number, serial number, timestamp, and data stream type; and the network quality probe packets sent by the other three channels include the aforementioned custom packet header plus IP/UDP packet header.
再改进,主叫客户端或/和被叫客户端向四个通道发送的网络质量探测包是同时发送的,并且向四个通道同时发送的四个网络质量探测包的总大小不超过主叫音视频数据或被叫音视频数据的5%。Further improved, the network quality probe packets sent by the calling client or/and the called client to the four channels are simultaneously transmitted, and the total size of the four network quality probe packets simultaneously transmitted to the four channels does not exceed the calling party. 5% of audio and video data or called audio and video data.
较好的,前述自定义数据包头的大小为5个字节,而IP/UDP数据包头为55个字节。Preferably, the size of the aforementioned custom packet header is 5 bytes, and the IP/UDP packet header is 55 bytes.
再改进,主叫客户端或/和被叫客户端间隔一固定时间同时对上述四个通道发送网络质量探测包,从而对上述四个通道的网络质量进行重新探测,进而分别得到上述四个通道新的网络路径质量得分,主交客户端和被叫客户端之间则选取新的网络路径质量得分最高的通道进行音视数据的传输。Further improved, the calling client or/and the called client are separated by a fixed time to send network quality detection packets to the above four channels, thereby re-detecting the network quality of the above four channels, and respectively obtaining the above four channels. The new network path quality score, the main network client and the called client select the channel with the highest network path quality score for the transmission of audiovisual data.
再改进,网络路径质量得分由以下公式获得:Further improvement, the network path quality score is obtained by the following formula:
score=factor(path)*(clip3(0,100,Yd)*clip3(0,100,Y1))/100Score=factor(path)*(clip3(0,100,Yd)*clip3(0,100,Y1))/100
其中score为网络路径质量得分,clip3为一个限定函数,即确保输出值在0到100之间,factor(path)为连接模式的加权因子,根据服务器成本大小,不同的连接模式的factor(path)提前设置;Where score is the network path quality score, clip3 is a finite function, that is, to ensure that the output value is between 0 and 100, factor (path) is the weighting factor of the connection mode, depending on the server cost, the factor (path) of the different connection mode Set in advance;
而Yd=-19.58ln(delay)+149.58,其中delay为不同通道下的相对单向路径延时,并且delay=Td(n)-Td_min+rtt_min/2,n=0、1、2、3;And Yd=-19.58ln(delay)+149.58, where delay is a relative one-way path delay under different channels, and delay=Td(n)-Td_min+rtt_min/2, n=0, 1, 2, 3;
Td(0)表示第0通道的单向路径延时,Td(0)=T0-t0-deltaT,deltaT为主叫客户端与被叫客户端的时间差,T0为主叫客户端通过第0通道发送主叫音视频数据的时刻,t0为被叫客户端时刻收到主叫音视频数据的时刻;Td(0) represents the unidirectional path delay of the 0th channel, Td(0)=T0-t0-deltaT, deltaT is the time difference between the calling client and the called client, and T0 is sent by the calling client through the 0th channel. The time of the calling audio and video data, t0 is the time when the called client receives the calling audio and video data at the moment;
Td(1)表示第1通道的单向路径延时,Td(1)=T1-t1-deltaT,deltaT为主叫客户端与被叫客户端的时间差,T1为主叫客户端通过第1通道发送主叫音视频数据的时刻,t1为被叫客户端时刻收到主叫音视频数据的时刻。Td(1) represents the unidirectional path delay of the first channel, Td(1)=T1-t1-deltaT, deltaT is the time difference between the calling client and the called client, and T1 is sent by the calling client through the first channel. The moment when the calling audio and video data is called, t1 is the time when the called client receives the calling audio and video data at the moment.
Td(2)表示第2通道的单向路径延时,Td(2)=T2-t2-deltaT,deltaT为主叫客户端与被叫客户端的时间差,T2为主叫客户端通过第2通道发送主叫音视频数据的时刻,t2为被叫客户端时刻收到主叫音视频数据的时刻;Td(2) represents the unidirectional path delay of the second channel, Td(2)=T2-t2-deltaT, deltaT is the time difference between the calling client and the called client, and T2 is sent by the calling client through the second channel. The moment when the calling audio and video data is called, t2 is the moment when the called client receives the calling audio and video data at the moment;
Td(3)表示第3通道的单向路径延时,Td(3)=T3-t3-deltaT,deltaT为主叫客户端与被叫客户端的时间差,T3为主叫客户端通过第3通道发送主叫音视频数据的时刻,t3 为被叫客户端时刻收到主叫音视频数据的时刻:Td(3) indicates the unidirectional path delay of the third channel, Td(3)=T3-t3-deltaT, deltaT is the time difference between the calling client and the called client, and T3 is sent by the calling client through the third channel. The moment of calling audio and video data, t3 The moment when the called client receives the calling audio and video data at the moment:
Td_min=min(Td(0),Td(1),Td(2),Td(3));Td_min=min(Td(0), Td(1), Td(2), Td(3));
rtt_min=min(rtt(0),rtt(1),rtt(2),rtt(3)),而rtt(0)表示第0通道的往返路径延时;rtt(1)表示第1通道的往返路径延时;rtt(2)表示第2通道的往返路径延时;rtt(3)表示第3通道的往返路径延时;Rtt_min=min(rtt(0), rtt(1), rtt(2), rtt(3)), and rtt(0) represents the round-trip path delay of channel 0; rtt(1) represents the round-trip of channel 1 Path delay; rtt(2) represents the round-trip path delay of the second channel; rtt(3) represents the round-trip path delay of the third channel;
Yl=-29.43ln(PLR)-29.637;PLR为不同通道下的数据丢包率。Yl=-29.43ln(PLR)-29.637; PLR is the data packet loss rate under different channels.
如果不考虑成本因素,factor(path)恒等于1,如果考虑媒体服务器的转发成本,可将所述媒体服务器转发模式的加权因子设为1,主叫端媒体服务器转发模式和被叫端媒体服务器转发模式的加权因子均设为2,点对点模式的加权因子设为4。If the cost factor is not considered, the factor (path) is always equal to 1. If the forwarding cost of the media server is considered, the weighting factor of the media server forwarding mode can be set to 1, the calling media server forwarding mode and the called media server. The weighting factor of the forwarding mode is set to 2, and the weighting factor of the point-to-point mode is set to 4.
与现有技术相比,本发明的优点在于:本发明提供的方法解决了两个客户端之间的接通速度问题,同时还对不同路径的网络路径质量进行动态管理,以最优网络路径进行音视数据的传输。Compared with the prior art, the present invention has the advantages that the method provided by the present invention solves the problem of the connection speed between two clients, and also dynamically manages the network path quality of different paths to optimize the network path. The transmission of audiovisual data is performed.
附图说明DRAWINGS
图1为现有技术中媒体服务器转发模式的结构框图;1 is a structural block diagram of a media server forwarding mode in the prior art;
图2为现有技术中点对点传输的机制的结构框图;2 is a structural block diagram of a mechanism of point-to-point transmission in the prior art;
图3为本发明实施例中第0通道的连接框图;3 is a block diagram showing the connection of the 0th channel in the embodiment of the present invention;
图4为本发明实施例中第1通道的连接框图;4 is a block diagram showing the connection of the first channel in the embodiment of the present invention;
图5为本发明实施例中第2通道的连接框图;Figure 5 is a block diagram showing the connection of the second channel in the embodiment of the present invention;
图6为本发明实施例中第3通道的连接框图;Figure 6 is a block diagram showing the connection of the third channel in the embodiment of the present invention;
图7为本发明实施例中自定义数据包头结构图;FIG. 7 is a structural diagram of a custom data packet header according to an embodiment of the present invention; FIG.
图8为本发明实施例中相对单向路径延时的计算框图。FIG. 8 is a block diagram of calculation of a relative one-way path delay according to an embodiment of the present invention.
具体实施方式detailed description
以下结合附图实施例对本发明作进一步详细描述。The invention will be further described in detail below with reference to the embodiments of the drawings.
本发明提供的基于质量评价的多路径数据传输方法,首先解决了接通速度问题,即:不同的客户端按照就近原则连接到不同的媒体服务器,然后当主叫客户端向被叫客户端发起音视频通信时,主叫客户端和被叫客户端之间先通过第0通道进行连接;The multi-path data transmission method based on quality evaluation provided by the invention first solves the problem of the connection speed, that is, different clients are connected to different media servers according to the principle of proximity, and then the calling client initiates to the called client. In the audio and video communication, the calling client and the called client first connect through the 0th channel;
而与主叫客户端连接的最近的媒体服务器称为主叫端媒体服务器,与被叫客户端连接的最近的媒体服务器称为被叫端媒体服务器;The nearest media server connected to the calling client is called the calling media server, and the nearest media server connected to the called client is called the called media server;
如图3所示,第0通道的数据传输路径为:主叫客户端将主叫音视频数据发送给主叫端媒体服务器,主叫端媒体服务器将主叫音视频数据转发给被叫端媒体服务器,被叫端媒体服务器再将主叫音视频数据转发给被叫客户端; As shown in FIG. 3, the data transmission path of the 0th channel is: the calling client sends the calling audio and video data to the calling media server, and the calling media server forwards the calling audio and video data to the called media. The server, the called media server forwards the calling audio and video data to the called client;
同样的,被叫客户端将被叫音视频数据发送给被叫端媒体服务器,被叫端媒体服务器再将被叫音视频数据转发给主叫端媒体服务器,主叫端媒体服务器将被叫音视频数据转发给主叫客户端;Similarly, the called client sends the called audio and video data to the called media server, and the called media server forwards the called audio and video data to the calling media server, and the calling media server will be called. The video data is forwarded to the calling client;
参见图3所示,这种方式实现了主叫客户端与被叫客户端之间最快速度的连接;As shown in Figure 3, this method achieves the fastest connection between the calling client and the called client.
然后,在主叫客户端和被叫客户端之间通过第0通道连接的同时,主叫客户端和被叫客户端之间还能启动第1通道、第2通道、第3通道进行连接:Then, when the calling client and the called client are connected through the 0th channel, the first channel, the second channel, and the third channel can also be connected between the calling client and the called client:
其中,如图4所示,第1通道的数据传输路径为:主叫客户端将主叫音视频数据发送给主叫端媒体服务器,然后主叫端媒体服务器将主叫音视频数据转发给被叫客户端;同样的,被叫客户端将被叫音视频数据发送给被叫端媒体服务器,然后被叫端媒体服务器将被叫音视频数据转发给主叫客户端;Wherein, as shown in FIG. 4, the data transmission path of the first channel is: the calling client sends the calling audio and video data to the calling end media server, and then the calling media server forwards the calling audio and video data to the called party. Calling the client; likewise, the called client sends the called audio and video data to the called media server, and then the called media server forwards the called audio and video data to the calling client;
如图5所示,第2通道的数据传输路径为:主叫客户端将主叫音视频数据发送给被叫端媒体服务器,然后被叫端媒体服务器将主叫音视频数据转发给被叫客户端;同样的,被叫客户端将被叫音视频数据发送给主叫端媒体服务器,然后主叫端媒体服务器将被叫音视频数据转发给主叫客户端;As shown in FIG. 5, the data transmission path of the second channel is: the calling client sends the calling audio and video data to the called media server, and then the called media server forwards the calling audio and video data to the called client. Similarly, the called client sends the called audio and video data to the calling media server, and then the calling media server forwards the called audio and video data to the calling client;
如图6所示,第3通道的数据传输路径为:主叫客户端与被叫客户端之间进行点对点传输机制;As shown in FIG. 6, the data transmission path of the third channel is: a point-to-point transmission mechanism between the calling client and the called client;
最后,当第0通道、第1通道、第2通道和第3通道这四种个传输路径均建立后,主叫客户端或/和被叫客户端同时对上述四个通道发送网络质量探测包,从而对上述四个通道的网络质量进行探测,进而分别得到上述四个通道的网络路径质量得分,最后主交客户端和被叫客户端之间选取网络路径质量得分最高的通道进行音视数据的传输。Finally, when the four transmission paths of the 0th channel, the 1st channel, the 2nd channel, and the 3rd channel are established, the calling client or/and the called client simultaneously send the network quality detection packet to the above four channels. Therefore, the network quality of the above four channels is detected, and the network path quality scores of the above four channels are respectively obtained, and finally the channel with the highest network path quality score is selected between the primary client and the called client to perform audiovisual data. Transmission.
在第0通道、第1通道、第2通道和第3通道这四种个传输路径均建立后,主叫客户端和被叫客户端之间当前应用的通道的网络质量探测包为加在主叫音视频数据或被叫音视频数据前的5个字节的自定义数据包头,参见图7所示,该自定义数据包头包含包头类型Type、通道编号Path、序列号Seqno、时间戳Timestamp、数据流类型Stream type;而其他三个通道发送的网络质量探测包包含前述自定义数据包头加IP/UDP数据包头,IP/UDP数据包头的定义是常规技术,这里不再详述,其他三个通道发送的网络质量探测包大小为60个字节,并且主叫客户端或/和被叫客户端向四个通道发送的网络质量探测包是同时发送的,向四个通道同时发送的四个网络质量探测包的总大小不超过主叫音视频数据或被叫音视频数据的5%,这种方式能实现非常快速质量状态更新频率,容易理解,如果探测数据量小了,必然降低对网络路径监测频率,对网络信号质量变化的敏感度会降低。After the four transmission paths of the 0th channel, the 1st channel, the 2nd channel, and the 3rd channel are established, the network quality detection packet of the currently applied channel between the calling client and the called client is added to the master. Calling audio and video data or a 5-byte custom packet header before the called audio and video data, as shown in Figure 7, the custom packet header contains the header type, channel number Path, sequence number Seqno, timestamp Timestamp, The data stream type Stream type; and the network quality probe packets sent by the other three channels include the foregoing custom packet header plus IP/UDP packet header. The definition of the IP/UDP packet header is a conventional technique, and will not be described in detail here. The network quality probe packet sent by the channel is 60 bytes, and the network quality probe packets sent by the calling client or/and the called client to the four channels are sent simultaneously, and four times are sent simultaneously to the four channels. The total size of the network quality detection packet does not exceed 5% of the calling audio and video data or the called audio and video data. This method can achieve very fast quality status update frequency, which is easy to understand. A small amount of data, the network path will inevitably reduce the frequency of monitoring, the network sensitivity to changes in the signal quality decreases.
传统的RTP/RTCP对网络质量监控没有考虑连续性和数据相关性,监测功能的独立性较高,导致质量状态更新频率很低,尤其是纯音频通信,如果对每个通道单独进行RTCP的质量统计,而同时满足不超过总流量的5%的约束条件,在保证统计精度的情况 下,最差情况更新周期长达34秒左右,本实施例提供的方法,同时对四个通道发送网络质量探测包,并且四个网络质量探测包的总大小不超过主叫音视频数据或被叫音视频数据的5%,可以使得更新周期提高到11倍左右的效率,即在相同流量和相同精度情况下,最差情况更新周期只需要约3秒,在发送更大的音视频码率情况下,本发明以最高每秒1次的频率进行质量状态更新,此时探测包的冗余量要远低于5%。Traditional RTP/RTCP does not consider continuity and data correlation for network quality monitoring. The independence of monitoring functions is high, resulting in low quality update frequency, especially for pure audio communication. If the quality of RTCP is performed separately for each channel. Statistics, while satisfying the constraint of not exceeding 5% of the total flow, in the case of ensuring statistical accuracy The worst case update period is up to about 34 seconds. The method provided in this embodiment sends a network quality probe packet to four channels at the same time, and the total size of the four network quality probe packets does not exceed the calling audio and video data or is Calling 5% of audio and video data can increase the update cycle to about 11 times efficiency. That is, in the case of the same traffic and the same accuracy, the worst case update cycle takes only about 3 seconds to send a larger audio and video bit rate. In this case, the present invention performs quality status update at a frequency of up to 1 time per second, at which time the amount of redundancy of the probe packet is much less than 5%.
另外,主叫客户端或/和被叫客户端间隔一固定时间同时对上述四个通道发送网络质量探测包,从而对上述四个通道的网络质量进行重新探测,进而分别得到上述四个通道新的网络路径质量得分,主交客户端和被叫客户端之间则选取新的网络路径质量得分最高的通道进行音视数据的传输。In addition, the calling client or/and the called client are simultaneously sent to the four channels to send a network quality detection packet at a fixed time, thereby re-detecting the network quality of the above four channels, thereby obtaining the above four channels respectively. The network path quality score, the main network client and the called client select the channel with the highest network path quality score for the transmission of audiovisual data.
最后,本发明还解决了四个通道单个方向的延时估计问题,传统RTCP的做法只能计算通路的往返路径延时rtt(Round-Trip Time),计算方法为现有技术中的常规方法,通路的往返路径延时rtt包含发送方和接收方两个方向的延时总和,因此无法准确的评价单个方向的延时,本发明可以得到四个通道上单个方向的相对延时,得到4条通路单个方向的质量状态以便于做出最佳选择,具体的:网络路径质量得分由以下公式获得。Finally, the present invention also solves the problem of delay estimation in a single direction of four channels. The traditional RTCP method can only calculate the round-trip time delay rtt (Round-Trip Time) of the path, and the calculation method is a conventional method in the prior art. The round-trip path delay rtt of the path includes the sum of delays in both directions of the sender and the receiver, so the delay in a single direction cannot be accurately evaluated. The present invention can obtain the relative delay in a single direction on the four channels, and obtain 4 pieces. The quality status of the path in a single direction is used to make the best choice. Specifically, the network path quality score is obtained by the following formula.
score=factor(path)*(clip3(0,100,Yd)*clip3(0,100,Y1))/100Score=factor(path)*(clip3(0,100,Yd)*clip3(0,100,Y1))/100
参见图8所示,其中score为网络路径质量得分,clip3为一个限定函数,即确保输出值在0到100之间,factor(path)为连接模式的加权因子,根据服务器成本大小,不同的连接模式的factor(path)提前设置;See Figure 8, where score is the network path quality score, clip3 is a finite function, that is, to ensure that the output value is between 0 and 100, factor (path) is the weighting factor of the connection mode, depending on the server cost, different connections The mode factor (path) of the mode is set in advance;
而Yd=-19.58ln(delay)+149.58,其中delay为不同通道下的相对单向路径延时,并且delay=Td(n)-Td_min+rtt_min/2,n=0、1、2、3;And Yd=-19.58ln(delay)+149.58, where delay is a relative one-way path delay under different channels, and delay=Td(n)-Td_min+rtt_min/2, n=0, 1, 2, 3;
Td(0)表示第0通道的单向路径延时,Td(0)=T0-t0-deltaT,deltaT为主叫客户端与被叫客户端的时间差,T0为主叫客户端通过第0通道发送主叫音视频数据的时刻,t0为被叫客户端时刻收到主叫音视频数据的时刻;Td(0) represents the unidirectional path delay of the 0th channel, Td(0)=T0-t0-deltaT, deltaT is the time difference between the calling client and the called client, and T0 is sent by the calling client through the 0th channel. The time of the calling audio and video data, t0 is the time when the called client receives the calling audio and video data at the moment;
Td(1)表示第1通道的单向路径延时,Td(1)=T1-t1-deltaT,deltaT为主叫客户端与被叫客户端的时间差,T1为主叫客户端通过第1通道发送主叫音视频数据的时刻,t1为被叫客户端时刻收到主叫音视频数据的时刻;Td(1) represents the unidirectional path delay of the first channel, Td(1)=T1-t1-deltaT, deltaT is the time difference between the calling client and the called client, and T1 is sent by the calling client through the first channel. The moment when the calling audio and video data is called, t1 is the time when the called client receives the calling audio and video data at the moment;
Td(2)表示第2通道的单向路径延时,Td(2)=T2-t2-deltaT,deltaT为主叫客户端与被叫客户端的时间差,T2为主叫客户端通过第2通道发送主叫音视频数据的时刻,t2为被叫客户端时刻收到主叫音视频数据的时刻;Td(2) represents the unidirectional path delay of the second channel, Td(2)=T2-t2-deltaT, deltaT is the time difference between the calling client and the called client, and T2 is sent by the calling client through the second channel. The moment when the calling audio and video data is called, t2 is the moment when the called client receives the calling audio and video data at the moment;
Td(3)表示第3通道的单向路径延时,Td(3)=T3-t3-deltaT,deltaT为主叫客户端与被叫客户端的时间差,T3为主叫客户端通过第3通道发送主叫音视频数据的时刻,t3为被叫客户端时刻收到主叫音视频数据的时刻;Td(3) indicates the unidirectional path delay of the third channel, Td(3)=T3-t3-deltaT, deltaT is the time difference between the calling client and the called client, and T3 is sent by the calling client through the third channel. The moment when the calling audio and video data is called, t3 is the moment when the called client receives the calling audio and video data at the moment;
Td_min=min(Td(0),Td(1),Td(2),Td(3));Td_min=min(Td(0), Td(1), Td(2), Td(3));
rtt_min=min(rtt(0),rtt(1),rtt(2),rtt(3)),而rtt(0)表示第0通道的往返路径延时;rtt(1) 表示第1通道的往返路径延时;rtt(2)表示第2通道的往返路径延时;rtt(3)表示第3通道的往返路径延时;Rtt_min=min(rtt(0), rtt(1), rtt(2), rtt(3)), and rtt(0) represents the round-trip path delay of channel 0; rtt(1) Indicates the round-trip path delay of the first channel; rtt(2) represents the round-trip path delay of the second channel; rtt(3) represents the round-trip path delay of the third channel;
本发明消除了两个客户端的时间差deltaT,得到4条通路的相对单向延时delay,并且Td_min和rtt_min是通过统计窗口不断迭代更新的,本发明的另一个好处是只需要根据每个通道的一条数据,就能得到结果,大大节省了探测包流量;The invention eliminates the time difference deltaT of two clients, obtains a relative one-way delay delay of four paths, and Td_min and rtt_min are iteratively updated through the statistical window, and another advantage of the present invention is that only according to each channel With one piece of data, the result can be obtained, which greatly saves the flow of the probe packet;
Yl=-29.43ln(PLR)-29.637;PLR为不同通道下的数据丢包率。Yl=-29.43ln(PLR)-29.637; PLR is the data packet loss rate under different channels.
如果不考虑成本因索,factor(path)恒等于1,简单考虑服务器的转发成本,可以设第0通道的加权因子为1,第1通道和第2通道的加权因子均为2,第3通道的加权因子为4。总之,可根据服务器成本大小,服务客户重要性,动态的调整factor(path)。 If the cost is not considered, the factor (path) is always equal to 1, and simply consider the forwarding cost of the server. You can set the weighting factor of the 0th channel to 1, and the weighting factor of the 1st channel and the 2nd channel to 2, the 3rd channel. The weighting factor is 4. In short, according to the size of the server cost, the importance of serving customers, dynamic adjustment of the factor (path).

Claims (7)

  1. 一种基于质量评价的多路径数据传输方法,其特征在于;A multi-path data transmission method based on quality evaluation, characterized in that;
    首先,不同的客户端按照就近原则连接到不同的媒体服务器,然后当主叫客户端向被叫客户端发起音视频通信时,主叫客户端和被叫客户端之间先通过第0通道进行连接;First, different clients connect to different media servers according to the principle of proximity, and then when the calling client initiates audio and video communication to the called client, the calling client and the called client first pass through the 0th channel. connection;
    而与主叫客户端连接的最近的媒体服务器称为主叫端媒体服务器,与被叫客户端连接的最近的媒体服务器称为被叫端媒体服务器;The nearest media server connected to the calling client is called the calling media server, and the nearest media server connected to the called client is called the called media server;
    第0通道的数据传输路径为:主叫客户端将主叫音视频数据发送给主叫端媒体服务器,主叫端媒体服务器将主叫音视频数据转发给被叫端媒体服务器,被叫端媒体服务器再将主叫音视频数据转发给被叫客户端;The data transmission path of the 0th channel is: the calling client sends the calling audio and video data to the calling media server, and the calling media server forwards the calling audio and video data to the called media server, and the called media The server then forwards the calling audio and video data to the called client.
    同样的,被叫客户端将被叫音视频数据发送给被叫端媒体服务器,被叫端媒体服务器再将被叫音视频数据转发给主叫端媒体服务器,主叫端媒体服务器将被叫音视频数据转发给主叫客户端;Similarly, the called client sends the called audio and video data to the called media server, and the called media server forwards the called audio and video data to the calling media server, and the calling media server will be called. The video data is forwarded to the calling client;
    然后,在主叫客户端和被叫客户端之间通过第0通道连接的同时,主叫客户端和被叫客户端之间还启动如下通道进行连接;Then, when the calling client and the called client are connected through the 0th channel, the following channels are also started to be connected between the calling client and the called client;
    第1通道,第1通道的数据传输路径为:主叫客户端将主叫音视频数据发送给主叫端媒体服务器,然后主叫端媒体服务器将主叫音视频数据转发给被叫客户端;同样的,被叫客户端将被叫音视频数据发送给被叫端媒体服务器,然后被叫端媒体服务器将被叫音视频数据转发给主叫客户端;In the first channel, the data transmission path of the first channel is: the calling client sends the calling audio and video data to the calling media server, and then the calling media server forwards the calling audio and video data to the called client; Similarly, the called client sends the called audio and video data to the called media server, and then the called media server forwards the called audio and video data to the calling client;
    第2通道,第2通道的数据传输路径为:主叫客户端将主叫音视频数据发送给被叫端媒体服务器,然后被叫端媒体服务器将主叫音视频数据转发给被叫客户端;同样的,被叫客户端将被叫音视频数据发送给主叫端媒体服务器,然后主叫端媒体服务器将被叫音视频数据转发给主叫客户端;The data transmission path of the second channel and the second channel is: the calling client sends the calling audio and video data to the called media server, and then the called media server forwards the calling audio and video data to the called client; Similarly, the called client sends the called audio and video data to the calling media server, and then the calling media server forwards the called audio and video data to the calling client;
    第3通道,第3通道的数据传输路径为:主叫客户端与被叫客户端之间进行点对点传输机制;The data transmission path of the third channel and the third channel is: a point-to-point transmission mechanism between the calling client and the called client;
    最后,当第0通道、第1通道、第2通道和第3通道这四种个传输路径均建立后,主叫客户端或/和被叫客户端同时对上述四个通道发送网络质量探测包,从而对上述四个通道的网络质量进行探测,进而分别得到上述四个通道的网络路径质量得分,最后主交客户端和被叫客户端之间选取网络路径质量得分最高的通道进行音视数据的传输。Finally, when the four transmission paths of the 0th channel, the 1st channel, the 2nd channel, and the 3rd channel are established, the calling client or/and the called client simultaneously send the network quality detection packet to the above four channels. Therefore, the network quality of the above four channels is detected, and the network path quality scores of the above four channels are respectively obtained, and finally the channel with the highest network path quality score is selected between the primary client and the called client to perform audiovisual data. Transmission.
  2. 根据权利要求1所述的基于质量评价的多路径数据传输方法,其特征在于:主叫客户端和被叫客户端之间当前应用的通道的网络质量探测包为在主叫音视频数据或被叫音视频数据前加的自定义数据包头,该自定义数据包头包含包头类型、通道编号、序列号、时间戳、数据流类型:而其他三个通道发送的网络质量探测包包含前述自定义数据包头加IP/UDP数据包头。 The multi-path data transmission method based on quality evaluation according to claim 1, wherein the network quality detection packet of the currently applied channel between the calling client and the called client is in the calling audio and video data or is A custom data packet header that is added before the audio and video data. The custom data packet header includes a header type, a channel number, a sequence number, a timestamp, and a data stream type: the network quality probe packet sent by the other three channels includes the foregoing custom data. Header plus IP/UDP packet header.
  3. 根据权利要求2所述的基于质量评价的多路径数据传输方法,其特征在于:主叫客户端或/和被叫客户端向四个通道发送的网络质量探测包是同时发送的,并且向四个通道同时发送的四个网络质量探测包的总大小不超过主叫音视频数据或被叫音视频数据的5%。The multi-path data transmission method based on quality evaluation according to claim 2, wherein the network quality detection packet sent by the calling client or/and the called client to the four channels is simultaneously transmitted, and is sent to the fourth The total size of the four network quality probe packets sent simultaneously by the channel does not exceed 5% of the calling audio and video data or the called audio and video data.
  4. 根据权利要求2所述的基于质量评价的多路径数据传输方法,其特征在于:前述自定义数据包头的大小为5个字节,而IP/UDP数据包头为55个字节。The multi-path data transmission method based on quality evaluation according to claim 2, wherein the size of the custom data packet header is 5 bytes, and the IP/UDP data packet header is 55 bytes.
  5. 根据权利要求1所述的基于质量评价的多路径数据传输方法,其特征在于:主叫客户端或/和被叫客户端间隔一固定时间同时对上述四个通道发送网络质量探测包,从而对上述四个通道的网络质量进行重新探测,进而分别得到上述四个通道新的网络路径质量得分,主交客户端和被叫客户端之间则选取新的网络路径质量得分最高的通道进行音视数据的传输。The multi-path data transmission method based on quality evaluation according to claim 1, wherein the calling client or/and the called client send a network quality detection packet to the four channels at a fixed time interval, thereby The network quality of the above four channels is re-detected, and the new network path quality scores of the above four channels are respectively obtained, and the channel with the highest network path quality score is selected between the main client and the called client for audio-visual The transmission of data.
  6. 根据权利要求1所述的基于质量评价的多路径数据传输方法,其特征在于:网络路径质量得分由以下公式获得:The multi-path data transmission method based on quality evaluation according to claim 1, wherein the network path quality score is obtained by the following formula:
    score=factor(path)*(clip3(0,100,Yd)*clip3(0,100,Yl))/100Score=factor(path)*(clip3(0,100,Yd)*clip3(0,100,Yl))/100
    其中score为网络路径质量得分,clip3为一个限定函数,即确保输出值在0到100之间,factor(path)为连接模式的加权因子,根据服务器成本大小,不同的连接模式的factor(path)提前设置;Where score is the network path quality score, clip3 is a finite function, that is, to ensure that the output value is between 0 and 100, factor (path) is the weighting factor of the connection mode, depending on the server cost, the factor (path) of the different connection mode Set in advance;
    而Yd=-19.58ln(delay)+149.58,其中delay为不同通道下的相对单向路径延时,并且delay=Td(n)-Td_min+rtt_min/2,n=0、1、2、3;And Yd=-19.58ln(delay)+149.58, where delay is a relative one-way path delay under different channels, and delay=Td(n)-Td_min+rtt_min/2, n=0, 1, 2, 3;
    Td(0)表示第0通道的单向路径延时,Td(0)=T0-t0-deltaT,deltaT为主叫客户端与被叫客户端的时间差,T0为主叫客户端通过第0通道发送主叫音视频数据的时刻,t0为被叫客户端时刻收到主叫音视频数据的时刻;Td(0) represents the unidirectional path delay of the 0th channel, Td(0)=T0-t0-deltaT, deltaT is the time difference between the calling client and the called client, and T0 is sent by the calling client through the 0th channel. The time of the calling audio and video data, t0 is the time when the called client receives the calling audio and video data at the moment;
    Td(1)表示第1通道的单向路径延时,Td(1)=T1-t1-deltaT,deltaT为主叫客户端与被叫客户端的时间差,T1为主叫客户端通过第1通道发送主叫音视频数据的时刻,t1为被叫客户端时刻收到主叫音视频数据的时刻;Td(1) represents the unidirectional path delay of the first channel, Td(1)=T1-t1-deltaT, deltaT is the time difference between the calling client and the called client, and T1 is sent by the calling client through the first channel. The moment when the calling audio and video data is called, t1 is the time when the called client receives the calling audio and video data at the moment;
    Td(2)表示第2通道的单向路径延时,Td(2)=T2-t2-deltaT,deltaT为主叫客户端与被叫客户端的时间差,T2为主叫客户端通过第2通道发送主叫音视频数据的时刻,t2为被叫客户端时刻收到主叫音视频数据的时刻;Td(2) represents the unidirectional path delay of the second channel, Td(2)=T2-t2-deltaT, deltaT is the time difference between the calling client and the called client, and T2 is sent by the calling client through the second channel. The moment when the calling audio and video data is called, t2 is the moment when the called client receives the calling audio and video data at the moment;
    Td(3)表示第3通道的单向路径延时,Td(3)=T3-t3-deltaT,deltaT为主叫客户端与被叫客户端的时间差,T3为主叫客户端通过第3通道发送主叫音视频数据的时刻,t3为被叫客户端时刻收到主叫音视频数据的时刻;Td(3) indicates the unidirectional path delay of the third channel, Td(3)=T3-t3-deltaT, deltaT is the time difference between the calling client and the called client, and T3 is sent by the calling client through the third channel. The moment when the calling audio and video data is called, t3 is the moment when the called client receives the calling audio and video data at the moment;
    Td_min=min(Td(0),Td(1),Td(2),Td(3));Td_min=min(Td(0), Td(1), Td(2), Td(3));
    rtt_min=min(rtt(0),rtt(1),rtt(2),rtt(3)),而rtt(0)表示第0通道的往返路径延时;rtt(1)表示第1通道的往返路径延时;rtt(2)表示第2通道的往返路径延时;rtt(3)表示第3通道 的往返路径延时;Rtt_min=min(rtt(0), rtt(1), rtt(2), rtt(3)), and rtt(0) represents the round-trip path delay of channel 0; rtt(1) represents the round-trip of channel 1 Path delay; rtt(2) indicates the round-trip path delay of the second channel; rtt(3) indicates the third channel Round trip path delay;
    Yl=-29.43ln(PLR)-29.637;PLR为不同通道下的数据丢包率。Yl=-29.43ln(PLR)-29.637; PLR is the data packet loss rate under different channels.
  7. 根据权利要求6所述的基于质量评价的多路径数据传输方法,其特征在于:所述媒体服务器转发模式的加权因子为1,主叫端媒体服务器转发模式和被叫端媒体服务器转发模式的加权因子均为2,点对点模式的加权因子为4。 The multi-path data transmission method based on quality evaluation according to claim 6, wherein the weighting factor of the media server forwarding mode is 1, the weight of the calling media server forwarding mode and the forwarding mode of the called media server. The factor is 2, and the weighting factor of the point-to-point mode is 4.
PCT/CN2015/000221 2014-10-16 2015-03-31 Multi-path data transmission method based on quality evaluation WO2016058279A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410548340.8 2014-10-16
CN201410548340.8A CN104410509B (en) 2014-10-16 2014-10-16 A kind of multi-path data transmission method based on quality evaluation

Publications (1)

Publication Number Publication Date
WO2016058279A1 true WO2016058279A1 (en) 2016-04-21

Family

ID=52648107

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/000221 WO2016058279A1 (en) 2014-10-16 2015-03-31 Multi-path data transmission method based on quality evaluation

Country Status (2)

Country Link
CN (1) CN104410509B (en)
WO (1) WO2016058279A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019217578A1 (en) * 2018-05-09 2019-11-14 Netsurion Llc Multi-path user datagram protocol
US10616621B2 (en) 2018-06-29 2020-04-07 At&T Intellectual Property I, L.P. Methods and devices for determining multipath routing for panoramic video content
US10623791B2 (en) 2018-06-01 2020-04-14 At&T Intellectual Property I, L.P. Field of view prediction in live panoramic video streaming
US10708494B2 (en) 2018-08-13 2020-07-07 At&T Intellectual Property I, L.P. Methods, systems and devices for adjusting panoramic video content
US10812774B2 (en) 2018-06-06 2020-10-20 At&T Intellectual Property I, L.P. Methods and devices for adapting the rate of video content streaming
US11019361B2 (en) 2018-08-13 2021-05-25 At&T Intellectual Property I, L.P. Methods, systems and devices for adjusting panoramic view of a camera for capturing video content
CN114039955A (en) * 2021-11-05 2022-02-11 安徽电信规划设计有限责任公司 Communication safety monitoring system based on artificial intelligence
CN114553453A (en) * 2020-11-25 2022-05-27 国网山东省电力公司济宁供电公司 Reverse isolation state monitoring method and system, readable storage medium and server
CN117081973A (en) * 2023-10-13 2023-11-17 腾讯科技(深圳)有限公司 Data packet transmission method, apparatus, device, medium and computer program product

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410509B (en) * 2014-10-16 2018-01-05 宁波菊风系统软件有限公司 A kind of multi-path data transmission method based on quality evaluation
CN106656649B (en) * 2016-09-14 2021-01-01 腾讯科技(深圳)有限公司 Channel switching method based on speed measurement in real-time call process, client and server
CN106792798B (en) * 2016-11-28 2020-09-11 北京奇虎科技有限公司 Mobile terminal remote assistance connection detection method and device
CN107370764B (en) * 2017-09-05 2020-06-05 北京奇艺世纪科技有限公司 Audio and video communication system and audio and video communication method
CN108234309B (en) * 2017-12-27 2020-10-27 宁波菊风系统软件有限公司 Network data transmission method
CN108833434B (en) * 2018-07-02 2020-09-08 山东云缦智能科技有限公司 Method for realizing cross-network video call system based on IP bidirectional network set top box
CN111107113A (en) * 2018-10-25 2020-05-05 中国移动通信集团广东有限公司 Video data transmission method and device
CN110247955A (en) * 2019-05-21 2019-09-17 菜鸟智能物流控股有限公司 Unmanned vehicle communication method and unmanned vehicle
CN112367493B (en) * 2021-01-14 2021-06-01 游密科技(深圳)有限公司 Data transmission control method, device, mobile terminal and storage medium
CN112788053A (en) * 2021-01-25 2021-05-11 深圳市欢太科技有限公司 Real-time communication method, device, server, system and storage medium
CN114172967B (en) * 2021-12-14 2023-10-31 广州市百果园网络科技有限公司 Media server distribution method, device, equipment and storage medium
CN115208864B (en) * 2022-08-12 2024-02-06 阿波罗智联(北京)科技有限公司 Data transmission method, device, equipment, vehicle and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843725A (en) * 2012-08-15 2012-12-26 无锡北邮感知技术产业研究院有限公司 Data transmission method and data transmission device
CN103905458A (en) * 2014-04-11 2014-07-02 北京云视天创网络科技有限公司 Streaming media transmission method based on Internet
CN104410509A (en) * 2014-10-16 2015-03-11 宁波菊风系统软件有限公司 A multipath data transmitting method based on quality evaluation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843728A (en) * 2011-06-22 2012-12-26 中兴通讯股份有限公司 Method and system for increasing user downlink and uplink throughput

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843725A (en) * 2012-08-15 2012-12-26 无锡北邮感知技术产业研究院有限公司 Data transmission method and data transmission device
CN103905458A (en) * 2014-04-11 2014-07-02 北京云视天创网络科技有限公司 Streaming media transmission method based on Internet
CN104410509A (en) * 2014-10-16 2015-03-11 宁波菊风系统软件有限公司 A multipath data transmitting method based on quality evaluation

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019217578A1 (en) * 2018-05-09 2019-11-14 Netsurion Llc Multi-path user datagram protocol
US11716644B2 (en) 2018-05-09 2023-08-01 Acumera, Inc. Multi-path user datagram protocol
US11641499B2 (en) 2018-06-01 2023-05-02 At&T Intellectual Property I, L.P. Field of view prediction in live panoramic video streaming
US11190820B2 (en) 2018-06-01 2021-11-30 At&T Intellectual Property I, L.P. Field of view prediction in live panoramic video streaming
US10623791B2 (en) 2018-06-01 2020-04-14 At&T Intellectual Property I, L.P. Field of view prediction in live panoramic video streaming
US10812774B2 (en) 2018-06-06 2020-10-20 At&T Intellectual Property I, L.P. Methods and devices for adapting the rate of video content streaming
US10616621B2 (en) 2018-06-29 2020-04-07 At&T Intellectual Property I, L.P. Methods and devices for determining multipath routing for panoramic video content
US10708494B2 (en) 2018-08-13 2020-07-07 At&T Intellectual Property I, L.P. Methods, systems and devices for adjusting panoramic video content
US11019361B2 (en) 2018-08-13 2021-05-25 At&T Intellectual Property I, L.P. Methods, systems and devices for adjusting panoramic view of a camera for capturing video content
US11671623B2 (en) 2018-08-13 2023-06-06 At&T Intellectual Property I, L.P. Methods, systems and devices for adjusting panoramic view of a camera for capturing video content
CN114553453A (en) * 2020-11-25 2022-05-27 国网山东省电力公司济宁供电公司 Reverse isolation state monitoring method and system, readable storage medium and server
CN114039955A (en) * 2021-11-05 2022-02-11 安徽电信规划设计有限责任公司 Communication safety monitoring system based on artificial intelligence
CN114039955B (en) * 2021-11-05 2024-04-05 安徽电信规划设计有限责任公司 Communication safety monitoring system based on artificial intelligence
CN117081973A (en) * 2023-10-13 2023-11-17 腾讯科技(深圳)有限公司 Data packet transmission method, apparatus, device, medium and computer program product
CN117081973B (en) * 2023-10-13 2024-02-02 腾讯科技(深圳)有限公司 Data packet transmission method, apparatus, device, medium and computer program product

Also Published As

Publication number Publication date
CN104410509A (en) 2015-03-11
CN104410509B (en) 2018-01-05

Similar Documents

Publication Publication Date Title
WO2016058279A1 (en) Multi-path data transmission method based on quality evaluation
EP1335525B1 (en) Method for probing the peer-to-peer quality of service (QOS)
US11388292B2 (en) Monitoring voice-over-IP performance over the internet
US8171123B2 (en) Network bandwidth detection and distribution
US9094315B2 (en) Systems and methods for measuring available capacity and tight link capacity of IP paths from a single endpoint
US8064348B2 (en) Gathering traffic profiles for endpoint devices that are operably coupled to a network
US10455194B1 (en) Robust handling of sudden changes of bandwidth in selective forwarding unit conferences
US9838209B2 (en) Method for subscribing to streams from multicast clients
WO2018176496A1 (en) Iptv service quality detection method, device and system
Sankar et al. Routing protocol convergence comparison using simulation and real equipment
Chodorek et al. A comparison of QoS parameters of WebRTC videoconference with conference bridge placed in private and public cloud
Karl et al. Multimedia optimized routing in OpenFlow networks
Wang et al. TCP-friendly congestion control for the fair streaming of scalable video
Adibi Traffic Classification œ Packet-, Flow-, and Application-based Approaches
Banchuen et al. An SDN framework for video conference in inter-domain network
US11916770B2 (en) Pinpointing sources of jitter in network flows
US9276975B2 (en) Method and apparatus for monitoring quality of service of network
Lugayizi et al. Performance evaluation of OSPF and EIGRP routing Protocols for video streaming over next-generation networks
Nor et al. Enhancing DCCP congestion control mechanism for long delay link
Cao et al. Background traffic-based retransmission algorithm for multimedia streaming transfer over concurrent multipaths
Akiyama et al. Active packet dropping for improving performance fairness among modern TCPs
JP2002204255A (en) Device and method for controlling transmission rate
Sha et al. A performance evaluation method and it's implementation for web service
Wang et al. Multipath live streaming via tcp: Performance and benefits
Li et al. Do twin clouds make smoothness for transoceanic video telephony?

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15850595

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15850595

Country of ref document: EP

Kind code of ref document: A1