WO2012116581A1 - 建立音视频通讯连接的方法和装置 - Google Patents

建立音视频通讯连接的方法和装置 Download PDF

Info

Publication number
WO2012116581A1
WO2012116581A1 PCT/CN2012/070304 CN2012070304W WO2012116581A1 WO 2012116581 A1 WO2012116581 A1 WO 2012116581A1 CN 2012070304 W CN2012070304 W CN 2012070304W WO 2012116581 A1 WO2012116581 A1 WO 2012116581A1
Authority
WO
WIPO (PCT)
Prior art keywords
connection
client
audio
server
video communication
Prior art date
Application number
PCT/CN2012/070304
Other languages
English (en)
French (fr)
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 WO2012116581A1 publication Critical patent/WO2012116581A1/zh
Priority to US13/875,622 priority Critical patent/US20130246642A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1818Conference organisation arrangements, e.g. handling schedules, setting up parameters needed by nodes to attend a conference, booking network resources, notifying involved parties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Definitions

  • the present invention relates to the field of network technologies, and in particular, to a method and apparatus for establishing an audio and video communication connection. Background technique
  • the data transmission channel is generally established by means of end-to-end or client-side transfer data.
  • the ICE (Interactive Co Citation Establ ishment) protocol when establishing a connection path, will try to establish a variety of connection methods (including direct connection, STUN (Session Traversal Utiities for NAT, NAT) Cross-session protocol) connection, TURN (Traversal Using Relay NAT), etc.) and evaluate each connection method, and then select the final transmission mode between two users according to the quality of the connection and the time it takes to create a connection. .
  • connection methods including direct connection, STUN (Session Traversal Utiities for NAT, NAT) Cross-session protocol
  • TURN Traversal Using Relay NAT
  • Embodiments of the present invention provide a method and apparatus for establishing an audio and video communication connection.
  • the technical solution is as follows: A method for establishing an audio and video communication connection, comprising:
  • a device for establishing an audio and video communication connection comprising:
  • a first establishing module configured to establish a server relay connection with multiple clients
  • a second establishing module configured to try to establish a direct connection and/or a client relay connection with the multiple clients;
  • the first establishing module is further configured to disconnect the server connection with the multiple clients if the direct connection or the client relay connection is successful.
  • the embodiment of the present invention establishes a server relay connection with other clients by establishing an audio and video communication connection in a multi-person heterogeneous network environment, and the mechanism ensures that the audio and video channels between multiple people can be established reliably and quickly; Try other connections again, and when the other connections are successful, interrupt the server transfer connection, which ensures that the operating cost of the multi-person audio and video connection path is minimized.
  • FIG. 1 is a flow chart of a method for establishing an audio-video communication connection provided by the present invention
  • FIG. 2 is a flow chart of a method for establishing an audio and video communication connection provided by the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for establishing an audio-video communication connection provided by the present invention.
  • FIG. 4 is a schematic structural diagram of an apparatus for establishing an audio and video communication connection provided by the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus for establishing an audio-video communication connection provided by the present invention. detailed description
  • an embodiment of the present invention provides a method for establishing an audio-video communication connection, as shown in FIG. 1, including:
  • the server connection connection is established with multiple clients, including:
  • the first preset standard is that the client network speed can be quickly and stably established to establish a server transit connection, and the first preset standard is set by the technician according to the experience or the minimum network speed required for the server transit connection, and the embodiment of the present invention No specific restrictions. It should be noted that, for different clients, the distance from the server, the time consumption of communication, etc. can be considered as the first preset standard. For example, client A and client B are far away, and there are many network transit nodes. It can also be considered that the client is not suitable for a client transit connection or a direct connection, and directly establishes a server relay connection for it.
  • the method further includes:
  • the server is connected to the relay connection.
  • the method further includes:
  • connection quality of any of the audio and video communication connections does not meet the second preset criterion, the connection quality is not The connection that meets the second preset standard is switched to another connection method.
  • detecting the current audio and video communication connection specifically comprising:
  • connection quality parameters of each connection in the audio and video communication connection where the connection quality parameter includes connection delay, packet loss, and jitter;
  • the evaluation is performed according to the connection quality parameters of the respective connections and the second preset criterion.
  • the second preset standard in this embodiment is the same as the third preset standard in Embodiment 2.
  • Q wl*delta+w2*loss+w3*jetter
  • Q is the link quality
  • Delta is the connection delay parameter
  • loss is the packet loss parameter
  • jetter is the jitter parameter, if the value of Q is calculated after low-pass filtering If the trend toward increasing or reaching a certain threshold is reached, the quality of the connecting path is poor and does not meet the second preset criterion.
  • the wl, w2, w3 in the above formula are externally adjustable parameters, which is convenient for externally setting the connection quality according to different applications.
  • the second preset standard is a standard set according to the demand of the service for transmission.
  • this mechanism By establishing a server relay connection with other clients when establishing an audio-video communication connection in a multi-person heterogeneous network environment, this mechanism ensures that audio and video channels between multiple people can be established reliably and quickly; try other connections. When other connections are successful, the server transit connection is interrupted, which ensures that the operating cost of the multi-person audio and video connection path is minimized.
  • an embodiment of the present invention provides a method for establishing an audio-video communication connection, and a multi-person tone is established between the client, B, and C.
  • the video connection is described as an example. Referring to FIG. 2, it includes:
  • the server relay connection is a data transfer connection that the client uploads the data to the server first, and then the server forwards the data to other clients.
  • the multi-person audio and video communication can be initiated by any one of the clients A, B, and C.
  • the server and the C-first priority connection are established to ensure the connection between the clients.
  • the data connection path can be established quickly and reliably.
  • the step 201 may be: detecting, when an audio/video connection is initiated by any one of the multiple clients, detecting a network state of the client, where the network state of the client meets the first preset criterion, The client establishes a server transit connection.
  • the client directly establishes a client transit connection or a direct connection.
  • the first preset standard is that the client network speed can be quickly and stably established to establish a server transit connection, and the first preset standard is set by the technician according to the experience or the minimum network speed required for the server transit connection, and the embodiment of the present invention No specific restrictions. It should be noted that, for different clients, the distance from the server, the time consumption of communication, etc.
  • client A and client B can be considered as the first preset standard.
  • client A and client B are far away, and there are many network transit nodes. It can also be considered that the client is not suitable for a client transit connection or a direct connection, and directly establishes a server relay connection for it.
  • the server when the first preset standard is that the client network speed needs to reach 50k, when the client A initiates the audio and video connection, and detects the network status of A, and knows that the network speed of A is 100k, the server establishes a server connection connection, such as , A's network speed is 30k, then establish a client relay connection or direct connection for A.
  • a server connection connection such as , A's network speed is 30k
  • client A After the server transit connection is established, client A attempts to establish a direct connection with each client, and/or, attempts to establish a client relay connection with each client;
  • each client can try to make an audio and video communication connection.
  • each client needs to judge whether the connection status is successful.
  • the client also needs to judge whether the connection status is successful.
  • the direct connection refers to that the data of the client does not pass through other servers or clients, and directly reaches the receiving end (ie, other clients) through routing;
  • the client transit connection means that the data of the client is first uploaded to the third-party client, and then the third-party client forwards the data to other clients.
  • connection is initiated by the client A, and the direct connection or the client transit connection is attempted.
  • This step may also initiate a server relay connection for A, and B attempts a direct connection or a client relay connection.
  • the establishment and initiation of a connection can be any of a number of clients.
  • the server transit connection may be preferentially established due to the large throughput of the server transit connection.
  • step 203 Determine whether the direct connection and the client transit connection are successful, and if yes, proceed to step 204; If no, go to step 206;
  • the server transit connection try to establish a direct connection and a client transit connection with each client. If the direct connection is successfully established, switch to the direct connection mode, and use the direct connection. Connect to perform audio and video communication between the clients. If the direct connection establishment is unsuccessful, determine whether the client connection is successful. If successful, switch to the client relay connection, and use the client to connect to the client. In the audio and video communication, if the client connection is unsuccessful, continue to use the server relay connection, and use the server relay connection to perform audio and video communication between the clients.
  • the order of determining the client transit connection and the direct connection connection in the present invention may also be first determining the connection status of the client transit connection, and determining the direct connection when the client connection connection establishment is unsuccessful.
  • the connection status may be preset by the server according to the performance of the system, etc., and the specific preset method is not described in detail in the present invention.
  • the comparison of the quality of the connection path can be performed by collecting the parameters of the connection path and calculating by a preset algorithm, and obtaining a comparison result.
  • the client is disconnected.
  • the method further includes the following steps: detecting a current audio and video communication connection, when the connection quality of any one of the audio and video communication connections does not meet the third pre- If the standard is set, the connection whose connection quality does not conform to the third preset standard is switched to another connection mode.
  • the detecting the current audio and video communication connection specifically includes:
  • connection quality parameter includes a connection delay delta, a packet loss loss, and a jitter jetter
  • the link quality parameter may also include other parameters that describe the quality of the connection path, which is not specifically limited in the embodiment of the present invention.
  • step S2 the collected link quality parameters need to be processed, for example, weighted summation.
  • Q wl*delta+w2*loss+w3* jetter
  • Q is the link quality, if the value of Q is in low pass filtering After the wave calculation occurs, the trend toward increasing or reaching a certain threshold indicates that the connection path is of poor quality and does not meet the third preset standard.
  • the wl, w2 and w3 in the above formula are externally adjustable parameters, which is convenient for externally setting the connection quality requirements according to different applications.
  • the third preset standard is a standard set according to the demand of the service for transmission.
  • this mechanism By establishing a server relay connection with other clients when establishing an audio-video communication connection in a multi-person heterogeneous network environment, this mechanism ensures that audio and video channels between multiple people can be established reliably and quickly; try other connections.
  • the server transit connection is interrupted, which ensures that the operation cost of the multi-person audio and video connection path is minimized.
  • the connection is successful, the transmission quality of each connection is collected in real time, and the quality is better in real time. Connection switching.
  • the embodiment of the present invention further provides an apparatus for establishing an audio and video communication connection.
  • the apparatus includes: a first establishing module 301, configured to establish a server relay connection with multiple clients;
  • the second establishing module 302 is configured to try to establish a direct connection and/or a client relay connection with the multiple clients.
  • the first establishing module 301 is further configured to: if the direct connection or the client transit connection succeeds , disconnecting the server from the multiple clients.
  • the first establishing module 301 is specifically configured to: when any one of the multiple clients initiates an audio-video connection or joins an audio-video session, detecting a network status of the client, when the network status of the client meets the A preset standard establishes a server relay connection for the client.
  • the first establishing module 301 is further configured to maintain the server transit connection if the direct connection and the client relay connection fail.
  • the device further includes:
  • the detecting module 303 is configured to detect a current audio and video communication connection if the direct connection or the client relay connection is successful, and if the connection quality of any one of the audio and video communication connections does not meet the second preset criterion, The switching module 304 for switching the connection whose connection quality does not conform to the second preset criterion to another connection mode is triggered.
  • the detecting module 303 includes:
  • a parameter collecting unit 303a configured to collect connection quality parameters of each connection in the audio and video communication connection in real time, where the connection quality parameter includes connection delay, packet loss, and jitter;
  • the evaluation unit 303b is configured to perform evaluation according to the connection quality parameter of the each connection and the second preset criterion.
  • the first preset criterion is set according to at least one of the following conditions: the minimum network speed required for the server relay connection, the distance between the client and the server, and the time taken for communication.
  • the second preset standard is a standard set according to the demand of the service for transmission.
  • the device provided in this embodiment may be the same as the method embodiment.
  • the specific implementation process is described in the method embodiment, and details are not described herein.
  • All or part of the above technical solutions provided by the embodiments of the present invention may be completed by hardware related to program instructions, and the program may be stored in a readable storage medium, and the storage medium includes: R0M, RAM, disk or CD. And other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明公开了一种建立音视频通讯连接的方法和装置,属于网络技术领域。该方法包括:与多个客户端建立服务器中转连接;尝试与所述多个客户端建立直连连接和/或客户端中转连接;如果所述直连连接或客户端中转连接成功,断开与所述多个客户端的服务器中转连接。该装置包括:第一建立模块和第二建立模块。该发明通过在建立多人异构网络环境下的音视频通讯连接时,先与其他客户端建立服务器中转连接,该机制保证了多人之间的音视频通路可以可靠快速的建立起来;再尝试其他连接,当其他连接成功时,中断服务器中转连接,保证了最大限度的降低了多人音视频连接通路的运营成本。

Description

建立音视频通讯连接的方法和装置
本申请要求于 2011年 2月 28日提交中国专利局、 申请号为 201110047721. 4、 发明名 称为 "建立音视频通讯连接的方法和装置" 的中国专利申请的优先权, 其全部内容通过引 用结合在本申请中。 技术领域
本发明涉及网络技术领域, 特别说涉及一种建立音视频通讯连接的方法和装置。 背景技术
随着网络技术的发展, 网络用户之间的实时音视频通讯越来越频繁, 在现有的实时音 书
视频通讯中, 考虑到成本的压力, 一般选用端到端、 或者客户端中转数据的方式建立数据 传输通道。例如 ICE (Interactive Co騰 ctivity Establ ishment , 交互式连通建立方式)协 议, 在建立连接通路的时候, 会尝试建立各种连接方式的通路(包括直连、 STUN (Session Traversal Uti l ities for NAT, NAT穿越会话协议)连接、 TURN (Traversal Using Relay NAT, 通过中转穿越 NAT)连接等) 并评测各连接方式, 然后根据连接的质量、 创建连接耗费的时 间来选择某两个用户之间最终的传输方式。
在现有的音视频通讯中, 建立连接过程需要一定的时间尝试, 用户发出多人音视频的 邀请后需要等待一定的时间建立、 选择连接通路, 最终建立音视频通讯连接以完成数据的 传输, 不仅耗时长, 用户的体验不佳, 而且运营成本高。 发明内容
本发明实施例提供了一种建立音视频通讯连接的方法和装置。 所述技术方案如下: 一种建立音视频通讯连接的方法, 包括:
与多个客户端建立服务器中转连接;
尝试与所述多个客户端建立直连连接和 /或客户端中转连接;
如果所述直连连接或客户端中转连接成功, 断开与所述多个客户端的服务器中转连接。 一种建立音视频通讯连接的装置, 包括:
第一建立模块, 用于与多个客户端建立服务器中转连接;
第二建立模块, 用于尝试与所述多个客户端建立直连连接和 /或客户端中转连接; 所述第一建立模块还用于如果所述直连连接或客户端中转连接成功, 断开与所述多个 客户端的服务器中转连接。
本发明实施例通过在建立多人异构网络环境下的音视频通讯连接时, 先与其他客户端 建立服务器中转连接, 该机制保证了多人之间的音视频通路可以可靠快速的建立起来; 再 尝试其他连接, 当其他连接成功时, 中断服务器中转连接, 保证了最大限度的降低了多人 音视频连接通路的运营成本。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例或现有技 术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以 根据这些附图获得其他的附图。
图 1是本发明提供的一种建立音视频通讯连接的方法的流程图;
图 2是本发明提供的一种建立音视频通讯连接的方法的流程图;
图 3是本发明提供的一种建立音视频通讯连接的装置的结构示意图;
图 4是本发明提供的一种建立音视频通讯连接的装置的结构示意图;
图 5是本发明提供的一种建立音视频通讯连接的装置的结构示意图。 具体实施方式
为使本发明的技术方案和优点更加清楚, 下面将结合附图对本发明实施方式作进一步 地详细描述。
实施例 1
为了在复杂网络中建立多人音视频连接通路时减少耗时、 降低运营成本, 本发明实施 例提供了一种建立音视频通讯连接的方法, 参见图 1, 包括:
101: 与多个客户端建立服务器中转连接;
102: 尝试与所述多个客户端建立直连连接和 /或客户端中转连接;
103: 如果所述直连连接或客户端中转连接成功, 断开与所述多个客户端的服务器中转 连接。
其中, 与多个客户端建立服务器中转连接, 具体包括:
在该多个客户端中的任一个客户端发起音视频连接或加入音视频会话时, 检测所述客 户端的网络状态, 当所述客户端的网络状态符合第一预设标准, 则为所述客户端建立服务 器中转连接。
其中, 第一预设标准为客户端网速能够快速稳定的建立服务器中转连接, 该第一预设 标准为技术人员根据经验或服务器中转连接所需的最小网速设定的, 本发明实施例不做具 体限定。 需要说明的是, 对于不同的客户端, 与服务器的远近、 通信的耗时等都可以作为 第一预设标准的考虑因素, 例如, 客户端 A与客户端 B距离遥远, 网络中转节点多, 则也 可以认为该客户端不适合客户端中转连接或直连连接, 直接为其建立服务器中转连接。
进一步地, 所述方法还包括:
如果所述直连连接和客户端中转连接失败, 保持所述服务器中转连接。
进一步地, 所述方法还包括:
如果所述直连连接或客户端中转连接成功, 检测当前的音视频通讯连接, 当所述音视 频通讯连接中任一个连接的连接质量不符合第二预设标准, 则将所述连接质量不符合第二 预设标准的连接切换为其他的连接方式。
其中, 检测当前的音视频通讯连接, 具体包括:
实时收集所述音视频通讯连接中各个连接的连接质量参数, 所述连接质量参数包括连 接的延迟、 丢包和抖动;
根据所述各个连接的连接质量参数和所述第二预设标准进行评估。
需要说明的是, 本实施例中的第二预设标准与实施例 2中的第三预设标准相同。
例如, 使用 Q = wl*delta+w2*loss+w3*jetter; Q为链接质量, Delta为连接的延迟参 数、 loss为丢包参数和 jetter为抖动参数, 如果 Q的值在低通滤波计算后发生向增大的趋 势或者达到之前的某一个阈值, 则说明该连接通路质量较差, 不符合第二预设标准。 上述 公式中的 wl, w2, w3均为外部可调节参数, 方便外部根据不同应用来设置对连接质量的要 求。 其中, 第二预设标准是按照业务对传输的需求设定的标准。
通过在建立多人异构网络环境下的音视频通讯连接时, 先与其他客户端建立服务器中 转连接, 该机制保证了多人之间的音视频通路可以可靠快速的建立起来; 再尝试其他连接, 当其他连接成功时, 中断服务器中转连接, 保证了最大限度的降低了多人音视频连接通路 的运营成本。
实施例 2
为了在复杂网络中建立多人音视频连接通路时减少耗时、 降低运营成本, 本发明实施 例提供了一种建立音视频通讯连接的方法, 以客户端 、 B和 C之间建立多人音视频连接为 例进行说明, 参见图 2, 包括:
201: 在客户端 、 B和 C之间建立服务器中转连接; 在本发明实施例中, 服务器中转连接为客户端将数据先上传到服务器, 再由服务器转 发给其他客户端的数据中转连接。该多人音视频通讯可由 A、 B和 C之中任一个客户端发起, 当服务器接收到建立多人音视频通讯的请求时, 为 B和 C优先建立服务器中转连接, 保 证各客户端之间的数据连接通路可以快速、 可靠的建立起来。
具体地, 该步骤 201还可以为: 在该多个客户端中的任一个客户端发起音视频连接时, 检测客户端的网络状态, 当客户端的网络状态符合第一预设标准, 则为所述客户端建立服 务器中转连接, 另外, 当客户端的网络状态不符合第一预设标准, 则为该客户端直接建立 客户端中转连接或直连连接。 其中, 第一预设标准为客户端网速能够快速稳定的建立服务 器中转连接, 该第一预设标准为技术人员根据经验或服务器中转连接所需的最小网速设定 的, 本发明实施例不做具体限定。 需要说明的是, 对于不同的客户端, 与服务器的远近、 通信的耗时等都可以作为第一预设标准的考虑因素, 例如, 客户端 A与客户端 B距离遥远, 网络中转节点多, 则也可以认为该客户端不适合客户端中转连接或直连连接, 直接为其建 立服务器中转连接。
例如, 当第一预设标准为客户端网速需达到 50k, 当客户端 A发起音视频连接时, 检测 A的网络状态, 获知 A的网速为 100k, 则为 A建立服务器中转连接, 如, A的网速为 30k, 则为 A建立客户端中转连接或直连连接。
202: 服务器中转连接建立后, 客户端 A 尝试与各个客户端建立直连连接, 和 /或, 尝 试与各个客户端建立客户端中转连接;
优选地, 每个客户端都可尝试进行音视频通讯连接。 当多个客户端同时尝试进行直连 连接时, 各个客户端都需进行对连接状态是否成功的判断, 对于, 客户端中转连接, 客户 端也需进行对连接状态是否成功的判断。
在本发明实施例中, 直连连接是指客户端的数据不通过其他服务器或者客户端, 通过 路由后直接达到接收端 (即其他客户端);
在本发明实施例中, 客户端中转连接是指客户端的数据先上传到第三方客户端, 再由 该第三方客户端转发给其他客户端。
在本实施例中, 是由客户端 A发起连接, 并尝试直连或客户端中转连接, 该步骤还可 以为 A发起服务器中转连接, B尝试直连或客户端中转连接。建立和发起连接的可以为多个 客户端中的任意一个。
需要说明的是, 当客户端个数大于预设阈值时, 为了保证通路质量, 由于服务器中转 连接的吞吐量较大, 可优先建立服务器中转连接。
203: 判断该直连连接与客户端中转连接是否都成功, 如果是, 则执行步骤 204; 如果否, 则执行步骤 206;
在本发明实施例中, 一旦服务器中转连接建立起来之后, 再尝试与各客户端建立直连 连接和客户端中转连接, 如果直连连接建立成功, 切换到直连连接方式, 并利用该直连连 接进行客户端之间的音视频通讯, 如果直连连接建立不成功, 则判断客户端中转连接是否 成功, 如果成功, 则切换到客户端中转连接, 并利用该客户端中转连接进行客户端之间的 音视频通讯, 如果客户端中转连接不成功, 继续使用服务器中转连接, 并利用该服务器中 转连接进行客户端之间的音视频通讯。
需要说明的是, 本发明中所述的客户端中转连接和直连连接的判断顺序还可以为先判 断客户端中转连接的连接状态, 当客户端中转连接建立不成功时, 再判断直连连接的连接 状态, 该判断顺序可以由服务器根据系统的性能等进行预设, 具体预设方法本发明不再赘 述。
204: 当直连连接和客户端中转连接都已成功时, 对直连连接和客户端中转连接的质量 进行比较, 并选择质量较好的连接, 断开质量较差的连接;
在本发明实施例中, 对连接通路质量的比较可以通过收集连接通路的参数, 并通过预 设算法计算, 并获得比较结果。
为了方便说明, 本实施例中, 假设直连连接的质量好于客户端中转连接, 则在该步骤 204中, 断开客户端中转连接。
205: 断开与该多个客户端的服务器中转连接;
进一步地, 如果所述直连连接或客户端中转连接成功, 该方法还包括以下步骤: 检测当前的音视频通讯连接, 当所述音视频通讯连接中任一个连接的连接质量不符合 第三预设标准, 则将所述连接质量不符合第三预设标准的连接切换为其他的连接方式。
在该步骤中, 如果直连的服务质量出现了波动, 或者直连连接因为某种原因断开, 切 换到其他连接方式, 如, 客户端中转连接或服务器中转连接。
其中, 检测当前的音视频通讯连接具体包括:
S1 : 实时收集所述音视频通讯连接中各个连接的连接质量参数, 所述连接质量参数包 括连接的延迟 delta、 丢包 loss和抖动 jetter;
其中, 该链接质量参数还可以包括其他描述连接通路质量的参数, 本发明实施例不做 具体限定。
S2: 根据所述各个连接的连接质量参数和所述第三预设标准进行评估。
在步骤 S2中, 需对收集的链接质量参数进行处理, 例如进行加权求和。
例如, 使用 Q = wl*delta+w2*loss+w3* jetter; Q为链接质量, 如果 Q的值在低通滤 波计算后发生向增大的趋势或者达到之前的某一个阈值, 则说明该连接通路质量较差, 不 符合第三预设标准。 上述公式中的 wl, w2 , w3均为外部可调节参数, 方便外部根据不同应 用来设置对连接质量的要求。 其中, 第三预设标准是按照业务对传输的需求设定的标准。
需要说明的是, 本发明中所述的服务器中转连接、 直连连接和客户端中转连接的具体 实现过程属于本领域技术人员可以获知的公知常识, 在此不再赘述。
206: 保持该服务器中转连接。
通过在建立多人异构网络环境下的音视频通讯连接时, 先与其他客户端建立服务器中 转连接, 该机制保证了多人之间的音视频通路可以可靠快速的建立起来; 再尝试其他连接, 当其他连接成功时, 中断服务器中转连接, 保证了最大限度的降低了多人音视频连接通路 的运营成本, 当连接成功后, 实时收集各连接的传输质量, 实时动态地向质量更好的连接 切换。 实施例 3
本发明实施例还提供了一种建立音视频通讯连接的装置, 参见图 3, 该装置包括: 第一建立模块 301, 用于与多个客户端建立服务器中转连接;
第二建立模块 302, 用于尝试与所述多个客户端建立直连连接和 /或客户端中转连接; 所述第一建立模块 301 还用于如果所述直连连接或客户端中转连接成功, 断开与所述 多个客户端的服务器中转连接。
所述第一建立模块 301 具体用于在该多个客户端中的任一个客户端发起音视频连接或 加入音视频会话时, 检测所述客户端的网络状态, 当所述客户端的网络状态符合第一预设 标准, 则为所述客户端建立服务器中转连接。
所述第一建立模块 301 还用于如果所述直连连接和客户端中转连接失败, 保持所述服 务器中转连接。
参见图 4, 所述装置还包括:
检测模块 303, 用于如果所述直连连接或客户端中转连接成功, 检测当前的音视频通讯 连接, 当所述音视频通讯连接中任一个连接的连接质量不符合第二预设标准, 则触发用于 将所述连接质量不符合第二预设标准的连接切换为其他的连接方式的切换模块 304。
参见图 5, 所述检测模块 303包括:
参数收集单元 303a, 用于实时收集所述音视频通讯连接中各个连接的连接质量参数, 所述连接质量参数包括连接的延迟、 丢包和抖动;
评估单元 303b,用于根据所述各个连接的连接质量参数和所述第二预设标准进行评估。 第一预设标准为根据以下至少一个条件进行设定: 服务器中转连接所需的最小网速、 客户端与服务器的远近、 通信的耗时。
第二预设标准是按照业务对传输的需求设定的标准。
本实施例提供的装置, 具体可以服务器, 与方法实施例属于同一构思, 其具体实现过 程详见方法实施例, 这里不再赘述。
本发明实施例提供的上述技术方案的全部或部分可以通过程序指令相关的硬件来完 成, 所述程序可以存储在可读取的存储介质中, 该存储介质包括: R0M、 RAM, 磁碟或者光 盘等各种可以存储程序代码的介质。
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1、 一种建立音视频通讯连接的方法, 其特征在于, 包括:
与多个客户端建立服务器中转连接;
尝试与所述多个客户端建立直连连接和 /或客户端中转连接;
如果所述直连连接或客户端中转连接成功, 断开与所述多个客户端的服务器中转连接。
2、 根据权利要求 1所述的方法, 其特征在于, 与多个客户端建立服务器中转连接, 具体 包括:
在该多个客户端中的任一个客户端发起音视频连接时, 检测所述客户端的网络状态, 当 所述客户端的网络状态符合第一预设标准, 则为所述客户端建立服务器中转连接。
3、根据权利要求 2所述的方法, 其特征在于, 所述第一预设标准为根据以下至少一个条 件进行设定:
服务器中转连接所需的最小网速、 客户端与服务器的远近、 通信的耗时。
4、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括:
如果所述直连连接和客户端中转连接失败, 保持所述服务器中转连接。
5、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括:
如果所述直连连接或客户端中转连接成功, 检测当前的音视频通讯连接, 当所述音视频 通讯连接中任一个连接的连接质量不符合第二预设标准, 则将所述连接质量不符合第二预设 标准的连接切换为其他的连接方式。
6、 根据权利要求 5所述的方法, 其特征在于, 检测当前的音视频通讯连接, 具体包括: 实时收集所述音视频通讯连接中各个连接的连接质量参数, 所述连接质量参数包括连接 的延迟、 丢包和抖动;
根据所述各个连接的连接质量参数和所述第二预设标准进行评估。
7、根据权利要求 5或 6所述的方法, 其特征在于, 所述第二预设标准是按照业务对传输 的需求设定的标准。
8、 一种建立音视频通讯连接的装置, 其特征在于, 包括:
第一建立模块, 用于与多个客户端建立服务器中转连接;
第二建立模块, 用于尝试与所述多个客户端建立直连连接和 /或客户端中转连接; 所述第一建立模块还用于如果所述直连连接或客户端中转连接成功, 断开与所述多个客 户端的服务器中转连接。
9、根据权利要求 8所述的装置, 其特征在于, 所述第一建立模块具体用于在该多个客户 端中的任一个客户端发起音视频连接或加入音视频会话时, 检测所述客户端的网络状态, 当 所述客户端的网络状态符合第一预设标准, 则为所述客户端建立服务器中转连接。
10、 根据权利要求 9所述的装置, 其特征在于, 所述第一预设标准为根据以下至少一个 条件进行设定:
服务器中转连接所需的最小网速、 客户端与服务器的远近、 通信的耗时。
11、 根据权利要求 8所述的装置, 其特征在于, 所述第一建立模块还用于如果所述直连 连接和客户端中转连接失败, 保持所述服务器中转连接。
12、 根据权利要求 8所述的装置, 其特征在于, 所述装置还包括:
检测模块, 用于如果所述直连连接或客户端中转连接成功, 检测当前的音视频通讯连接, 当所述音视频通讯连接中任一个连接的连接质量不符合第二预设标准, 则触发用于将所述连 接质量不符合第二预设标准的连接切换为其他的连接方式的切换模块。
13、 根据权利要求 12所述的装置, 其特征在于, 所述检测模块包括:
参数收集单元, 用于实时收集所述音视频通讯连接中各个连接的连接质量参数, 所述连 接质量参数包括连接的延迟、 丢包和抖动;
评估单元, 用于根据所述各个连接的连接质量参数和所述第二预设标准进行评估。
14、 根据权利要求 12或 13所述的装置, 其特征在于, 所述第二预设标准是按照业务对 传输的需求设定的标准。
PCT/CN2012/070304 2011-02-28 2012-01-13 建立音视频通讯连接的方法和装置 WO2012116581A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US13/875,622 US20130246642A1 (en) 2011-02-28 2013-05-02 Method and apparatus for establishing audio and video communication connection

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110047721.4 2011-02-28
CN201110047721.4A CN102651701B (zh) 2011-02-28 2011-02-28 建立音视频通讯连接的方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/875,622 Continuation US20130246642A1 (en) 2011-02-28 2013-05-02 Method and apparatus for establishing audio and video communication connection

Publications (1)

Publication Number Publication Date
WO2012116581A1 true WO2012116581A1 (zh) 2012-09-07

Family

ID=46693597

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/070304 WO2012116581A1 (zh) 2011-02-28 2012-01-13 建立音视频通讯连接的方法和装置

Country Status (3)

Country Link
US (1) US20130246642A1 (zh)
CN (1) CN102651701B (zh)
WO (1) WO2012116581A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111600883A (zh) * 2020-05-15 2020-08-28 深圳市元征科技股份有限公司 一种车辆诊断方法、系统及电子设备和存储介质

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102916950A (zh) * 2012-10-12 2013-02-06 苏州阔地网络科技有限公司 一种流媒体传输方法及系统
CN104333727B (zh) * 2013-07-22 2019-04-12 腾讯科技(深圳)有限公司 音视频传输通道调控方法、装置和系统
CN104426789B (zh) 2013-08-23 2017-08-11 新华三技术有限公司 软件定义网络中的转发设备控制方法及设备
CN104519022A (zh) * 2013-09-29 2015-04-15 北京新媒传信科技有限公司 一种建立连接通道的方法及装置
US9332561B1 (en) * 2015-04-08 2016-05-03 Ringcentral, Inc. Hybrid communications system using peer-to-peer and centralized architecture
US10715575B2 (en) * 2015-06-02 2020-07-14 Dolby Laboratories Licensing Corporation In-service quality monitoring system with intelligent retransmission and interpolation
CN105025246A (zh) * 2015-07-27 2015-11-04 上海网达软件股份有限公司 一种加速显示对方视频的视频通话系统及视频通话方法
CN105847152A (zh) * 2016-03-15 2016-08-10 上海缔安科技股份有限公司 一种中转点选择方法及客户端
CN110086748B (zh) * 2018-01-25 2022-06-17 中兴通讯股份有限公司 融合设备媒体控制方法、装置及通信终端
CN110868459B (zh) * 2019-11-01 2021-11-02 腾讯科技(深圳)有限公司 数据传输方法、装置、终端及存储介质
CN111787557B (zh) * 2020-07-17 2021-05-14 青岛坤元通讯技术有限公司 一种基于无线通信的信息交换回传系统及方法
CN112367493B (zh) * 2021-01-14 2021-06-01 游密科技(深圳)有限公司 数据传输控制方法、装置、移动终端及存储介质
CN117560357A (zh) * 2022-08-03 2024-02-13 腾讯科技(深圳)有限公司 多媒体资源的传输方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068186A (zh) * 2007-06-05 2007-11-07 华为技术有限公司 一种客户端节点网络拓扑构造方法及流媒体分发系统
CN101141613A (zh) * 2007-10-10 2008-03-12 中国联合通信有限公司 一种视频会议切换控制系统及方法
CN101459881A (zh) * 2007-12-12 2009-06-17 中国移动通信集团公司 消息承载方法以及客户端、消息服务器
CN101594242A (zh) * 2009-06-23 2009-12-02 腾讯科技(深圳)有限公司 一种传输视频数据的方法、系统和装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6804254B1 (en) * 2000-01-04 2004-10-12 Cisco Technology, Inc. System and method for maintaining a communication link
CA2689874C (en) * 2008-12-23 2014-10-21 Bce Inc. Service level selection method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068186A (zh) * 2007-06-05 2007-11-07 华为技术有限公司 一种客户端节点网络拓扑构造方法及流媒体分发系统
CN101141613A (zh) * 2007-10-10 2008-03-12 中国联合通信有限公司 一种视频会议切换控制系统及方法
CN101459881A (zh) * 2007-12-12 2009-06-17 中国移动通信集团公司 消息承载方法以及客户端、消息服务器
CN101594242A (zh) * 2009-06-23 2009-12-02 腾讯科技(深圳)有限公司 一种传输视频数据的方法、系统和装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111600883A (zh) * 2020-05-15 2020-08-28 深圳市元征科技股份有限公司 一种车辆诊断方法、系统及电子设备和存储介质

Also Published As

Publication number Publication date
CN102651701B (zh) 2016-03-09
CN102651701A (zh) 2012-08-29
US20130246642A1 (en) 2013-09-19

Similar Documents

Publication Publication Date Title
WO2012116581A1 (zh) 建立音视频通讯连接的方法和装置
CN104426870B (zh) 远程无线屏幕共享方法、装置及系统
WO2014187214A1 (zh) 一种网页实时通信方法、系统及终端
JP5781691B2 (ja) 多重記述コーディングを用いた携帯マルチメディアサービスのためのマルチパス管理アーキテクチャおよびプロトコル
JP2014501978A5 (ja) ファイルシステムセッションにおけるマルチコネクションのための方法及びシステム
US20140043960A1 (en) Method, tor switch, and system for implementing protection switchover based on trill network
JP2012508993A (ja) セッション・コントロールのための方法およびシステム
WO2011088769A1 (zh) 视频分辨率的切换方法及装置、终端及切换系统
TW201014272A (en) A method for optimizing the data transmission path between the client terminals and the device thereof
WO2015096149A1 (zh) Tcp链路配置方法、装置及设备
WO2014047784A1 (zh) 报文转发路径确定方法及网络设备、控制设备
WO2012110817A1 (en) System and method for monitoring network link quality
WO2014135050A1 (zh) 消息处理方法、装置、网关、机顶盒及网络电视系统
WO2013174327A1 (zh) 一种媒体流传输方法及装置
CN104519414B (zh) 一种流媒体传输的方法和系统
WO2015192682A1 (zh) 一种通信方法以及终端
CN106559396B (zh) 基于Web实时通信的媒体多播方法和系统
WO2013078877A1 (zh) 语音通话的方法、装置及系统
WO2011144158A1 (zh) 用于中间节点自主实现故障定位的方法及系统
WO2011120463A2 (zh) 跨媒介网络中的qos协商方法和系统及网络设备
WO2016173269A1 (zh) 一种在PPPoE认证过程中的报文处理方法及相关设备
WO2013082747A1 (zh) 一种ip路径协商的方法、系统及装置
WO2011029085A2 (en) Methods, systems, and computer readable media for verifying the availability of an internet protocol (ip) media router during a call setup
WO2014008651A1 (zh) Bfd会话建立的方法及路由设备
US10063405B2 (en) Real time transmission monitoring and anomaly detection

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: 12752057

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15/01/2014)

122 Ep: pct application non-entry in european phase

Ref document number: 12752057

Country of ref document: EP

Kind code of ref document: A1