WO2015032087A1 - Method, device, and system for multi-stream multiplexing - Google Patents

Method, device, and system for multi-stream multiplexing Download PDF

Info

Publication number
WO2015032087A1
WO2015032087A1 PCT/CN2013/083125 CN2013083125W WO2015032087A1 WO 2015032087 A1 WO2015032087 A1 WO 2015032087A1 CN 2013083125 W CN2013083125 W CN 2013083125W WO 2015032087 A1 WO2015032087 A1 WO 2015032087A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
terminal
network
media server
decision
Prior art date
Application number
PCT/CN2013/083125
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 华为技术有限公司
Priority to PCT/CN2013/083125 priority Critical patent/WO2015032087A1/en
Priority to CN201380001973.0A priority patent/CN104620669B/en
Publication of WO2015032087A1 publication Critical patent/WO2015032087A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/612Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/764Media network packet handling at the destination 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/20Master-slave selection or change arrangements

Definitions

  • the main terminal recombines the first data and the second data to obtain original data.
  • the master terminal If the master terminal detects a new slave terminal, the master terminal joins the new slave terminal to the personal area network and acquires context information of the new slave terminal, and the new slave terminal Context information is sent to the offload decision server.
  • a second embodiment of the present invention provides a multi-stream concurrent transmission method, including:
  • the offload decision server receives context information of the master terminal and context information of the slave terminal in the same domain network as the master terminal;
  • the second data packet received by the data receiving unit further includes: a path for indicating the path of the second data packet The socket descriptor, the address of the slave terminal, and the address of the master terminal.
  • the information acquiring unit is further configured to: if the detecting unit detects a new The slave information transmitting unit is further configured to send the context information of the new slave terminal to the offload decision server.
  • the media server further includes:
  • the splitting unit is configured to split the original data into first data and second data according to the first ratio, and a ratio of a data amount of the first data to a data amount of the original data is equal to The first ratio is stated.
  • the decision determining unit is configured to use the first ratio as a result of the offloading decision; the first ratio is a ratio of a transmission bandwidth of the network where the master terminal and the slave terminal are respectively located to a total bandwidth, where the total bandwidth is a master terminal and a slave The sum of the transmission bandwidth of the network where the terminal is located.
  • the slave terminal accesses the network through a different access network than the master terminal, such as GSM, WCDMA, CDMA, or a broadband access network.
  • the slave terminal also establishes a personal area network with the master terminal, and sends the respective context information to the master terminal.
  • the reporting context information in this step may be reported periodically (for example, 3 min/time), or may be updated (ie, the context information is updated and reported, and the update does not occur.), specifically "3 ⁇ 4 context information.
  • the manner of the present invention is not limited.
  • the terminal Before the terminal accesses the network, it can establish a connection with the master terminal through Wifi (Wireless Fidelity), Bluetooth (Bluetooth), etc., to form a domain network, and transmit context information to the master terminal. Thereby, the master terminal can interact with the context server for the context information of each terminal in the personal area network.
  • Wifi Wireless Fidelity
  • Bluetooth Bluetooth
  • the master terminal can interact with the context server for the context information of each terminal in the personal area network.
  • the above-mentioned shunting decision can include three aspects: the number of slave terminals, the amount of data from those terminals, and the links on which each slave terminal is located. specifically:
  • the media server works in the passive open mode on the well-known port. After receiving the connection request from the client, the server allocates a temporary port for this connection, so the port used for listening will be released and continue to listen to the next request.
  • This mode of operation is implemented by using a parent-child process in Linux, where the well-known port works on the parent process, and the other terminals (the master terminal and the slave terminal) work on the child process.
  • the primary terminal in the personal area network initiates a session request.
  • the session requests a distribution decision server that is sent to the primary terminal to trigger heterogeneous network convergence decisions.
  • the heterogeneous network convergence decision results will be embodied in the subsequent split-flow decision and data transmission phases.
  • the information acquiring unit 905 is further configured to: if the detecting unit 903 detects a new slave terminal, obtain the context information of the new slave terminal after the slave terminal is added to the personal area network;
  • the primary terminal and the secondary terminal respectively use different network accesses, and the primary terminal establishes a personal area network with the secondary terminal, and the primary terminal sends the context information of the terminal in the personal area network to the decision server through the context server, and the decision server
  • the offloading decision is made, and the media server splits the original data packet according to the result of the offloading decision, and then sends it to the main terminal through different links, and then is restored by the main terminal.
  • Raw data. Data can be transmitted concurrently, making full use of the network resources of the slave terminals that can assist the transmission around the primary terminal, which can improve end-to-end throughput and network resource utilization.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method, device, and system for multi-stream multiplexing. An implementation of the method comprises: a master terminal establishes a connection to a media server via a first network and transmits a service request to the media server; when a slave terminal that establishes a connection to the media server via a second network is detected by the master terminal, same transmits a coordinated transmission request to a streaming decision-making server, establishes a personal area network with the slave terminal to acquire context information of the slave terminal, and transmits the context information of the master terminal and of the slave terminal in the personal area network to the streaming decision-making server; the context information of the master terminal and of the slave terminal is used for executing a streaming decision; the result of the streaming decision is used for splitting raw data that corresponds to the service request into first data and second data; the master terminal receives the first data transmitted by the media server to the master terminal and receives the second data forwarded by the slave terminal from the media server; and, the master terminal recombines the first data and the second data to acquire the raw data. This allows for increased peer-to-peer throughput and network resource utilization rate.

Description

一种多流并发传输方法、 装置和系统  Multi-stream concurrent transmission method, device and system
技术领域 Technical field
本发明涉及通信技术领域,特別涉及一种多流并发传输方法、装置和系统。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a multi-stream concurrent transmission method, apparatus, and system. Background technique
随着无线网络的普及, 终端可以通过多种无线接入技术接入互联网 With the popularity of wireless networks, terminals can access the Internet through multiple wireless access technologies.
( Internet )。 与此同时, 移动终端也经历了从单模、 双模到多模的演进, 并具 备了越来越多无线接口。在这一基石出之上,研究人员致力于通过整合多模终端 的多种接入技术或个域网内不同终端的多种接入技术,使异构网络同时承载一 个数据业务,不仅向用户提供更快的传输速率,而且能够提高网络资源利用率、 业务的可靠性, 增强用户的体验。 该技术的关键在于如何根据业务特点、 网络 情况以及各终端的能力将数据合理地分配到不同的终端,以及如何在接收端将 接收到的数据排序恢复原有的数据。上述个域网( Personal Area Network, PAN ) 是为了实现活动半径小、 业务类型丰富、 面向特定群体、 无线无缝的连接而提 出的新兴无线通信网络技术。 (Internet). At the same time, mobile terminals have evolved from single-mode, dual-mode to multi-mode, with more and more wireless interfaces. On top of this cornerstone, researchers are committed to enabling heterogeneous networks to simultaneously carry one data service by integrating multiple access technologies for multimode terminals or multiple access technologies for different terminals within a personal area network, not only to users. Provides faster transfer rates and increases network resource utilization, business reliability, and user experience. The key to this technology is how to reasonably distribute data to different terminals according to the characteristics of the service, the network and the capabilities of each terminal, and how to sort the received data to restore the original data at the receiving end. The above-mentioned personal area network (PAN) is an emerging wireless communication network technology proposed to realize a small activity radius, a rich service type, and a specific group and wireless seamless connection.
基于 SCTP ( Stream Control Transmission Protocol, 流控制传输协议 )多路 径并行传输受到大家的关注。 SCTP 允许关联的一端绑定多个 IP ( Internet Protocol, 互联网协议)地址, 这种绑定允许发送者将数据通过不同路径发送 到接收端, 从而提高了关联的可靠性。 但目前 SCTP协议只允许使用其中一条 路径进行数据传输。 正常情况下, 数据只在首选路径上传输, 当首选路径的联 通性出现故障时会转到备选路径。 由于, SCTP协议只允许同时使用其中一条 路径进行数据传输, 因此 SCTP协议并不能充分利用多条路径的网络资源, 来 提高端到端的吞吐量, 因而网络资源利用率较低。 发明内容  Multi-path parallel transmission based on SCTP (Stream Control Transmission Protocol) has attracted attention. SCTP allows one end of the association to bind multiple IP (Internet Protocol) addresses. This binding allows the sender to send data to the receiver through different paths, thus improving the reliability of the association. However, the SCTP protocol currently only allows one of the paths to be used for data transmission. Normally, data is only transmitted on the preferred path, and when the connectivity of the preferred path fails, it goes to the alternate path. Since the SCTP protocol only allows one of the paths to be used for data transmission at the same time, the SCTP protocol cannot fully utilize the network resources of multiple paths to improve the end-to-end throughput, and thus the network resource utilization is low. Summary of the invention
本发明实施例提供了一种多流并发传输方法、装置和系统, 用于提高网络 资源利用率。  Embodiments of the present invention provide a multi-stream concurrent transmission method, apparatus, and system for improving network resource utilization.
本发明实施例一方面提供了一种多流并发传输方法, 包括: 主终端通过第一网络与媒体服务器建立连接,并向媒体服务器发送业务请 求; 所述第一网络为所述主终端连接到所述媒体服务器使用的网络; An embodiment of the present invention provides a multi-stream concurrent transmission method, including: The primary terminal establishes a connection with the media server through the first network, and sends a service request to the media server; the first network is a network used by the primary terminal to connect to the media server;
主终端在检测到通过第二网络与媒体服务器建立连接的从终端后,向分流 决策服务器发送协作传输请求,并与从终端建立个域网获取从终端的上下文信 息, 将所述个域网内的主终端和从终端的上下文信息发送给分流决策服务器; 所述主终端和从终端的上下文信息用于执行分流决策;所述分流决策的结果用 于将所述业务请求对应的原始数据拆分为第一数据和第二数据;所述第二网络 为所述从终端连接到所述媒体服务器的网络;  After detecting the slave terminal that establishes the connection with the media server through the second network, the master terminal sends a coordinated transmission request to the offload decision server, and acquires the context information of the slave terminal from the establishment of the personal area network of the slave terminal, and the intra-domain network is The context information of the master terminal and the slave terminal is sent to the offload decision server; the context information of the master terminal and the slave terminal is used to perform a offload decision; the result of the offload decision is used to split the original data corresponding to the service request And being the first data and the second data; the second network is a network that is connected to the media server by the slave terminal;
主终端接收媒体服务器发送给所述主终端的第一数据,接收所述从终端转 发的来自所述媒体服务器的第二数据;  Receiving, by the primary terminal, first data sent by the media server to the primary terminal, and receiving, by the secondary terminal, second data from the media server;
主终端将所述第一数据和第二数据进行重组, 得到原始数据。  The main terminal recombines the first data and the second data to obtain original data.
结合一方面的实现方式,在第一种可选的实现方式中, 所述第一数据和第 二数据包含有:用于表示所述第一数据或第二数据在原始数据中的数据段的标 号;  In combination with the implementation of the first aspect, in the first optional implementation, the first data and the second data include: a data segment used to represent the first data or the second data in the original data. Label
所述主终端将所述第一数据和第二数据进行重组, 得到原始数据包括: 所述主终端按照所述标号对第一数据和第二数据进行排序, 得到原始数 据。  The master terminal reassembles the first data and the second data to obtain original data, including: the primary terminal sorts the first data and the second data according to the label to obtain original data.
结合一方面的第一种可选的实现,在第二种可选的实现方式中, 所述第二 数据包还包含有:  In a second optional implementation manner, the second data packet further includes:
用于表示第二数据包所经过路径的套接字描述符、从终端的地址以及主终 端的地址。  A socket descriptor indicating the path through which the second packet passes, the address of the slave terminal, and the address of the master terminal.
结合一方面或一方面的第一种或一方面的第二种可选的实现,在第三种可 选的实现方式中, 所述方法, 还包括:  In conjunction with the second or optional implementation of the first or one aspect of the aspect, in a third optional implementation, the method further includes:
若所述主终端检测到新的从终端,所述主终端将所述新的从终端加入所述 个域网并获取所述新的从终端的上下文信息,并将所述新的从终端的上下文信 息发送给所述分流决策服务器。  If the master terminal detects a new slave terminal, the master terminal joins the new slave terminal to the personal area network and acquires context information of the new slave terminal, and the new slave terminal Context information is sent to the offload decision server.
本发明实施例二方面提供了一种多流并发传输方法, 包括:  A second embodiment of the present invention provides a multi-stream concurrent transmission method, including:
媒体服务器接收主终端的业务请求, 确定所述业务请求对应的原始数据; 媒体服务器接收分流决策服务器下发的分流决策的结果,所述分流决策由 所述分流决策服务器依据所述主终端的上下文信息以及与所述主终端处于同 一个域网内的从终端的上下文信息确定; The media server receives the service request of the primary terminal, and determines the original data corresponding to the service request; the media server receives the result of the offloading decision delivered by the offloading decision server, where the offloading decision is Determining, by the branching decision server, the context information of the primary terminal and the context information of the secondary terminal in the same domain network as the primary terminal;
媒体服务器按照所述分流决策的结果将所述原始数据拆分为第一数据和 第二数据;  The media server splits the original data into first data and second data according to the result of the offloading decision;
媒体服务器将所述第一数据发送给所述主终端,将所述第二数据发送给从 终端。  The media server transmits the first data to the primary terminal and the second data to the secondary terminal.
结合二方面的实现方式,在第一种可选的实现方式中,将所述原始数据拆 分为第一数据和第二数据之后还包括:  In combination with the implementation of the two aspects, in the first optional implementation, after the splitting the original data into the first data and the second data, the method further includes:
媒体服务器在所述第一数据和第二数据中分別添加用于表示所述第一数 据或第二数据在原始数据中的数据段的标号。  The media server adds, in the first data and the second data, a label for indicating a data segment of the first data or the second data in the original data, respectively.
结合二方面的实现方式或二方面的第一种可选的实现方式,在第二种可选 的实现方式中, 所述分流决策的结果为第一比例, 所述第一比例为将主终端和 从终端各自所在网络的传输带宽占总带宽的比例;  In combination with the implementation of the second aspect or the first optional implementation of the second aspect, in a second optional implementation manner, the result of the offloading decision is a first ratio, where the first ratio is a primary terminal And the ratio of the transmission bandwidth of the slave network to the total bandwidth of the terminal;
媒体服务器按照所述第一比例将所述原始数据拆分为第一数据和第二数 据, 所述第一数据的数据量与所述原始数据的数据量的比例等于所述第一比 例。  The media server splits the original data into first data and second data according to the first ratio, and a ratio of a data amount of the first data to a data amount of the original data is equal to the first ratio.
本发明实施例三方面提供了一种多流并发传输方法, 包括:  A third embodiment of the present invention provides a multi-stream concurrent transmission method, including:
分流决策服务器接收主终端的上下文信息以及与所述主终端处于同一个 域网内的从终端的上下文信息;  The offload decision server receives context information of the master terminal and context information of the slave terminal in the same domain network as the master terminal;
分流决策服务器依据所述主终端的上下文信息以及与所述主终端处于同 一个域网内的从终端的上下文信息确定主终端的业务请求对应的原始数据的 分流决策;  The offloading decision server determines, according to the context information of the primary terminal and the context information of the secondary terminal in the same domain network as the primary terminal, a splitting decision of the original data corresponding to the service request of the primary terminal;
分流决策服务器将所述分流决策的结果发送给所述媒体服务器,指示所述 媒体服务器按照所述拆分策略指定对所述主终端的业务请求对应的原始数据 的进行拆分。  The offloading decision server sends the result of the offloading decision to the media server, instructing the media server to perform splitting of the original data corresponding to the service request of the primary terminal according to the splitting policy.
结合三方面的实现方式, 在第一种可选的实现方式中, 上下文信息包括: 表示上下文对应终端所在网络的传输带宽;  In combination with the implementation of the three aspects, in the first optional implementation manner, the context information includes: indicating a transmission bandwidth of a network where the context corresponding terminal is located;
所述依据所述主终端的上下文信息以及与所述主终端处于同一个域网内 的从终端的上下文信息确定主终端的业务请求对应的原始数据的分流决策包 括: And the offloading decision packet for determining the original data corresponding to the service request of the primary terminal according to the context information of the primary terminal and the context information of the secondary terminal in the same domain network as the primary terminal Includes:
分流决策服务器将第一比例作为分流决策的结果;所述第一比例为主终端 和从终端各自所在网络的传输带宽占总带宽的比例,所述总带宽为主终端和从 终端所在网络的传输带宽的总和。  The offload decision server uses the first ratio as a result of the offloading decision; the first ratio is a ratio of the transmission bandwidth of the main terminal and the slave network in which the slave terminal is located to the total bandwidth, and the total bandwidth is transmitted by the main terminal and the network where the slave terminal is located. The sum of the bandwidth.
本发明实施例四方面提供了一种终端, 包括:  A fourth aspect of the present invention provides a terminal, including:
连接建立单元, 用于通过第一网络使主终端与媒体服务器建立连接; 所述 第一网络为所述主终端连接到所述媒体服务器使用的网络;  a connection establishing unit, configured to establish a connection between the primary terminal and the media server by using the first network; the first network is a network used by the primary terminal to connect to the media server;
业务请求发送单元, 用于在连接建立单元与媒体服务器建立连接后, 向媒 体服务器发送业务请求;  a service request sending unit, configured to send a service request to the media server after the connection establishing unit establishes a connection with the media server;
检测单元, 用于检测是否有通过第二网络与媒体服务器建立连接的从终 端; 所述第二网络为所述从终端连接到所述媒体服务器的网络;  a detecting unit, configured to detect whether there is a slave terminal that establishes a connection with the media server through the second network; the second network is a network that is connected to the media server by the slave terminal;
协作请求发送单元,用于在所述检测单元检测到通过第二网络与媒体服务 器建立连接的从终端后, 向分流决策服务器发送协作传输请求;  a collaboration request sending unit, configured to send a coordinated transmission request to the offload decision server after the detecting unit detects the slave terminal that establishes a connection with the media server through the second network;
信息获取单元, 用于与从终端建立个域网获取从终端的上下文信息; 信息发送单元,用于将所述个域网内的主终端和从终端的上下文信息发送 给分流决策服务器; 所述主终端和从终端的上下文信息用于执行分流决策; 所 述分流决策的结果用于将所述业务请求对应的原始数据拆分为第一数据和第 二数据;  An information acquiring unit, configured to acquire context information of the slave terminal from the terminal to establish a personal area network; the information sending unit is configured to send the context information of the master terminal and the slave terminal in the personal area network to the offload decision server; The context information of the master terminal and the slave terminal is used to perform the offloading decision; the result of the offloading decision is used to split the original data corresponding to the service request into the first data and the second data;
数据接收单元, 用于接收媒体服务器发送给所述主终端的第一数据,接收 所述从终端转发的来自所述媒体服务器的第二数据;  a data receiving unit, configured to receive first data sent by the media server to the primary terminal, and receive second data from the media server that is forwarded by the secondary terminal;
数据重组单元,用于将所述第一数据和第二数据进行重组,得到原始数据。 结合四方面的实现方式,在第一种可选的实现方式中, 所述第一数据和第 二数据包含有:用于表示所述第一数据或第二数据在原始数据中的数据段的标 号;  And a data recombining unit, configured to recombine the first data and the second data to obtain original data. In combination with the implementation of the four aspects, in the first optional implementation, the first data and the second data include: a data segment used to represent the first data or the second data in the original data. Label
所述数据重组单元, 用于按照所述标号对第一数据和第二数据进行排序, 得到原始数据。  The data recombining unit is configured to sort the first data and the second data according to the label to obtain original data.
结合四方面的第一种可选的实现,在第二种可选的实现方式中, 所述数据 接收单元接收的所述第二数据包还包含有:用于表示第二数据包所经过路径的 套接字描述符、 从终端的地址以及主终端的地址。 结合四方面或四方面的第一种或四方面的第二种可选的实现,在第三种可 选的实现方式中, 所述信息获取单元,还用于若所述检测单元检测到新的从终 所述信息发送单元,还用于将所述新的从终端的上下文信息发送给所述分 流决策服务器。 With reference to the first optional implementation of the four aspects, in the second optional implementation, the second data packet received by the data receiving unit further includes: a path for indicating the path of the second data packet The socket descriptor, the address of the slave terminal, and the address of the master terminal. In combination with the fourth or fourth aspect, the second optional implementation of the fourth or fourth aspect, in the third optional implementation, the information acquiring unit is further configured to: if the detecting unit detects a new The slave information transmitting unit is further configured to send the context information of the new slave terminal to the offload decision server.
本发明实施例五方面提供了一种媒体服务器, 包括:  A fifth aspect of the present invention provides a media server, including:
业务请求接收单元, 用于接收主终端的业务请求;  a service request receiving unit, configured to receive a service request of the primary terminal;
数据确定单元,用于确定所述业务请求接收单元接收的业务请求对应的原 始数据;  a data determining unit, configured to determine original data corresponding to the service request received by the service request receiving unit;
决策接收单元, 用于接收分流决策服务器下发的分流决策的结果, 所述分 流决策由所述分流决策服务器依据所述主终端的上下文信息以及与所述主终 端处于同一个域网内的从终端的上下文信息确定;  a decision receiving unit, configured to receive a result of the offloading decision delivered by the offloading decision server, where the offloading decision is performed by the offloading decision server according to context information of the primary terminal and a slave in the same domain network as the primary terminal The context information of the terminal is determined;
拆分单元,用于按照所述决策接收单元接收的分流决策的结果将所述数据 确定单元确定的原始数据拆分为第一数据和第二数据;  a splitting unit, configured to split the original data determined by the data determining unit into the first data and the second data according to a result of the splitting decision received by the decision receiving unit;
数据发送单元, 用于将所述第一数据发送给所述主终端,将所述第二数据 发送给从终端。  And a data sending unit, configured to send the first data to the primary terminal, and send the second data to the secondary terminal.
结合五方面的实现方式, 在第一种可选的实现方式中, 所述媒体服务器, 还包括:  In combination with the implementation of the five aspects, in the foregoing optional implementation, the media server further includes:
标号单元,用于将所述拆分单元将原始数据拆分为第一数据和第二数据之 后,在所述第一数据和第二数据中分別添加用于表示所述第一数据或第二数据 在原始数据中的数据段的标号。  a labeling unit, configured to, after the splitting unit splits the original data into the first data and the second data, respectively adding, in the first data and the second data, the first data or the second data The label of the data segment of the data in the original data.
结合五方面的实现方式或五方面的第一种可选的实现方式,在第二种可选 的实现方式中, 所述分流决策的结果为第一比例, 所述第一比例为将主终端和 从终端各自所在网络的传输带宽占总带宽的比例;  In the second optional implementation manner, the result of the offloading decision is a first ratio, and the first ratio is a primary terminal, in combination with the implementation manner of the five aspects, or the first optional implementation manner of the five aspects. And the ratio of the transmission bandwidth of the slave network to the total bandwidth of the terminal;
所述拆分单元,用于按照所述第一比例将所述原始数据拆分为第一数据和 第二数据,所述第一数据的数据量与所述原始数据的数据量的比例等于所述第 一比例。  The splitting unit is configured to split the original data into first data and second data according to the first ratio, and a ratio of a data amount of the first data to a data amount of the original data is equal to The first ratio is stated.
本发明实施例六方面提供了一种分流决策服务器, 包括:  A sixth aspect of the present invention provides a traffic distribution decision server, including:
信息接收单元,用于接收主终端的上下文信息以及与所述主终端处于同一 个域网内的从终端的上下文信息; An information receiving unit, configured to receive context information of the primary terminal and be the same as the primary terminal Context information of the slave terminal within the personal area network;
决策确定单元,用于依据所述主终端的上下文信息以及与所述主终端处于 同一个域网内的从终端的上下文信息确定主终端的业务请求对应的原始数据 的分流决策;  a decision determining unit, configured to determine, according to the context information of the primary terminal and the context information of the secondary terminal in the same domain network as the primary terminal, a branching decision of the original data corresponding to the service request of the primary terminal;
决策发送单元, 用于将所述分流决策的结果发送给所述媒体服务器,指示 所述媒体服务器按照所述拆分策略指定对所述主终端的业务请求对应的原始 数据的进行拆分。  And a decision sending unit, configured to send the result of the offloading decision to the media server, and instruct the media server to perform splitting of the original data corresponding to the service request of the primary terminal according to the splitting policy.
结合六方面的实现方式, 在第一种可选的实现方式中, 上下文信息包括: 表示上下文对应终端所在网络的传输带宽;  In combination with the implementation of the six aspects, in the first optional implementation manner, the context information includes: indicating a transmission bandwidth of a network where the context corresponds to the terminal;
所述决策确定单元, 用于将第一比例作为分流决策的结果; 所述第一比例 为主终端和从终端各自所在网络的传输带宽占总带宽的比例,所述总带宽为主 终端和从终端所在网络的传输带宽的总和。  The decision determining unit is configured to use the first ratio as a result of the offloading decision; the first ratio is a ratio of a transmission bandwidth of the network where the master terminal and the slave terminal are respectively located to a total bandwidth, where the total bandwidth is a master terminal and a slave The sum of the transmission bandwidth of the network where the terminal is located.
本发明实施例七方面提供给了一种多流并发传输系统, 包括: 媒体服务器 和分流决策服务器;  A seventh embodiment of the present invention provides a multi-stream concurrent transmission system, including: a media server and a offload decision server;
其中,所述媒体服务器为本发明实施例五方面提供的任意一项的媒体服务 器, 分流决策服务器为本发明实施例六方面提供的任意一项的分流决策服务 器。  The media server is any one of the media servers provided by the fifth aspect of the present invention, and the offloading decision server is the offloading decision server provided by any one of the six aspects of the embodiments of the present invention.
从以上技术方案可以看出, 本发明实施例具有以下优点: 主终端和从终端 分別采用不同的网络接入, 主终端与从终端建立个域网, 主终端将个域网内终 端的上下文信息发送到决策服务器, 由决策服务器进行分流决策, 由媒体服务 器依据分流决策的结果对原始数据包进行拆分,然后通过不同链路发送到主终 端, 再由主终端恢复出原始数据。 数据可以并发传输, 充分利用了主终端周围 可协助传输的从终端的网络资源, 可以提高端到端的吞吐量和网络资源利用 率。 附图说明  As can be seen from the foregoing technical solutions, the embodiments of the present invention have the following advantages: The primary terminal and the secondary terminal respectively use different network accesses, and the primary terminal establishes a personal area network with the secondary terminal, and the primary terminal sets the context information of the terminal in the personal area network. The data is sent to the decision server, and the decision server performs the offload decision. The media server splits the original data packet according to the result of the split decision, and then sends the original data packet to the main terminal through different links, and then the original data is restored by the main terminal. Data can be transmitted concurrently, making full use of the network resources of the slave terminals that can assist the transmission around the primary terminal, which can improve end-to-end throughput and network resource utilization. DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所 需要使用的附图作筒要介绍, 显而易见地, 下面描述中的附图仅仅是本发明的 一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提 下, 还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, without premise of creative labor Further drawings can also be obtained from these figures.
图 1为本发明实施例方法流程示意图;  1 is a schematic flowchart of a method according to an embodiment of the present invention;
图 2为本发明实施例方法流程示意图;  2 is a schematic flowchart of a method according to an embodiment of the present invention;
图 3为本发明实施例方法流程示意图;  3 is a schematic flowchart of a method according to an embodiment of the present invention;
图 4为本发明实施例方法流程示意图;  4 is a schematic flowchart of a method according to an embodiment of the present invention;
图 5为本发明实施例组网结构示意图;  FIG. 5 is a schematic structural diagram of a networking of an embodiment of the present invention; FIG.
图 6为本发明并发服务器结构示意图;  6 is a schematic structural diagram of a concurrent server according to the present invention;
图 7为本发明实施例终端发起会话的信令流程示意图;  7 is a schematic flowchart of a signaling process initiated by a terminal according to an embodiment of the present invention;
图 8为本发明实施例恢复数据方法流程示意图;  8 is a schematic flowchart of a method for restoring data according to an embodiment of the present invention;
图 9为本发明实施例终端结构示意图;  9 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图 10为本发明实施例媒体服务器结构示意图;  10 is a schematic structural diagram of a media server according to an embodiment of the present invention;
图 11为本发明实施例媒体服务器结构示意图;  11 is a schematic structural diagram of a media server according to an embodiment of the present invention;
图 12为本发明实施例分流决策服务器结构示意图;  12 is a schematic structural diagram of a branching decision server according to an embodiment of the present invention;
图 13为本发明实施例系统结构示意图;  13 is a schematic structural diagram of a system according to an embodiment of the present invention;
图 14为本发明实施例终端结构示意图;  14 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图 15为本发明实施例媒体服务器结构示意图;  15 is a schematic structural diagram of a media server according to an embodiment of the present invention;
图 16为本发明实施例分流决策服务器结构示意图。 具体实施方式  FIG. 16 is a schematic structural diagram of a branching decision server according to an embodiment of the present invention. detailed description
为了使本发明的目的、技术方案和优点更加清楚, 下面将结合附图对本发 明作进一步地详细描述, 显然, 所描述的实施例仅仅是本发明一部份实施例, 而不是全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其它实施例, 都属于本发明保护的范围。  The present invention will be further described in detail with reference to the accompanying drawings, in which FIG. . All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供了一种多流并发传输方法,本实施例方案可以在主终端 侧实现, 请参阅图 1所示, 包括:  The embodiment of the present invention provides a multi-stream concurrent transmission method. The solution in this embodiment can be implemented on the main terminal side. Referring to FIG. 1, the method includes:
101 : 主终端通过第一网络与媒体服务器建立连接, 并向媒体服务器发送 业务请求; 所述第一网络为所述主终端连接到所述媒体服务器使用的网络; 上述第一网络一般可以为 WLAN ( Wireless Local Area Network, 无线局 域网)也可以是其它网络, 本发明实施例对此不予限定, 后续提到的第二网络 是与第一网络不完全相同的网络,为了区分主终端和从终端接入到媒体服务器 使用的网络, 使用第一网络和第二网络来区分。 第二网络一般可以是 3G ( The third Generation Mobile Telecommunicatio , 第三代移动通信网)、 4G网终等, 例如: CDMA ( Code Division Multiple Access,码分多址接入)网络、 WCDMA ( Wideband Code Division Multiple Access, 宽带码分多址接入)、 LTE ( Long Term Evolution, 长期演进)、 GSM ( Global System for Mobile communications , 全球移动通信系统), 宽带网络等。 第一网络和第二网络具体网络类型本发明 实施例不予限定。 101: The primary terminal establishes a connection with the media server through the first network, and sends a service request to the media server; the first network is a network used by the primary terminal to connect to the media server; the first network may be a WLAN. (Wireless Local Area Network, WLAN) may also be other networks, which is not limited by the embodiment of the present invention, and the second network mentioned later It is a network that is not identical to the first network. In order to distinguish the primary terminal from the network used by the terminal to access the media server, the first network and the second network are used to distinguish. The second network may generally be 3G (The Third Generation Mobile Telecommunicatio), 4G network terminal, etc., for example: CDMA (Code Division Multiple Access) network, WCDMA (Wideband Code Division) Multiple Access, Wideband Code Division Multiple Access, LTE (Long Term Evolution), GSM (Global System for Mobile communications), broadband network, etc. The first network and the second network specific network type are not limited in the embodiment of the present invention.
102: 主终端在检测到通过第二网络与媒体服务器建立连接的从终端后, 向分流决策服务器发送协作传输请求,并与从终端建立个域网获取从终端的上 下文信息,将上述个域网内的主终端和从终端的上下文信息发送给分流决策服 务器; 上述主终端和从终端的上下文信息用于执行分流决策; 上述分流决策的 结果用于将上述业务请求对应的原始数据拆分为第一数据和第二数据;所述第 二网络为所述从终端连接到所述媒体服务器的网络;  102: After detecting the slave terminal that establishes the connection with the media server by using the second network, the master terminal sends a coordinated transmission request to the offload decision server, and acquires context information of the slave terminal from the establishment of the personal area network of the slave terminal, and the foregoing personal area network The context information of the master terminal and the slave terminal is sent to the offload decision server; the context information of the master terminal and the slave terminal is used to perform the offload decision; the result of the offload decision is used to split the original data corresponding to the service request into the first a data and a second data; the second network is a network in which the slave terminal is connected to the media server;
103: 主终端接收媒体服务器发送给上述主终端的第一数据, 接收上述从 终端转发的来自上述媒体服务器的第二数据;  103: The primary terminal receives the first data sent by the media server to the primary terminal, and receives the second data that is forwarded by the secondary terminal from the media server.
104: 主终端将上述第一数据和第二数据进行重组, 得到原始数据。  104: The primary terminal recombines the first data and the second data to obtain original data.
以上实施例, 主终端和从终端分別采用不同的网络接入, 主终端与从终端 建立个域网,主终端将个域网内终端的上下文信息可以通过上下文服务器发送 到决策服务器, 由决策服务器进行分流决策, 由媒体服务器依据分流决策的结 果对原始数据包进行拆分, 然后通过不同链路发送到主终端,再由主终端恢复 出原始数据。数据可以并发传输, 充分利用了主终端周围可协助传输的从终端 的网络资源, 可以提高端到端的吞吐量和网络资源利用率。  In the above embodiment, the primary terminal and the secondary terminal respectively use different network accesses, and the primary terminal establishes a personal area network with the secondary terminal, and the primary terminal sends the context information of the terminal in the personal area network to the decision server through the context server, and the decision server The offloading decision is made, and the original data packet is split by the media server according to the result of the offloading decision, and then sent to the main terminal through different links, and then the original data is restored by the main terminal. Data can be transmitted concurrently, making full use of the network resources of the slave terminals that can assist the transmission around the primary terminal, which can improve end-to-end throughput and network resource utilization.
可选地, 上述第一数据和第二数据包含有: 用于表示上述第一数据或第二 数据在原始数据中的数据段的标号;上述主终端将上述第一数据和第二数据进 行重组,得到原始数据包括: 上述主终端按照上述标号对第一数据和第二数据 进行排序, 得到原始数据。  Optionally, the first data and the second data include: a label for indicating a data segment of the first data or the second data in the original data; and the primary terminal recombines the first data and the second data Obtaining the original data includes: the foregoing main terminal sorts the first data and the second data according to the above label to obtain the original data.
进一步地, 上述第二数据包还包含有: 用于表示第二数据包所经过路径的 套接字描述符、 从终端的地址以及主终端的地址。 进一步地, 上述方法还包括: 若所述主终端检测到新的从终端, 所述主终 端将上述新的从终端加入上述个域网并获取上述新的从终端的上下文信息,并 将上述新的从终端的上下文信息发送给上述分流决策服务器。 Further, the foregoing second data packet further includes: a socket descriptor for indicating a path through which the second data packet passes, an address of the slave terminal, and an address of the master terminal. Further, the method further includes: if the master terminal detects a new slave terminal, the master terminal adds the new slave terminal to the personal area network and acquires context information of the new slave terminal, and the new The context information of the slave terminal is sent to the above-mentioned offload decision server.
本发明实施例还提供了另一种多流并发传输方法,本实施例方法可以在媒 体服务器侧实现, 如图 2所示, 包括:  The embodiment of the present invention further provides another multi-stream concurrent transmission method. The method in this embodiment can be implemented on the media server side. As shown in FIG. 2, the method includes:
201 : 媒体服务器接收主终端的业务请求, 确定上述业务请求对应的原始 数据;  201: The media server receives the service request of the primary terminal, and determines the original data corresponding to the service request.
202: 媒体服务器接收分流决策服务器下发的分流决策的结果, 上述分流 决策由上述分流决策服务器依据上述主终端的上下文信息以及与上述主终端 处于同一个域网内的从终端的上下文信息确定;  202: The media server receives a result of the offloading decision delivered by the offloading decision server, where the offloading decision is determined by the offloading decision server according to the context information of the primary terminal and the context information of the slave terminal in the same domain network as the primary terminal;
203: 媒体服务器按照上述分流决策的结果将上述原始数据拆分为第一数 据和第二数据;  203: The media server splits the original data into the first data and the second data according to the result of the foregoing offloading decision.
进一步地,将上述原始数据拆分为第一数据和第二数据之后还包括: 媒体 服务器在上述第一数据和第二数据中分別添加用于表示上述第一数据或第二 数据在原始数据中的数据段的标号。  Further, after the splitting the foregoing original data into the first data and the second data, the method further includes: adding, by the media server, the first data and the second data respectively to indicate that the first data or the second data is in the original data The label of the data segment.
可选地, 若上述分流决策的结果为第一比例, 上述第一比例为将主终端和 从终端各自所在网络的传输带宽占总带宽的比例;媒体服务器按照上述第一比 例将上述原始数据拆分为第一数据和第二数据,上述第一数据的数据量与上述 原始数据的数据量的比例等于上述第一比例。  Optionally, if the result of the foregoing offloading decision is a first ratio, the first ratio is a ratio of a transmission bandwidth of a network where the master terminal and the slave terminal respectively belong to a total bandwidth; and the media server splits the original data according to the first ratio. Dividing into the first data and the second data, the ratio of the data amount of the first data to the data amount of the original data is equal to the first ratio.
204: 媒体服务器将上述第一数据发送给上述主终端, 将上述第二数据发 送给从终端。  204: The media server sends the first data to the primary terminal, and sends the second data to the secondary terminal.
以上实施例, 主终端和从终端分別采用不同的网络接入, 主终端与从终端 建立个域网,主终端将个域网内终端的上下文信息可以通过上下文服务器发送 到决策服务器, 由决策服务器进行分流决策, 由媒体服务器依据分流决策的结 果对原始数据包进行拆分, 然后通过不同链路发送到主终端,再由主终端恢复 出原始数据。数据可以并发传输, 充分利用了主终端周围可协助传输的从终端 的网络资源, 可以提高端到端的吞吐量和网络资源利用率。  In the above embodiment, the primary terminal and the secondary terminal respectively use different network accesses, and the primary terminal establishes a personal area network with the secondary terminal, and the primary terminal sends the context information of the terminal in the personal area network to the decision server through the context server, and the decision server The offloading decision is made, and the original data packet is split by the media server according to the result of the offloading decision, and then sent to the main terminal through different links, and then the original data is restored by the main terminal. Data can be transmitted concurrently, making full use of the network resources of the slave terminals that can assist the transmission around the primary terminal, which can improve end-to-end throughput and network resource utilization.
本发明实施例还提供了另一种多流并发传输方法,本实施例方法可以在分 流决策服务器侧实现, 如图 3所示, 包括: 301 : 分流决策服务器接收主终端的上下文信息以及与上述主终端处于同 一个域网内的从终端的上下文信息; The embodiment of the present invention further provides another multi-stream concurrent transmission method. The method in this embodiment can be implemented on the side of the offloading decision server. As shown in FIG. 3, the method includes: 301: The offload decision server receives context information of the master terminal and context information of the slave terminal in the same domain network as the master terminal.
302: 分流决策服务器依据上述主终端的上下文信息以及与上述主终端处 于同一个域网内的从终端的上下文信息确定主终端的业务请求对应的原始数 据的分流决策;  302: The offload decision server determines, according to the context information of the primary terminal, and the context information of the slave terminal that is in the same domain network as the master terminal, the offloading decision of the original data corresponding to the service request of the master terminal;
上下文信息包括: 表示上下文对应终端所在网络的传输带宽; 上述依据上 述主终端的上下文信息以及与上述主终端处于同一个域网内的从终端的上下 文信息确定主终端的业务请求对应的原始数据的分流决策包括:分流决策服务 器将第一比例作为分流决策的结果;上述第一比例为主终端和从终端各自所在 网络的传输带宽占总带宽的比例,上述总带宽为主终端和从终端所在网络的传 输带宽的总和。  The context information includes: a transmission bandwidth indicating a network in which the context corresponds to the terminal; the foregoing determining the original data corresponding to the service request of the primary terminal according to the context information of the primary terminal and the context information of the secondary terminal in the same domain network as the primary terminal The shunting decision includes: the shunting decision server uses the first ratio as a result of the shunting decision; the first ratio is the ratio of the transmission bandwidth of the main terminal and the slave terminal respectively to the total bandwidth, and the total bandwidth is the network of the master terminal and the slave terminal. The sum of the transmission bandwidths.
303: 将上述分流决策的结果发送给上述媒体服务器, 指示上述媒体服务 器按照上述拆分策略指定对上述主终端的业务请求对应的原始数据的进行拆 分。  303: Send the result of the foregoing offloading decision to the foregoing media server, and instruct the media server to perform splitting of the original data corresponding to the service request of the primary terminal according to the splitting policy.
以上实施例, 主终端和从终端分別采用不同的网络接入, 主终端与从终端 建立个域网,主终端将个域网内终端的上下文信息可以通过上下文服务器发送 到决策服务器, 由决策服务器进行分流决策, 由媒体服务器依据分流决策的结 果对原始数据包进行拆分, 然后通过不同链路发送到主终端,再由主终端恢复 出原始数据。数据可以并发传输, 充分利用了主终端周围可协助传输的从终端 的网络资源, 可以提高端到端的吞吐量和网络资源利用率。  In the above embodiment, the primary terminal and the secondary terminal respectively use different network accesses, and the primary terminal establishes a personal area network with the secondary terminal, and the primary terminal sends the context information of the terminal in the personal area network to the decision server through the context server, and the decision server The offloading decision is made, and the original data packet is split by the media server according to the result of the offloading decision, and then sent to the main terminal through different links, and then the original data is restored by the main terminal. Data can be transmitted concurrently, making full use of the network resources of the slave terminals that can assist the transmission around the primary terminal, which can improve end-to-end throughput and network resource utilization.
以上实施例分別给出了在主终端、媒体服务器、 决策服务器侧实现多流并 发传输的方法,后续实施例将以系统集成的方式来对多流并发传输的方法进行 更详细和系统的举例说明,在举例说明中还会涉及到前述实施例中提到的上下 文服务器、 从终端侧的具体执行步骤。 请参阅图 4、 5所示。  The above embodiments respectively provide a method for implementing multi-stream concurrent transmission on the main terminal, the media server, and the decision server side. The following embodiments will provide a more detailed and systematic illustration of the multi-stream concurrent transmission method in a system integration manner. The specific execution steps of the context server and the slave terminal side mentioned in the foregoing embodiments are also involved in the description. Please refer to Figures 4 and 5.
在以下实施例的举例中业务以下载业务为例,那么业务请求相应可以是业 务下载请求, 需要说明的是需要进行数据传输的业务有很多, 下载业务的举例 不应理解为对本发明实施例的唯一限定。在以下实施例中,主终端采用 WLAN 接入媒体服务器,从终端采用 3G网络接入媒体服务器。 具体流程请参阅图 4, 组网结构请参阅图 5。 图 5所示为基于业务自适应的多流并发传输控制方法的网络结构示意图, 主终端采用 WLAN接入媒体服务器, 从终端采用 3G网络接入媒体服务器。 从终端的个数大于等于 1个, 其数量上限本发明实施例不予限定。主终端和从 终端融合为个域网,从终端将各自的上下文信息发送给主终端, 主终端将个域 网中的主终端和从终端的上下文信息发送给上下文服务器,上下文服务器再将 收到的上下文信息转发给分流决策服务器,分流决策服务器依据上下文信息确 定分流决策并发送给媒体服务器, 媒体服务器对下载业务的原始数据进行拆 分,拆分得到的数据一部分直接发送给主终端,一部分通过从终端发送给主终 端。 请参阅图 4, 并请一并参阅图 5, 具体的流程包括: In the example of the following embodiment, the service is an example of the download service, and the service request may be a service download request, and the service to be transmitted is required to be described. The example of downloading the service should not be understood as the embodiment of the present invention. The only limit. In the following embodiments, the primary terminal uses a WLAN access media server, and the secondary terminal accesses the media server using a 3G network. For details, see Figure 4 and Figure 5 for the networking structure. FIG. 5 is a schematic diagram of a network structure of a multi-stream concurrent transmission control method based on service adaptation. The primary terminal uses a WLAN to access a media server, and the secondary terminal uses a 3G network to access the media server. The number of the terminals is greater than or equal to one, and the upper limit thereof is not limited in the embodiment of the present invention. The master terminal and the slave terminal are merged into a personal area network, and the slave terminal sends the respective context information to the master terminal, and the master terminal sends the context information of the master terminal and the slave terminal in the personal area network to the context server, and the context server receives the same. The context information is forwarded to the offload decision server, and the offload decision server determines the offload decision according to the context information and sends the split decision to the media server. The media server splits the original data of the download service, and the split data is directly sent to the main terminal, and part of the data is directly transmitted to the main terminal. It is sent from the terminal to the master terminal. Please refer to FIG. 4, and please refer to FIG. 5 together. The specific process includes:
401: 主终端通过 WLAN接入网络与媒体服务器建立连接, 主终端向媒体 服务器发起业务请求。  401: The primary terminal establishes a connection with the media server through the WLAN access network, and the primary terminal initiates a service request to the media server.
402: 由于业务类型不同, 所需的传输带宽也不同, 如果主终端发现单链 路(媒体服务器与主终端之间的链路 )的数据传输能力不能完全满足主终端的 业务需求,那么主终端会希望通过其终端协同的方式进行协作传输以提高数据 下载链路速率。 主终端检测是否有可以协作传输的设备(从终端), 如果发现 有, 则可以向分流决策服务器发送协作传输请求, 并将上述从终端的信息发送 给分流决策服务器。  402: The required transmission bandwidth is different because the service type is different. If the primary terminal finds that the data transmission capability of the single link (the link between the media server and the primary terminal) cannot fully meet the service requirements of the primary terminal, the primary terminal It would be desirable to conduct coordinated transmissions in a manner that their terminals cooperate to increase the data download link rate. The master terminal detects whether there is a device (slave terminal) that can be cooperatively transmitted. If found, the master terminal can send a coordinated transmission request to the offload decision server, and send the information of the slave terminal to the offload decision server.
403: 分流决策服务器将从终端的信息通知给上下文服务器, 上下文服务 器则可以对从终端进行鉴权, 确定从是否能够或被允许进行协作传输,如果鉴 权通过, 进入下一步, 如果鉴权失败本流程结束。  403: The offload decision server notifies the context server of the information of the terminal, and the context server can authenticate the slave terminal to determine whether the slave can or is allowed to perform coordinated transmission. If the authentication passes, the next step is performed, if the authentication fails. This process ends.
404:从终端通过与主终端不同的接入网接入网络,例如 GSM、 WCDMA、 CDMA, 或者宽带接入网络等。 在本步骤中从终端还与主终端建立个域网, 并 将各自的上下文信息发送给主终端。本步骤中上报上下文信息可以采用周期性 (如 3min/次)上报, 也可以采用更新上报(即上下文信息发生更新才上报, 不发生更新则不上 ·¾ )的方式, 具体上 "¾上下文信息的方式本发明实施例不予 限定。  404: The slave terminal accesses the network through a different access network than the master terminal, such as GSM, WCDMA, CDMA, or a broadband access network. In this step, the slave terminal also establishes a personal area network with the master terminal, and sends the respective context information to the master terminal. The reporting context information in this step may be reported periodically (for example, 3 min/time), or may be updated (ie, the context information is updated and reported, and the update does not occur.), specifically "3⁄4 context information. The manner of the present invention is not limited.
上述上下文信息可以包括: 网络状况、 传输带宽、 存储容量、 终端位置等 信息。具体的信息内容可以依据分流策略需要的依据来对应确定, 上下文信息 的可选信息项的组合非常多, 本发明实施例无法穷举, 以上举例也不应理解为 对本发明实施例的限定。 The above context information may include: network status, transmission bandwidth, storage capacity, terminal location, and the like. The specific information content can be determined according to the basis of the required information of the traffic distribution policy. The combination of the optional information items of the context information is very large, and the embodiments of the present invention cannot be exhaustive. The above examples should not be construed as A definition of an embodiment of the invention.
本步骤, 主要可以分为如下两个方面:  This step can be mainly divided into the following two aspects:
1 )从终端在接入网络之前可以先通过 Wifi ( WirelessFidelity, 无线保真)、 Bluetooth (蓝牙)等方式与主终端建立连接, 从而组成个域网, 并向主终端传 递上下文信息。从而使得主终端可以与上下文服务器交互个域网内各终端的上 下文信息。  1) Before the terminal accesses the network, it can establish a connection with the master terminal through Wifi (Wireless Fidelity), Bluetooth (Bluetooth), etc., to form a domain network, and transmit context information to the master terminal. Thereby, the master terminal can interact with the context server for the context information of each terminal in the personal area network.
2 )主终端和从终端与媒体服务器之间构成的可以是 C/S ( Client/Server, 客户机 /服务器二层结构技术)模式,使用 TCP ( Transmission Control Protocol, 传输控制协议)进行通信。 然后建立主终端和从终端的链路关联, 使媒体服务 器和终端之间构成并发传输系统, 可以有如下处理方式:  2) The main terminal and the slave terminal and the media server may be configured in a C/S (Client/Server, Client/Server Layer 2 Architecture) mode, and communicate using TCP (Transmission Control Protocol). Then, the link association between the master terminal and the slave terminal is established, so that the concurrent transmission system is formed between the media server and the terminal, and the following processing manner can be implemented:
例如: 媒体服务器可以工作于被动打开模式,媒体服务器绑定一个端口用 于监听客户端的连接请求, 当收到主终端发来的连接请求后, 为主终端发起的 连接分配一个临时端口,使用于监听的端口将释放出来继续监听下一个连接请 求。 从终端分別通过(WCDMA、 CDMA等) 网络接入到媒体服务器。  For example: The media server can work in the passive open mode, and the media server is bound to a port for listening to the client's connection request. After receiving the connection request from the primary terminal, the connection initiated by the primary terminal is assigned a temporary port for use in the connection initiated by the primary terminal. The listening port will be released to continue listening for the next connection request. The terminal accesses the media server through the (WCDMA, CDMA, etc.) network.
如果在 Linux (一种自由和开放源码的操作系统)下, 则可以用父子进程 实现。媒体服务器负责接收主终端和从终端的连接请求, 并使主终端成为父进 程, 它工作于众所周知端口, 子进程工作在临时端口。 媒体服务器则可以成为 并发式服务器, 媒体服务器和终端之间构成了并发传输系统。  If you are on Linux (a free and open source operating system), you can do it with a parent-child process. The media server is responsible for receiving the connection request between the master terminal and the slave terminal, and makes the master terminal a parent process. It works on a well-known port, and the child process works on the temporary port. The media server can become a concurrent server, and the concurrent transmission system is formed between the media server and the terminal.
405: 主终端将个域网内的终端的上下文信息发送给上下文服务器。 可以 理解的是上述个域网内的终端包含有主终端和从终端。从终端可以是 1个也可 以是 1个以上的任意个数, 本发明实施例对从终端的数量上限不予限定。  405: The primary terminal sends the context information of the terminal in the personal area network to the context server. It can be understood that the terminals in the above-mentioned personal area network include a master terminal and a slave terminal. The number of slave terminals may be one or more, and the number of slave terminals is not limited in the embodiment of the present invention.
406: 上下文服务器可以建立和管理数据库, 在数据库中可以存储终端的 上下文信息, 上下文信息可以包括: 网络状况、 传输带宽、 存储容量、 终端位 置等信息。上下文服务器可以周期性的从主终端获取上下文信息,也可以是被 动接收上下文信息,在接收到上下文信息后更新数据库中的上下文信息, 并将 上下文信息发送给分流决策服务器。  406: The context server may establish and manage a database, where the context information of the terminal may be stored, and the context information may include: network status, transmission bandwidth, storage capacity, terminal location, and the like. The context server may periodically obtain context information from the master terminal, or may receive the context information, update the context information in the database after receiving the context information, and send the context information to the offload decision server.
发送给分流决策服务器的上下文信息可以是直接转发的,也可以是先判断 上下文信息是否有更新, 在有更新的情况下发送的出现了更新的上下文信息。 前者上下文服务器数据处理量更小, 后者则可以减少不需要的上下文信息传 递, 具体采用何种方式发送上下文信息本发明实施例不予限定。 The context information sent to the offload decision server may be directly forwarded, or may be first determined whether the context information is updated, and updated context information is sent if there is an update. The former context server has a smaller amount of data processing, while the latter can reduce unwanted context information. The embodiment of the present invention is not limited.
407: 分流决策服务器根据接收到的上下文信息通过综合计算决定分流决 策并将分流决策发送给媒体服务器。  407: The offload decision server determines the offload decision through the comprehensive calculation according to the received context information and sends the offload decision to the media server.
上述分流决策可以包含三个方面: 从终端的个数、 那些从终端、 各从终端 所在链路的数据量。 具体地:  The above-mentioned shunting decision can include three aspects: the number of slave terminals, the amount of data from those terminals, and the links on which each slave terminal is located. specifically:
1、 分流决策服务器根据接收到的上下文信息通过综合计算决定接收端与 发送端连接的 TCP的数量(即所需从终端的数量)。当业务对时延要求不高时, 可以采用较少从终端, 当业务对时延要求高时, 可以适当增加从终端的数量, 来提高下载链路速率。  1. The offload decision server determines the number of TCPs connected to the sender and the sender (that is, the number of required slave terminals) through comprehensive calculation based on the received context information. When the delay requirement of the service is not high, fewer slave terminals may be used. When the service requires a high delay, the number of slave terminals may be appropriately increased to increase the download link rate.
2、 分流决策服务器接收到上下文服务器发过来的数据之后, 结合业务的 类型, 综合计算。 若业务所需的传输带宽为 B, 数据库中显示当前网络状况适 合传输的只有终端 N个,其传输带宽为 ^、 则终端分得的业务量为 如 下:  2. After receiving the data sent by the context server, the distribution decision server integrates the calculation according to the type of the service. If the transmission bandwidth required by the service is B, the database shows that only the N terminals are suitable for transmission, and the transmission bandwidth is ^, then the traffic allocated by the terminal is as follows:
Ρ = Β ^ ¾ ^  Ρ = Β ^ 3⁄4 ^
Β1 + Β2 + ... + ΒΝ Β 1 + Β 2 + ... + Β Ν
408: 媒体服务器根据分流决策服务器提供的分流决策将数据分流, 并对 每个流添加传输序列号通过不同的链路传输到主终端或从终端。  408: The media server offloads the data according to the offloading decision provided by the offload decision server, and adds a transmission sequence number to each stream to transmit to the master terminal or the slave terminal through different links.
可以理解的是,被分流的数据包含两类, 一类是直接从媒体服务器发送至 主终端, 另一类是经从终端发送给主终端。从终端接收到的数据可以直接转发 给主终端, 从终端可以只负责数据的接收和转发并不需要存储数据。  It can be understood that the data to be offloaded includes two types, one is sent directly from the media server to the main terminal, and the other is sent from the terminal to the main terminal. The data received from the terminal can be directly forwarded to the master terminal, and the slave terminal can only be responsible for receiving and forwarding data without storing data.
由于使用并行 TCP多条链路传输数据时, 各链路使用不同的网络, 网络 信号、传输带宽、时延都可能不同,这将会导致数据不会顺序到达主终端, 即: 会出现乱序现象。 这会给主终端重组数据带来困难。 为了解决这个问题, 本发 明实施例提供了解决方案: 将传输的数据添加了包头, 参照图下表。  Since data is transmitted over multiple links using parallel TCP, each link uses a different network, and the network signal, transmission bandwidth, and delay may be different. This will cause the data not to arrive at the primary terminal sequentially, that is, the out-of-order will occur. phenomenon. This will make it difficult for the main terminal to reorganize the data. In order to solve this problem, the embodiment of the present invention provides a solution: The transmitted data is added to the header, as shown in the following table.
表 1 包头字段 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 Table 1 header field 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32
ID NUM ID NUM
IP OF DELAY CLIENT IP OF DELAY CLIENT
IP OF MASTER IP OF MASTER
DATA DATA
上表 1中各字段定义如下: The fields in Table 1 above are defined as follows:
ID NUM表示传输的数据段的标号, 在分割数据段的时候加上的, 这个标 识用于保证数据段不会被多条链路重复传输,也不会被丟失,也给接收端排序 带来了方便。  ID NUM indicates the label of the transmitted data segment, which is added when dividing the data segment. This identifier is used to ensure that the data segment will not be repeatedly transmitted by multiple links, nor will it be lost, and will also be brought to the receiving end. Convenient.
STREAM NUM表示各链路连接套接字 (socket )描述符, 若传输无故障 时设置为本链路的连接 socket描述符的值。  STREAM NUM indicates that each link is connected to a socket (socket) descriptor, and is set to the value of the connection socket descriptor of the link if the transmission is not faulty.
IP OF RELAY CLIENT表示从终端的 IP ( Internet Protocol , 互联网协议) 地址, 该 IP地址可以让媒体服务器寻找链路的目的地址, 也可以让主终端获 悉数据转发的路径, 以确保数据的正确传输。  IP OF RELAY CLIENT indicates the IP (Internet Protocol) address of the slave terminal. This IP address allows the media server to find the destination address of the link. It also allows the master terminal to learn the path of data forwarding to ensure the correct transmission of data.
IP OF MASTE表示数据传输的最终目的地址即主终端的地址。  IP OF MASTE indicates the final destination address of the data transmission, that is, the address of the master terminal.
DATA表示要传输的数据。  DATA indicates the data to be transferred.
409: 主终端接收到的数据先放入緩存中, 然后对緩存中的数据进行排序, 通过恢复出原始数据。 排序的方式可以是按照上述 ID NUM顺序排序, 在后 续实施例会给出一个更为详细的恢复数据的方案举例。  409: The data received by the primary terminal is first placed in the cache, and then the data in the cache is sorted, and the original data is restored. The sorting method may be sorted according to the above ID NUM order, and a more detailed example of the scheme for restoring data will be given in the subsequent embodiment.
可以理解的是,在数据传输过程中, 若主终端发现新的可以协作传输的从 终端, 可以随时通知分流决策服务器, 分流决策服务器则指示媒体服务器增加 新的传输链路, 并重新进行分流; 增加新的传输链路可以参阅本实施例中从终 端分流方案。 数据传输过程中, 从终端检测下行传输链路, 主终端检测上行链 路, 当不满足数据传输条件时, 可以通知分流决策服务器, 停止或者释放该链 路, 并重新进行分流。 It can be understood that, in the data transmission process, if the master terminal discovers a new slave terminal that can be cooperatively transmitted, the offload decision server can be notified at any time, and the offload decision server instructs the media server to increase. The new transmission link is re-segmented; to add a new transmission link, refer to the slave-side offloading scheme in this embodiment. During the data transmission process, the slave terminal detects the downlink transmission link, and the master terminal detects the uplink. When the data transmission condition is not met, the offload decision server may be notified to stop or release the link, and the traffic is re-segmented.
以下实施例,将就前述图 4所示流程中的几个步骤所涉及的技术内容进行 更详细的说明。  In the following embodiments, the technical contents involved in several steps in the foregoing flow shown in Fig. 4 will be described in more detail.
一、关于 404中个域网中主终端和从终端与媒体服务器之间构成的并发系 统的过程,请参阅图 6所示为并发服务器结构示意图: 媒体服务器在众所周知 的端口上工作于被动打开模式, 当收到客户端发来的连接请求后,服务器为此 连接分配一个临时端口,于是用于监听的端口将被释放出来继续监听下一个请 求。 Linux下用父子进程实现此工作方式, 其中上述众所周知的端口工作于父 进程, 其他终端 (主终端和从终端) 工作于子进程。  1. For the process of the concurrent system formed between the master terminal and the slave terminal and the media server in the 404 medium domain network, refer to FIG. 6 for the structure of the concurrent server structure: The media server works in the passive open mode on the well-known port. After receiving the connection request from the client, the server allocates a temporary port for this connection, so the port used for listening will be released and continue to listen to the next request. This mode of operation is implemented by using a parent-child process in Linux, where the well-known port works on the parent process, and the other terminals (the master terminal and the slave terminal) work on the child process.
终端发起会话的信令流程, 请参见图 7 , 包括如下步骤:  The signaling process for the terminal to initiate a session, as shown in Figure 7, includes the following steps:
701 : 个域网初始化。  701: Personal area network initialization.
个域网初始化包括: 个域网内的主终端和从终端向媒体服务器注册,从终 端与个域网的主终端建立连接并向其传递各自的上下文信息等。  The personal area network initialization includes: the primary terminal and the secondary terminal within the personal area network register with the media server, and the terminal establishes a connection with the primary terminal of the personal area network and transmits its own context information to the terminal.
702: 个域网内的主终端发起会话请求。 该会话请求发往为主终端服务的 分流决策服务器,触发异构网络融合决策。异构网络融合决策结果会在后续的 分流决策以及数据发送阶段有具体体现。  702: The primary terminal in the personal area network initiates a session request. The session requests a distribution decision server that is sent to the primary terminal to trigger heterogeneous network convergence decisions. The heterogeneous network convergence decision results will be embodied in the subsequent split-flow decision and data transmission phases.
703: 分流决策服务器从上下文服务器获取上下文信息, 并根据会话请求 的业务特征、 终端设备信息、 网络信息等做出分流决策结果。  703: The offload decision server obtains context information from the context server, and performs a traffic splitting decision result according to the service feature, the terminal device information, and the network information of the session request.
二、 关于主终端恢复原始数据, 本发明实施例还给出了一个实现举例: 分流决策结果由媒体服务器负责实施。媒体服务器根据分流决策对数据进 行处理并将其分发到不同的网络, 最终由主终端在个域网内部对数据排序重 组。 在主设备侧接收到数据之后, 需要对接收到的数据进行排序, 排序的流程 可以如下: 主终端接收到的数据先放入程序设定的緩存中, 若緩存区已满则溢 出, 暂停接收数据; 若緩存区未满, 将接收到的数据存放于緩存中。 最后根据 排序算法恢复出原始数据。 主终端恢复数据的具体流程, 请参阅图 8 , 可以包 括如下步骤: 801: 主终端接收数据。 可以理解的是, 这里接收的数据可以是从媒体服 务器直接发送的, 也可以经从终端转发的。 Second, regarding the recovery of the original data by the main terminal, an implementation example is also given in the embodiment of the present invention: The result of the splitting decision is implemented by the media server. The media server processes the data according to the offloading decision and distributes it to different networks. Finally, the master terminal sorts and reorganizes the data within the personal area network. After receiving data on the master device side, the received data needs to be sorted. The sorting process can be as follows: The data received by the master terminal is first placed in the cache set by the program, and if the buffer area is full, the data overflows and the reception is suspended. Data; if the buffer is not full, the received data is stored in the cache. Finally, the original data is restored according to the sorting algorithm. The specific process of recovering data from the main terminal, as shown in Figure 8, may include the following steps: 801: The primary terminal receives data. It can be understood that the data received here may be sent directly from the media server or may be forwarded from the terminal.
802: 检查程序设定的緩存是否已满, 如果为是, 即: 緩存已满, 则阻塞 链路, 停止数据接收, 再进入 801; 否则进入 803。  802: Check if the cache set by the program is full. If yes, that is: if the buffer is full, block the link, stop data reception, and then enter 801; otherwise, enter 803.
803: 将接收的数据放入緩存。  803: Put the received data into the cache.
804: 对接收的数据进行拆包, 得到数据段标号 ID NUM, 依据 ID NUM 确定是否需要写入磁盘, 具体确定是否写入磁盘的方式如下: 若磁盘内数据的 ID NUM与当前接收到的 NUM ID连续, 则将接收到的数据拆包后存入磁盘 中; 若当前接收到的数据不可写入磁盘, 将数据继续保留在緩存中, 等待可以 写入时再写入磁盘中, 再则进入 801。  804: Unpacking the received data to obtain a data segment label ID NUM, determining whether it needs to be written to the disk according to the ID NUM, and determining whether to write to the disk as follows: if the ID of the data in the disk is NUM and the currently received NUM If the ID is continuous, the received data will be unpacked and stored in the disk. If the currently received data cannot be written to the disk, the data will remain in the cache, wait for it to be written, and then write to the disk, and then enter 801.
可以理解的是,在全部数据写入磁盘以后,原始数据就已经在磁盘内得到 了恢复。  Understandably, after all the data is written to disk, the original data is restored on disk.
805: 在数据写入磁盘后, 判断该写入的数据是否为结束的数据包, 若是, 则关闭该数据包对应链路, 进入 806; 若否, 则删除緩存内上述写入磁盘中的 数据包, 然后进入 801。  805: After the data is written to the disk, determine whether the written data is the end of the data packet, if yes, close the corresponding link of the data packet, enter 806; if not, delete the data in the above-mentioned written disk in the cache Pack, then go to 801.
806: 确定链路是否全部关闭, 如果是, 则确定数据传输结束, 本流程结 束。 如果否, 则进入 801。  806: Determine whether the link is all closed. If yes, it is determined that the data transmission ends, and the process ends. If no, go to 801.
本发明实施例提供了一种终端, 如图 9所示, 包括:  An embodiment of the present invention provides a terminal, as shown in FIG. 9, including:
连接建立单元 901 , 用于通过第一网络使主终端与媒体服务器建立连接; 所述第一网络为所述主终端连接到所述媒体服务器使用的网络;  a connection establishing unit 901, configured to establish a connection between the primary terminal and the media server by using the first network; the first network is a network used by the primary terminal to connect to the media server;
业务请求发送单元 902, 用于在连接建立单元 901与媒体服务器建立连接 后, 向媒体服务器发送业务请求;  The service request sending unit 902 is configured to send a service request to the media server after the connection establishing unit 901 establishes a connection with the media server;
检测单元 903, 用于检测是否有通过第二网络与媒体服务器建立连接的从 终端;  The detecting unit 903 is configured to detect whether there is a slave terminal that establishes a connection with the media server through the second network;
协作请求发送单元 904, 用于在上述检测单元 903检测到通过第二网络与 媒体服务器建立连接的从终端后, 向分流决策服务器发送协作传输请求; 所述 第二网络为所述从终端连接到所述媒体服务器的网络;  The cooperation request sending unit 904 is configured to: after the detecting unit 903 detects that the slave terminal establishes a connection with the media server by using the second network, send a coordinated transmission request to the branching decision server; the second network is connected to the slave terminal a network of the media server;
信息获取单元 905, 用于与从终端建立个域网获取从终端的上下文信息; 信息发送单元 906, 用于将上述个域网内的主终端和从终端的上下文信息 发送给分流决策服务器; 上述主终端和从终端的上下文信息用于执行分流决 策;上述分流决策的结果用于将上述业务请求对应的原始数据拆分为第一数据 和第二数据; The information obtaining unit 905 is configured to acquire context information of the slave terminal from the establishment of the personal area network by the slave terminal, and the information sending unit 906 is configured to: use the context information of the master terminal and the slave terminal in the personal area network. Sending to the offloading decision server; the context information of the master terminal and the slave terminal is used to perform the offloading decision; the result of the offloading decision is used to split the original data corresponding to the service request into the first data and the second data;
数据接收单元 907 , 用于接收媒体服务器发送给上述主终端的第一数据, 接收上述从终端转发的来自上述媒体服务器的第二数据;  The data receiving unit 907 is configured to receive first data that is sent by the media server to the primary terminal, and receive the second data that is forwarded by the secondary terminal from the media server.
数据重组单元 908, 用于将上述第一数据和第二数据进行重组, 得到原始 数据。  The data recombining unit 908 is configured to recombine the first data and the second data to obtain original data.
以上实施例, 主终端和从终端分別采用不同的网络接入, 主终端与从终端 建立个域网,主终端将个域网内终端的上下文信息可以通过上下文服务器发送 到决策服务器, 由决策服务器进行分流决策, 由媒体服务器依据分流决策的结 果对原始数据包进行拆分, 然后通过不同链路发送到主终端,再由主终端恢复 出原始数据。数据可以并发传输, 充分利用了主终端周围可协助传输的从终端 的网络资源, 可以提高端到端的吞吐量和网络资源利用率。  In the above embodiment, the primary terminal and the secondary terminal respectively use different network accesses, and the primary terminal establishes a personal area network with the secondary terminal, and the primary terminal sends the context information of the terminal in the personal area network to the decision server through the context server, and the decision server The offloading decision is made, and the original data packet is split by the media server according to the result of the offloading decision, and then sent to the main terminal through different links, and then the original data is restored by the main terminal. Data can be transmitted concurrently, making full use of the network resources of the slave terminals that can assist the transmission around the primary terminal, which can improve end-to-end throughput and network resource utilization.
可选地, 上述第一数据和第二数据包含有: 用于表示上述第一数据或第二 数据在原始数据中的数据段的标号;  Optionally, the foregoing first data and the second data include: a label for indicating a data segment of the first data or the second data in the original data;
上述数据重组单元 908, 用于按照上述标号对第一数据和第二数据进行排 序, 得到原始数据。  The data recombining unit 908 is configured to sort the first data and the second data according to the above label to obtain the original data.
可选地, 上述数据接收单元 907接收的上述第二数据包还包含有: 用于表 示第二数据包所经过路径的套接字描述符、 从终端的地址以及主终端的地址。  Optionally, the second data packet received by the data receiving unit 907 further includes: a socket descriptor for indicating a path through which the second data packet passes, an address of the slave terminal, and an address of the master terminal.
可选地, 上述信息获取单元 905 , 还用于若上述检测单元 903检测到新的 从终端, 待上述从终端被加入上述个域网后获取上述新的从终端的上下文信 息;  Optionally, the information acquiring unit 905 is further configured to: if the detecting unit 903 detects a new slave terminal, obtain the context information of the new slave terminal after the slave terminal is added to the personal area network;
上述信息发送单元 906, 还用于将上述新的从终端的上下文信息发送给上 述分流决策服务器。  The information sending unit 906 is further configured to send the context information of the new slave terminal to the foregoing offload decision server.
本发明实施例还提供了一种媒体服务器, 如图 10所示, 包括:  The embodiment of the present invention further provides a media server, as shown in FIG. 10, including:
业务请求接收单元 1001 , 用于接收主终端的业务请求;  a service request receiving unit 1001, configured to receive a service request of the primary terminal;
数据确定单元 1002, 用于确定上述业务请求接收单元 1001接收的业务请 求对应的原始数据;  The data determining unit 1002 is configured to determine original data corresponding to the service request received by the service request receiving unit 1001;
决策接收单元 1003 , 用于接收分流决策服务器下发的分流决策的结果, 上述分流决策由上述分流决策服务器依据上述主终端的上下文信息以及与上 述主终端处于同一个域网内的从终端的上下文信息确定; The decision receiving unit 1003 is configured to receive a result of the offloading decision delivered by the offload decision server. The foregoing offloading decision is determined by the foregoing offload decision server according to the context information of the primary terminal and the context information of the secondary terminal in the same domain network as the primary terminal;
拆分单元 1004, 用于按照上述决策接收单元 1003接收的分流决策的结果 将上述数据确定单元 1002确定的原始数据拆分为第一数据和第二数据;  The splitting unit 1004 is configured to split the original data determined by the data determining unit 1002 into the first data and the second data according to the result of the splitting decision received by the decision receiving unit 1003.
数据发送单元 1005 , 用于将上述第一数据发送给上述主终端, 将上述第 二数据发送给从终端。  The data transmitting unit 1005 is configured to send the first data to the primary terminal, and send the second data to the secondary terminal.
以上实施例, 主终端和从终端分別采用不同的网络接入, 主终端与从终端 建立个域网,主终端将个域网内终端的上下文信息可以通过上下文服务器发送 到决策服务器, 由决策服务器进行分流决策, 由媒体服务器依据分流决策的结 果对原始数据包进行拆分, 然后通过不同链路发送到主终端,再由主终端恢复 出原始数据。数据可以并发传输, 充分利用了主终端周围可协助传输的从终端 的网络资源, 可以提高端到端的吞吐量和网络资源利用率。  In the above embodiment, the primary terminal and the secondary terminal respectively use different network accesses, and the primary terminal establishes a personal area network with the secondary terminal, and the primary terminal sends the context information of the terminal in the personal area network to the decision server through the context server, and the decision server The offloading decision is made, and the original data packet is split by the media server according to the result of the offloading decision, and then sent to the main terminal through different links, and then the original data is restored by the main terminal. Data can be transmitted concurrently, making full use of the network resources of the slave terminals that can assist the transmission around the primary terminal, which can improve end-to-end throughput and network resource utilization.
进一步地, 如图 11所示, 上述媒体服务器还包括:  Further, as shown in FIG. 11, the foregoing media server further includes:
标号单元 1101 , 用于将上述拆分单元 1004将原始数据拆分为第一数据和 第二数据之后。在上述第一数据和第二数据中分別添加用于表示上述第一数据 或第二数据在原始数据中的数据段的标号。  The labeling unit 1101 is configured to split the original data into the first data and the second data after the splitting unit 1004. A label for indicating a data segment of the first data or the second data in the original data is added to the first data and the second data, respectively.
可选地, 上述分流决策的结果为第一比例, 上述第一比例为将主终端和从 终端各自所在网络的传输带宽占总带宽的比例;  Optionally, the result of the foregoing offloading decision is a first ratio, where the first ratio is a ratio of a transmission bandwidth of a network where the master terminal and the slave terminal respectively belong to a total bandwidth;
上述拆分单元 1004, 用于按照上述第一比例将上述原始数据拆分为第一 数据和第二数据,上述第一数据的数据量与上述原始数据的数据量的比例等于 上述第一比例。  The splitting unit 1004 is configured to split the original data into the first data and the second data according to the first ratio, and the ratio of the data amount of the first data to the data amount of the original data is equal to the first ratio.
本发明实施例还提供了一种分流决策服务器, 如图 12所示, 包括: 信息接收单元 1201 , 用于接收主终端的上下文信息以及与上述主终端处 于同一个域网内的从终端的上下文信息;  The embodiment of the present invention further provides a traffic distribution decision server. As shown in FIG. 12, the method includes: an information receiving unit 1201, configured to receive context information of a master terminal, and a context of the slave terminal in the same domain network as the master terminal. Information
决策确定单元 1202, 用于依据上述主终端的上下文信息以及与上述主终 端处于同一个域网内的从终端的上下文信息确定主终端的业务请求对应的原 始数据的分流决策;  The decision determining unit 1202 is configured to determine, according to the context information of the master terminal, and the offloading decision of the original data corresponding to the service request of the master terminal in the context information of the slave terminal in the same domain network as the master terminal;
决策发送单元 1203, 用于将上述分流决策的结果发送给上述媒体服务器, 指示上述媒体服务器按照上述拆分策略指定对上述主终端的业务请求对应的 原始数据的进行拆分。 The decision sending unit 1203 is configured to send the result of the foregoing offloading decision to the media server, and instruct the media server to specify a service request corresponding to the primary terminal according to the splitting policy. The original data is split.
以上实施例, 主终端和从终端分別采用不同的网络接入, 主终端与从终端 建立个域网,主终端将个域网内终端的上下文信息可以通过上下文服务器发送 到决策服务器, 由决策服务器进行分流决策, 由媒体服务器依据分流决策的结 果对原始数据包进行拆分, 然后通过不同链路发送到主终端,再由主终端恢复 出原始数据。数据可以并发传输, 充分利用了主终端周围可协助传输的从终端 的网络资源, 可以提高端到端的吞吐量和网络资源利用率。  In the above embodiment, the primary terminal and the secondary terminal respectively use different network accesses, and the primary terminal establishes a personal area network with the secondary terminal, and the primary terminal sends the context information of the terminal in the personal area network to the decision server through the context server, and the decision server The offloading decision is made, and the original data packet is split by the media server according to the result of the offloading decision, and then sent to the main terminal through different links, and then the original data is restored by the main terminal. Data can be transmitted concurrently, making full use of the network resources of the slave terminals that can assist the transmission around the primary terminal, which can improve end-to-end throughput and network resource utilization.
可选地, 上下文信息包括: 表示上下文对应终端所在网络的传输带宽; 上述决策确定单元 1202, 用于将第一比例作为分流决策的结果; 上述第 一比例为主终端和从终端各自所在网络的传输带宽占总带宽的比例 ,上述总带 宽为主终端和从终端所在网络的传输带宽的总和。  Optionally, the context information includes: a transmission bandwidth indicating a network where the context corresponding terminal is located; the foregoing determining determining unit 1202 is configured to use the first ratio as a result of the offloading decision; the first ratio is the main terminal and the slave terminal respectively The ratio of the transmission bandwidth to the total bandwidth. The total bandwidth is the sum of the transmission bandwidth of the primary terminal and the network where the secondary terminal is located.
本发明实施例还提供了一种多流并发传输系统, 如图 13所示, 包括: 媒 体服务器 1301和分流决策服务器 1302;  The embodiment of the present invention further provides a multi-stream concurrent transmission system, as shown in FIG. 13, comprising: a media server 1301 and a offload decision server 1302;
其中, 上述媒体服务器为本发明实施例提供的任意一项的媒体服务器, 分 流决策服务器为本发明实施例提供的任意一项的分流决策服务器。  The foregoing media server is a media server according to any one of the embodiments of the present invention, and the traffic distribution decision server is a traffic distribution decision server according to any one of the embodiments of the present invention.
以上实施例, 主终端和从终端分別采用不同的网络接入, 主终端与从终端 建立个域网,主终端将个域网内终端的上下文信息可以通过上下文服务器发送 到决策服务器, 由决策服务器进行分流决策, 由媒体服务器依据分流决策的结 果对原始数据包进行拆分, 然后通过不同链路发送到主终端,再由主终端恢复 出原始数据。数据可以并发传输, 充分利用了主终端周围可协助传输的从终端 的网络资源, 可以提高端到端的吞吐量和网络资源利用率。  In the above embodiment, the primary terminal and the secondary terminal respectively use different network accesses, and the primary terminal establishes a personal area network with the secondary terminal, and the primary terminal sends the context information of the terminal in the personal area network to the decision server through the context server, and the decision server The offloading decision is made, and the original data packet is split by the media server according to the result of the offloading decision, and then sent to the main terminal through different links, and then the original data is restored by the main terminal. Data can be transmitted concurrently, making full use of the network resources of the slave terminals that can assist the transmission around the primary terminal, which can improve end-to-end throughput and network resource utilization.
本发明实施例还提供了一种终端, 该终端作为主终端使用,如图 14所示, 包括: 接收器 1401、 发射器 1402以及处理器 1403;  The embodiment of the present invention further provides a terminal, which is used as a master terminal, as shown in FIG. 14, comprising: a receiver 1401, a transmitter 1402, and a processor 1403;
其中, 处理器 1403 , 用于在主终端通过第一网络与媒体服务器建立连接 后, 指示发射器 1402并向媒体服务器发送业务请求; 所述第一网络为所述主 终端连接到所述媒体服务器使用的网络;在主终端检测到通过第二网络与媒体 服务器建立连接的从终端后, 指示发射器 1402向分流决策服务器发送协作传 输请求, 并与从终端建立个域网获取从终端的上下文信息,将所述个域网内的 主终端和从终端的上下文信息发送给分流决策服务器;所述主终端和从终端的 上下文信息用于执行分流决策;所述分流决策的结果用于将所述业务请求对应 的原始数据拆分为第一数据和第二数据;所述第二网络为所述从终端连接到所 述媒体服务器的网络; 通过接收器 1401接收媒体服务器发送给所述主终端的 第一数据, 接收所述从终端转发的来自所述媒体服务器的第二数据; 所述处 理器 1403将所述第一数据和第二数据进行重组, 得到原始数据。 The processor 1403 is configured to: after the primary terminal establishes a connection with the media server by using the first network, instruct the transmitter 1402 to send a service request to the media server; the first network is that the primary terminal is connected to the media server. The used network; after the primary terminal detects the secondary terminal that establishes the connection with the media server through the second network, the indication transmitter 1402 sends a coordinated transmission request to the branching decision server, and acquires the context information of the secondary terminal from the establishment of the personal area network of the secondary terminal. Transmitting context information of the master terminal and the slave terminal in the personal area network to the offload decision server; the master terminal and the slave terminal The context information is used to perform a offloading decision; the result of the offloading decision is used to split the original data corresponding to the service request into the first data and the second data; the second network is connected to the slave terminal to the a network of the media server; receiving, by the receiver 1401, first data sent by the media server to the master terminal, receiving second data from the media server forwarded by the slave terminal; the processor 1403 The data and the second data are recombined to obtain the original data.
以上实施例, 主终端和从终端分別采用不同的网络接入, 主终端与从终端 建立个域网,主终端将个域网内终端的上下文信息可以通过上下文服务器发送 到决策服务器, 由决策服务器进行分流决策, 由媒体服务器依据分流决策的结 果对原始数据包进行拆分, 然后通过不同链路发送到主终端,再由主终端恢复 出原始数据。数据可以并发传输, 充分利用了主终端周围可协助传输的从终端 的网络资源, 可以提高端到端的吞吐量和网络资源利用率。  In the above embodiment, the primary terminal and the secondary terminal respectively use different network accesses, and the primary terminal establishes a personal area network with the secondary terminal, and the primary terminal sends the context information of the terminal in the personal area network to the decision server through the context server, and the decision server The offloading decision is made, and the original data packet is split by the media server according to the result of the offloading decision, and then sent to the main terminal through different links, and then the original data is restored by the main terminal. Data can be transmitted concurrently, making full use of the network resources of the slave terminals that can assist the transmission around the primary terminal, which can improve end-to-end throughput and network resource utilization.
可选地, 所述第一数据和第二数据包含有: 用于表示所述第一数据或第二 数据在原始数据中的数据段的标号;  Optionally, the first data and the second data include: a label for indicating a data segment of the first data or the second data in the original data;
所述处理器 1403将所述第一数据和第二数据进行重组, 得到原始数据包 括: 所述处理器 1403按照所述标号对第一数据和第二数据进行排序, 得到原 始数据。  The processor 1403 reassembles the first data and the second data to obtain the original data. The processor 1403 sorts the first data and the second data according to the label to obtain original data.
可选地, 所述第二数据包还包含有: 用于表示第二数据包所经过路径的套 接字描述符、 从终端的地址以及主终端的地址。  Optionally, the second data packet further includes: a socket descriptor for indicating a path through which the second data packet passes, an address of the slave terminal, and an address of the master terminal.
可选地, 所述处理器 1403 , 还用于若所述主终端检测到新的从终端, 将 所述新的从终端加入所述个域网并获取所述新的从终端的上下文信息,并指示 所述发射器 1402 将所述新的从终端的上下文信息发送给所述分流决策服务 器。  Optionally, the processor 1403 is further configured to: if the master terminal detects a new slave terminal, add the new slave terminal to the personal area network, and obtain context information of the new slave terminal, And instructing the transmitter 1402 to send the context information of the new slave terminal to the offload decision server.
本发明实施例还提供了一种媒体服务器,如图 15所示,包括:接收器 1501、 发射器 1502以及处理器 1503;  The embodiment of the present invention further provides a media server, as shown in FIG. 15, comprising: a receiver 1501, a transmitter 1502, and a processor 1503;
其中, 处理器 1503 , 用于通过接收器 1501接收主终端的业务请求, 并确 定所述业务请求对应的原始数据; 通过接收器 1501接收分流决策服务器下发 的分流决策的结果,所述分流决策由所述分流决策服务器依据所述主终端的上 下文信息以及与所述主终端处于同一个域网内的从终端的上下文信息确定; 所述处理器 1503按照所述分流决策的结果将所述原始数据拆分为第一数 据和第二数据; 指示发射器 1502将所述第一数据发送给所述主终端, 将所述 第二数据发送给从终端。 The processor 1503 is configured to receive, by the receiver 1501, a service request of the primary terminal, and determine the original data corresponding to the service request, and receive, by the receiver 1501, a result of the offloading decision delivered by the offloading decision server, where the offloading decision is performed. Determining, by the branching decision server, the context information of the primary terminal and the context information of the secondary terminal in the same domain network as the primary terminal; the processor 1503, according to the result of the offloading decision, the original Data split into first number And the second data; the indication transmitter 1502 sends the first data to the primary terminal, and sends the second data to the secondary terminal.
以上实施例, 主终端和从终端分別采用不同的网络接入, 主终端与从终端 建立个域网,主终端将个域网内终端的上下文信息可以通过上下文服务器发送 到决策服务器, 由决策服务器进行分流决策, 由媒体服务器依据分流决策的结 果对原始数据包进行拆分, 然后通过不同链路发送到主终端,再由主终端恢复 出原始数据。数据可以并发传输, 充分利用了主终端周围可协助传输的从终端 的网络资源, 可以提高端到端的吞吐量和网络资源利用率。  In the above embodiment, the primary terminal and the secondary terminal respectively use different network accesses, and the primary terminal establishes a personal area network with the secondary terminal, and the primary terminal sends the context information of the terminal in the personal area network to the decision server through the context server, and the decision server The offloading decision is made, and the original data packet is split by the media server according to the result of the offloading decision, and then sent to the main terminal through different links, and then the original data is restored by the main terminal. Data can be transmitted concurrently, making full use of the network resources of the slave terminals that can assist the transmission around the primary terminal, which can improve end-to-end throughput and network resource utilization.
进一步地, 所述处理器 1503 , 还用于将所述原始数据拆分为第一数据和 第二数据之后,在所述第一数据和第二数据中分別添加用于表示所述第一数据 或第二数据在原始数据中的数据段的标号。  Further, the processor 1503 is further configured to separately add, in the first data and the second data, the first data and the second data to represent the first data. Or the label of the data segment of the second data in the original data.
可选地, 所述分流决策的结果为第一比例, 所述第一比例为将主终端和从 终端各自所在网络的传输带宽占总带宽的比例;  Optionally, the result of the offloading decision is a first ratio, where the first ratio is a ratio of a transmission bandwidth of a network where the primary terminal and the secondary terminal are located to a total bandwidth;
所述处理器 1503 , 具体用于按照所述第一比例将所述原始数据拆分为第 一数据和第二数据,所述第一数据的数据量与所述原始数据的数据量的比例等 于所述第一比例。  The processor 1503 is specifically configured to split the original data into first data and second data according to the first ratio, and a ratio of a data amount of the first data to a data amount of the original data is equal to The first ratio.
本发明实施例还提供了一种分流决策服务器, 如图 16所示, 包括: 接收 器 1601、 发射器 1602以及处理器 1603;  The embodiment of the present invention further provides a offload decision server, as shown in FIG. 16, comprising: a receiver 1601, a transmitter 1602, and a processor 1603;
其中, 所述处理器 1603 , 用于通过接收器 1601接收主终端的上下文信息 以及与所述主终端处于同一个域网内的从终端的上下文信息; 所述处理器 1603 依据所述主终端的上下文信息以及与所述主终端处于同一个域网内的从 终端的上下文信息确定主终端的业务请求对应的原始数据的分流决策; 指示 所述发射器 1602将所述分流决策的结果发送给所述媒体服务器, 指示所述媒 体服务器按照所述拆分策略指定对所述主终端的业务请求对应的原始数据的 进行拆分。  The processor 1603 is configured to receive, by the receiver 1601, context information of the primary terminal and context information of the secondary terminal in the same domain network as the primary terminal, where the processor 1603 is configured according to the primary terminal. Context information and a branching decision of the original data corresponding to the service request of the master terminal in the context information of the slave terminal in the same domain network as the master terminal; the transmitter 1602 is instructed to send the result of the offload decision to the The media server instructs the media server to perform splitting of the original data corresponding to the service request of the primary terminal according to the splitting policy.
以上实施例, 主终端和从终端分別采用不同的网络接入, 主终端与从终端 建立个域网,主终端将个域网内终端的上下文信息可以通过上下文服务器发送 到决策服务器, 由决策服务器进行分流决策, 由媒体服务器依据分流决策的结 果对原始数据包进行拆分, 然后通过不同链路发送到主终端,再由主终端恢复 出原始数据。数据可以并发传输, 充分利用了主终端周围可协助传输的从终端 的网络资源, 可以提高端到端的吞吐量和网络资源利用率。 In the above embodiment, the primary terminal and the secondary terminal respectively use different network accesses, and the primary terminal establishes a personal area network with the secondary terminal, and the primary terminal sends the context information of the terminal in the personal area network to the decision server through the context server, and the decision server The offloading decision is made, and the media server splits the original data packet according to the result of the offloading decision, and then sends it to the main terminal through different links, and then is restored by the main terminal. Raw data. Data can be transmitted concurrently, making full use of the network resources of the slave terminals that can assist the transmission around the primary terminal, which can improve end-to-end throughput and network resource utilization.
可选地, 上下文信息包括: 表示上下文对应终端所在网络的传输带宽; 所述处理器 1603依据所述主终端的上下文信息以及与所述主终端处于同 一个域网内的从终端的上下文信息确定主终端的业务请求对应的原始数据的 分流决策包括: 所述处理器 1603将第一比例作为分流决策的结果; 所述第一 比例为主终端和从终端各自所在网络的传输带宽占总带宽的比例,所述总带宽 为主终端和从终端所在网络的传输带宽的总和。  Optionally, the context information includes: indicating a transmission bandwidth of the network where the context corresponding terminal is located; the processor 1603 is determined according to context information of the primary terminal and context information of the secondary terminal that is in the same domain network as the primary terminal The offloading decision of the original data corresponding to the service request of the primary terminal includes: the processor 1603 uses the first ratio as a result of the offloading decision; the first ratio of the transmission bandwidth of the primary terminal and the slave terminal respectively occupying the total bandwidth Proportion, the total bandwidth is the sum of the transmission bandwidths of the primary terminal and the network where the secondary terminal is located.
值得注意的是, 上述装置只是按照功能逻辑进行划分的,但并不局限于上 述的划分, 只要能够实现相应的功能即可; 另外, 各功能单元的具体名称也只 是为了便于相互区分, 并不用于限制本发明的保护范围。  It should be noted that the above devices are only divided according to functional logic, but are not limited to the above divisions, as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are only for the purpose of distinguishing from each other, and are not used. To limit the scope of protection of the present invention.
另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部 分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计 算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。  In addition, those skilled in the art can understand that all or part of the steps in implementing the foregoing method embodiments may be performed by a program to instruct related hardware, and the corresponding program may be stored in a computer readable storage medium. The storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
以上仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于 此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内, 可轻 易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保 护范围应该以权利要求的保护范围为准。  The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the embodiments of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权 利 要 求 Rights request
1、 一种多流并发传输方法, 其特征在于, 包括: 1. A multi-stream concurrent transmission method, characterized by including:
主终端通过第一网络与媒体服务器建立连接,并向媒体服务器发送业务请 求; 所述第一网络为所述主终端连接到所述媒体服务器使用的网络; The main terminal establishes a connection with the media server through the first network and sends a service request to the media server; the first network is the network used by the main terminal to connect to the media server;
主终端在检测到通过第二网络与媒体服务器建立连接的从终端后,向分流 决策服务器发送协作传输请求,并与从终端建立个域网获取从终端的上下文信 息, 将所述个域网内的主终端和从终端的上下文信息发送给分流决策服务器; 所述主终端和从终端的上下文信息用于执行分流决策;所述分流决策的结果用 于将所述业务请求对应的原始数据拆分为第一数据和第二数据;所述第二网络 为所述从终端连接到所述媒体服务器的网络; After detecting the slave terminal that establishes a connection with the media server through the second network, the master terminal sends a collaborative transmission request to the offload decision server, and establishes a personal area network with the slave terminal to obtain the context information of the slave terminal, and transfers the context information to the slave terminal in the personal area network. The context information of the master terminal and the slave terminal is sent to the offload decision server; the context information of the master terminal and the slave terminal is used to execute the offload decision; the result of the offload decision is used to split the original data corresponding to the business request is the first data and the second data; the second network is the network connecting the slave terminal to the media server;
主终端接收媒体服务器发送给所述主终端的第一数据,接收所述从终端转 发的来自所述媒体服务器的第二数据; The main terminal receives the first data sent to the main terminal by the media server, and receives the second data from the media server forwarded by the slave terminal;
主终端将所述第一数据和第二数据进行重组, 得到原始数据。 The main terminal recombines the first data and the second data to obtain original data.
2、 根据权利要求 1所述方法, 其特征在于, 所述第一数据和第二数据包 含有: 用于表示所述第一数据或第二数据在原始数据中的数据段的标号; 所述主终端将所述第一数据和第二数据进行重组, 得到原始数据包括: 所述主终端按照所述标号对第一数据和第二数据进行排序, 得到原始数 据。 2. The method according to claim 1, characterized in that, the first data and the second data include: a label used to represent the data segment of the first data or the second data in the original data; The main terminal reorganizes the first data and the second data to obtain the original data, including: the main terminal sorts the first data and the second data according to the labels to obtain the original data.
3、 根据权利要求 2所述方法, 其特征在于, 所述第二数据包还包含有: 用于表示第二数据包所经过路径的套接字描述符、从终端的地址以及主终 端的地址。 3. The method according to claim 2, characterized in that the second data packet further includes: a socket descriptor used to represent the path followed by the second data packet, the address of the slave terminal and the address of the master terminal. .
4、 根据权利要求 1至 3任意一项所述方法, 其特征在于, 还包括: 若所述主终端检测到新的从终端,所述主终端将所述新的从终端加入所述 个域网并获取所述新的从终端的上下文信息,并将所述新的从终端的上下文信 息发送给所述分流决策服务器。 4. The method according to any one of claims 1 to 3, further comprising: if the master terminal detects a new slave terminal, the master terminal adds the new slave terminal to the domain The network obtains the context information of the new slave terminal and sends the context information of the new slave terminal to the offload decision server.
5、 一种多流并发传输方法, 其特征在于, 包括: 5. A multi-stream concurrent transmission method, characterized by including:
媒体服务器接收主终端的业务请求, 确定所述业务请求对应的原始数据; 媒体服务器接收分流决策服务器下发的分流决策的结果,所述分流决策由 所述分流决策服务器依据所述主终端的上下文信息以及与所述主终端处于同 一个域网内的从终端的上下文信息确定; The media server receives the service request from the main terminal and determines the original data corresponding to the service request; the media server receives the result of the offload decision issued by the offload decision server, and the offload decision is made by the offload decision server based on the context of the main terminal information and is in the same location as the main terminal Determine the context information of slave terminals within a domain network;
媒体服务器按照所述分流决策的结果将所述原始数据拆分为第一数据和 第二数据; The media server splits the original data into first data and second data according to the result of the offloading decision;
媒体服务器将所述第一数据发送给所述主终端,将所述第二数据发送给从 终端。 The media server sends the first data to the master terminal and the second data to the slave terminal.
6、 根据权利要求 5所述方法, 其特征在于, 将所述原始数据拆分为第一 数据和第二数据之后还包括: 6. The method according to claim 5, characterized in that after splitting the original data into first data and second data, it further includes:
媒体服务器在所述第一数据和第二数据中分別添加用于表示所述第一数 据或第二数据在原始数据中的数据段的标号。 The media server adds a label to the first data and the second data respectively to represent the data segment of the first data or the second data in the original data.
7、 根据权利要求 5或 6所述方法, 其特征在于, 所述分流决策的结果为 第一比例,所述第一比例为将主终端和从终端各自所在网络的传输带宽占总带 宽的比例; 7. The method according to claim 5 or 6, characterized in that, the result of the offload decision is a first ratio, and the first ratio is the ratio of the transmission bandwidth of the network where the master terminal and the slave terminal are located to the total bandwidth. ;
媒体服务器按照所述第一比例将所述原始数据拆分为第一数据和第二数 据, 所述第一数据的数据量与所述原始数据的数据量的比例等于所述第一比 例。 The media server splits the original data into first data and second data according to the first ratio, and the ratio of the data amount of the first data to the data amount of the original data is equal to the first ratio.
8、 一种多流并发传输方法, 其特征在于, 包括: 8. A multi-stream concurrent transmission method, characterized by including:
分流决策服务器接收主终端的上下文信息以及与所述主终端处于同一个 域网内的从终端的上下文信息; The offload decision server receives the context information of the master terminal and the context information of the slave terminal in the same domain network as the master terminal;
分流决策服务器依据所述主终端的上下文信息以及与所述主终端处于同 一个域网内的从终端的上下文信息确定主终端的业务请求对应的原始数据的 分流决策; The offloading decision server determines the offloading decision of the original data corresponding to the main terminal's service request based on the context information of the main terminal and the context information of the slave terminal in the same domain network as the main terminal;
分流决策服务器将所述分流决策的结果发送给所述媒体服务器,指示所述 媒体服务器按照所述拆分策略指定对所述主终端的业务请求对应的原始数据 的进行拆分。 The offloading decision server sends the result of the offloading decision to the media server, instructing the media server to split the original data corresponding to the service request of the main terminal according to the splitting policy specified.
9、 根据权利要求 8所述方法, 其特征在于, 上下文信息包括: 表示上下 文对应终端所在网络的传输带宽; 9. The method according to claim 8, characterized in that the context information includes: indicating the transmission bandwidth of the network where the context corresponds to the terminal;
所述依据所述主终端的上下文信息以及与所述主终端处于同一个域网内 的从终端的上下文信息确定主终端的业务请求对应的原始数据的分流决策包 括: 分流决策服务器将第一比例作为分流决策的结果;所述第一比例为主终端 和从终端各自所在网络的传输带宽占总带宽的比例,所述总带宽为主终端和从 终端所在网络的传输带宽的总和。 The offload decision of determining the original data corresponding to the service request of the master terminal based on the context information of the master terminal and the context information of the slave terminal in the same domain network as the master terminal includes: The offload decision server uses the first ratio as the result of the offload decision; the first ratio is the proportion of the transmission bandwidth of the network where the master terminal and the slave terminal are located to the total bandwidth, and the total bandwidth is the transmission bandwidth of the network where the master terminal and the slave terminal are located. The total bandwidth.
10、 一种终端, 其特征在于, 包括: 10. A terminal, characterized in that it includes:
连接建立单元, 用于通过第一网络使主终端与媒体服务器建立连接; 所述 第一网络为所述主终端连接到所述媒体服务器使用的网络; A connection establishment unit, configured to establish a connection between the main terminal and the media server through a first network; the first network is a network used by the main terminal to connect to the media server;
业务请求发送单元, 用于在连接建立单元与媒体服务器建立连接后, 向媒 体服务器发送业务请求; The service request sending unit is used to send a service request to the media server after the connection establishment unit establishes a connection with the media server;
检测单元, 用于检测是否有通过第二网络与媒体服务器建立连接的从终 端; 所述第二网络为所述从终端连接到所述媒体服务器的网络; A detection unit, used to detect whether there is a slave terminal that establishes a connection with the media server through a second network; the second network is a network where the slave terminal is connected to the media server;
协作请求发送单元,用于在所述检测单元检测到通过第二网络与媒体服务 器建立连接的从终端后, 向分流决策服务器发送协作传输请求; A collaboration request sending unit, configured to send a collaboration transmission request to the offload decision server after the detection unit detects the slave terminal that establishes a connection with the media server through the second network;
信息获取单元, 用于与从终端建立个域网获取从终端的上下文信息; 信息发送单元,用于将所述个域网内的主终端和从终端的上下文信息发送 给分流决策服务器; 所述主终端和从终端的上下文信息用于执行分流决策; 所 述分流决策的结果用于将所述业务请求对应的原始数据拆分为第一数据和第 二数据; The information acquisition unit is used to establish a personal area network with the slave terminal to obtain the context information of the slave terminal; the information sending unit is used to send the context information of the master terminal and the slave terminal in the personal area network to the offload decision server; The context information of the master terminal and the slave terminal is used to execute the offload decision; the result of the offload decision is used to split the original data corresponding to the business request into first data and second data;
数据接收单元, 用于接收媒体服务器发送给所述主终端的第一数据,接收 所述从终端转发的来自所述媒体服务器的第二数据; A data receiving unit, configured to receive the first data sent by the media server to the main terminal, and receive the second data from the media server forwarded by the slave terminal;
数据重组单元,用于将所述第一数据和第二数据进行重组,得到原始数据。 A data reorganization unit is used to reorganize the first data and the second data to obtain original data.
11、 根据权利要求 10所述终端, 其特征在于, 所述第一数据和第二数据 包含有: 用于表示所述第一数据或第二数据在原始数据中的数据段的标号; 所述数据重组单元, 用于按照所述标号对第一数据和第二数据进行排序, 得到原始数据。 11. The terminal according to claim 10, characterized in that, the first data and the second data include: a label used to represent the data segment of the first data or the second data in the original data; A data reorganization unit is used to sort the first data and the second data according to the labels to obtain original data.
12、 根据权利要求 11所述终端, 其特征在于, 12. The terminal according to claim 11, characterized in that,
所述数据接收单元接收的所述第二数据包还包含有:用于表示第二数据包 所经过路径的套接字描述符、 从终端的地址以及主终端的地址。 The second data packet received by the data receiving unit also includes: a socket descriptor used to represent the path traveled by the second data packet, the address of the slave terminal, and the address of the master terminal.
13、 根据权利要求 10至 12任意一项所述终端, 其特征在于, 13. The terminal according to any one of claims 10 to 12, characterized in that,
所述信息获取单元,还用于若所述检测单元检测到新的从终端,待所述从 所述信息发送单元,还用于将所述新的从终端的上下文信息发送给所述分 流决策服务器。 The information acquisition unit is also configured to: if the detection unit detects a new slave terminal, wait until the slave terminal The information sending unit is also configured to send the context information of the new slave terminal to the offload decision server.
14、 一种媒体服务器, 其特征在于, 包括: 14. A media server, characterized by including:
业务请求接收单元, 用于接收主终端的业务请求; The service request receiving unit is used to receive the service request from the main terminal;
数据确定单元,用于确定所述业务请求接收单元接收的业务请求对应的原 始数据; A data determination unit, used to determine the original data corresponding to the service request received by the service request receiving unit;
决策接收单元, 用于接收分流决策服务器下发的分流决策的结果, 所述分 流决策由所述分流决策服务器依据所述主终端的上下文信息以及与所述主终 端处于同一个域网内的从终端的上下文信息确定; The decision receiving unit is configured to receive the result of the offload decision issued by the offload decision server. The offload decision is made by the offload decision server based on the context information of the main terminal and the slave in the same domain network as the main terminal. The context information of the terminal is determined;
拆分单元,用于按照所述决策接收单元接收的分流决策的结果将所述数据 确定单元确定的原始数据拆分为第一数据和第二数据; A splitting unit, configured to split the original data determined by the data determination unit into first data and second data according to the result of the diversion decision received by the decision receiving unit;
数据发送单元, 用于将所述第一数据发送给所述主终端,将所述第二数据 发送给从终端。 A data sending unit, configured to send the first data to the master terminal and the second data to the slave terminal.
15、 根据权利要求 14所述媒体服务器, 其特征在于, 还包括: 标号单元,用于将所述拆分单元将原始数据拆分为第一数据和第二数据之 后,在所述第一数据和第二数据中分別添加用于表示所述第一数据或第二数据 在原始数据中的数据段的标号。 15. The media server according to claim 14, further comprising: a labeling unit, configured to split the original data into the first data and the second data by the splitting unit. Labels used to represent the data segments of the first data or the second data in the original data are added to the data and the second data respectively.
16、 根据权利要求 14或 15所述媒体服务器, 其特征在于, 所述分流决策 的结果为第一比例 ,所述第一比例为将主终端和从终端各自所在网络的传输带 宽占总带宽的比例; 16. The media server according to claim 14 or 15, characterized in that, the result of the offload decision is a first ratio, and the first ratio is the ratio of the transmission bandwidth of the network where the master terminal and the slave terminal are located to the total bandwidth. Proportion;
所述拆分单元,用于按照所述第一比例将所述原始数据拆分为第一数据和 第二数据,所述第一数据的数据量与所述原始数据的数据量的比例等于所述第 一比例。 The splitting unit is configured to split the original data into first data and second data according to the first ratio, and the ratio of the data amount of the first data to the data amount of the original data is equal to the Describe the first ratio.
17、 一种分流决策服务器, 其特征在于, 包括: 17. A diversion decision-making server, characterized by including:
信息接收单元,用于接收主终端的上下文信息以及与所述主终端处于同一 个域网内的从终端的上下文信息; An information receiving unit, configured to receive the context information of the master terminal and the context information of the slave terminal in the same domain network as the master terminal;
决策确定单元,用于依据所述主终端的上下文信息以及与所述主终端处于 同一个域网内的从终端的上下文信息确定主终端的业务请求对应的原始数据 的分流决策; A decision-making unit configured to determine the original data corresponding to the service request of the master terminal based on the context information of the master terminal and the context information of the slave terminal in the same domain network as the master terminal. diversion decisions;
决策发送单元, 用于将所述分流决策的结果发送给所述媒体服务器,指示 所述媒体服务器按照所述拆分策略指定对所述主终端的业务请求对应的原始 数据的进行拆分。 A decision sending unit, configured to send the result of the offload decision to the media server, and instruct the media server to split the original data corresponding to the service request of the main terminal according to the splitting policy specified.
18、 根据权利要求 17所述分流决策服务器, 其特征在于, 上下文信息包 括: 表示上下文对应终端所在网络的传输带宽; 18. The offload decision server according to claim 17, characterized in that the context information includes: indicating the transmission bandwidth of the network where the context corresponds to the terminal;
所述决策确定单元, 用于将第一比例作为分流决策的结果; 所述第一比例 为主终端和从终端各自所在网络的传输带宽占总带宽的比例,所述总带宽为主 终端和从终端所在网络的传输带宽的总和。 The decision determination unit is configured to use the first ratio as the result of the offload decision; the first ratio is the ratio of the transmission bandwidth of the network where the master terminal and the slave terminal are located to the total bandwidth, and the total bandwidth is the ratio of the master terminal and the slave terminal. The total transmission bandwidth of the network where the terminal is located.
19、 一种多流并发传输系统, 包括: 媒体服务器和分流决策服务器, 其特 征在于, 19. A multi-stream concurrent transmission system, including: a media server and a distribution decision server, characterized by:
所述媒体服务器为权利要求 14~16任意一项的媒体服务器,分流决策服务 器为权利要求 17或 18的分流决策服务器。 The media server is the media server of any one of claims 14 to 16, and the offload decision server is the offload decision server of claim 17 or 18.
PCT/CN2013/083125 2013-09-09 2013-09-09 Method, device, and system for multi-stream multiplexing WO2015032087A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/083125 WO2015032087A1 (en) 2013-09-09 2013-09-09 Method, device, and system for multi-stream multiplexing
CN201380001973.0A CN104620669B (en) 2013-09-09 2013-09-09 A kind of multithread concurrent transmission method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/083125 WO2015032087A1 (en) 2013-09-09 2013-09-09 Method, device, and system for multi-stream multiplexing

Publications (1)

Publication Number Publication Date
WO2015032087A1 true WO2015032087A1 (en) 2015-03-12

Family

ID=52627723

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/083125 WO2015032087A1 (en) 2013-09-09 2013-09-09 Method, device, and system for multi-stream multiplexing

Country Status (2)

Country Link
CN (1) CN104620669B (en)
WO (1) WO2015032087A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191052A (en) * 2019-04-23 2019-08-30 北京交通大学 Across the protocol network transmission method of one kind and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108011822A (en) * 2016-10-31 2018-05-08 南宁富桂精密工业有限公司 Multimedia data stream transmission optimization method and SDN controllers

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196591A (en) * 2010-03-05 2011-09-21 中兴通讯股份有限公司 Mobile terminal and data parallel transmission method thereof
CN102625417A (en) * 2011-01-26 2012-08-01 中兴通讯股份有限公司 System and method for realizing multi-system wireless terminal binding
CN102665142A (en) * 2012-04-05 2012-09-12 浙江大学 Wireless audio and video parallel transmission method with terminal equalization rate
CN102685921A (en) * 2011-03-11 2012-09-19 中兴通讯股份有限公司 Dual-channel communication method and system
CN102833813A (en) * 2011-06-14 2012-12-19 华为技术有限公司 Method, terminal and network equipment for distributing data to wireless local area network
CN103120014A (en) * 2010-07-30 2013-05-22 高通股份有限公司 Coordinating data calls on a mobile device with multiple modems
CN103188761A (en) * 2011-12-29 2013-07-03 中兴通讯股份有限公司 Method and device of multi-network access

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196591A (en) * 2010-03-05 2011-09-21 中兴通讯股份有限公司 Mobile terminal and data parallel transmission method thereof
CN103120014A (en) * 2010-07-30 2013-05-22 高通股份有限公司 Coordinating data calls on a mobile device with multiple modems
CN102625417A (en) * 2011-01-26 2012-08-01 中兴通讯股份有限公司 System and method for realizing multi-system wireless terminal binding
CN102685921A (en) * 2011-03-11 2012-09-19 中兴通讯股份有限公司 Dual-channel communication method and system
CN102833813A (en) * 2011-06-14 2012-12-19 华为技术有限公司 Method, terminal and network equipment for distributing data to wireless local area network
CN103188761A (en) * 2011-12-29 2013-07-03 中兴通讯股份有限公司 Method and device of multi-network access
CN102665142A (en) * 2012-04-05 2012-09-12 浙江大学 Wireless audio and video parallel transmission method with terminal equalization rate

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191052A (en) * 2019-04-23 2019-08-30 北京交通大学 Across the protocol network transmission method of one kind and system

Also Published As

Publication number Publication date
CN104620669A (en) 2015-05-13
CN104620669B (en) 2018-11-30

Similar Documents

Publication Publication Date Title
JP6867500B2 (en) Methods, network devices, and systems for implementing data processing, as well as storage media
CN109548095B (en) Method and device for switching serving cells
JP5882353B2 (en) Method and system for multi-connection in a file system session
Yang et al. When ICN meets C-RAN for HetNets: an SDN approach
CN107615729B (en) Data transmission method and communication device
Wang et al. Implementation of multipath network virtualization with SDN and NFV
US20130182601A1 (en) System and Method for Aggregating and Estimating the Bandwidth of Multiple Network Interfaces
CN101997826A (en) Routing methods of control net element, forwarding net element and internet protocol network
Park et al. Cooperative base station caching and X2 link traffic offloading system for video streaming over SDN-enabled 5G networks
KR102083273B1 (en) Apparatus and method for dynamically configuring Cloud-RAN
US20160072641A1 (en) Data transmission method, apparatus, and computer storage medium
CN114616858B (en) Method for performing QOS monitoring by a UPF node comprising a plurality of UPF instances and UPF node for performing the method
CN105530681A (en) Method and device for service processing
JP5816960B2 (en) Communications system
WO2013178109A1 (en) Method for service content distribution under heterogeneous network and service management platform
Siris et al. Multi-source mobile video streaming with proactive caching and D2D communication
Detti et al. A cluster-based scalable router for information centric networks
JP2024054313A (en) Communication control method and relay device
CN103974333A (en) Load balancing method for SVC video services and moving speed
Liu et al. Cross-layer design for UAV-based streaming media transmission
Ye et al. PTP: Path-specified transport protocol for concurrent multipath transmission in named data networks
WO2022001639A1 (en) Communication method, mobile device and routing device
WO2011157190A2 (en) Data reception processing method and apparatus
WO2015032087A1 (en) Method, device, and system for multi-stream multiplexing
WO2014187089A1 (en) Data transmission system and method

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

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

Country of ref document: EP

Kind code of ref document: A1