1. Field
The present disclosure generally relates to streaming of data, and more specifically relates to network streaming of data from a sending endpoint to a receiving endpoint.
2. Description of the Related Art
In the field of data streaming in a network, there is a problem in that data streaming from a sending endpoint to a recipient endpoint may be detrimentally affected by limited network bandwidth, collisions in data transmission, and latency, which in turn affect the delivery quality of the streamed data. In the future, network bandwidth will invariably increase; however, recent history has shown that the quantity of data information that needs to be sent over networks grows much faster than the then-current delivery infrastructure. As the quantity of data information continues to increase (e.g., High Definition video streaming), an already overburdened system may provide less than adequate data delivery and/or playback quality, or may fail outright.
One solution to this problem is available in a situation where the architecture of the network is such that the sender and the recipient both have multiple physical connections to the network, and/or in situations where there are multiple networks that connect the sender and recipient, and both the sender and recipient each have one or more physical connections to each network. For example, the sender and recipient might be connected over four separate networks including, such as, an Ethernet network, a MoCA (Multimedia over Coax Alliance) network, an Ethernet over powerline network, a HomePNA (Home Phoneline Networking Alliance) network, and/or a wireless network. For each network, both sender and recipient each have one or more physical connections to each network, such as twisted pair cable connecting to the Ethernet network, coaxial cable connecting to the MoCA network, power lines/wires connecting to the Ethernet over powerline network, and one or more radio antennas connecting to the wireless network.
With such an architecture, the single data stream is split into sub-streams and sent over multiple physical interfaces which connect the endpoints of the network, instead of streaming data over only one of the possible physical interfaces. This solution is more flexible and resilient to network load or impairments because multiple physical interfaces are used simultaneously.
However, using dissimilar physical interfaces raises a new set of problems. One of such problems is that a sending endpoint of the network will need to split the data stream into multiple data streams and send the multiple data streams over the multiple physical interfaces in an efficient manner. Another such problem is that a receiving endpoint will need to reconstruct the multiple data streams into a single data stream.
In the present disclosure, the foregoing problems are addressed by sending a single data stream from a sending endpoint to a receiving endpoint, wherein both of the sending endpoint and the receiving endpoint each have multiple physical interfaces connecting the sending endpoint and the receiving endpoint to multiple networks, respectively. The sending endpoint efficiently sends the data stream to the receiving endpoint by splitting the single data stream into multiple data packets, and sending the multiple data packets over the multiple physical interfaces in accordance with a data capacity throughput for the multiple physical interfaces. In addition, each of the data packets has header information so that the receiving endpoint can reconstruct the single data stream by combining the multiple data packets according to the header information.
According to one aspect of the disclosure, a data capacity throughput for each of the multiple physical interfaces is determined, and the single data stream is partitioned into multiple data packets. Each of the multiple data packets has header information which identifies a sequence identifier indicating an in-sequence position of the data packet in the single data stream. On the sending side, for each data packet, a send-side physical interface and a receive-side physical interface are designated depending at least partly on the data capacity throughput. Different portions of the partitioned data packets are then sent over different ones of the multiple physical interfaces in accordance with the designation. The different portions of the partitioned data packets are received at the receiving endpoint. The single data stream is then reconstructed at the receiving endpoint by combining the received partitioned data packets into the single data stream in accordance with the header information of the multiple data packets. In addition, an acknowledgment is sent over each of the multiple physical interfaces from the receiving endpoint to the sending endpoint indicating an amount of data received on each of the different ones of the multiple physical interfaces. The acknowledgment includes an indication of any changes in the data capacity throughput for each of the multiple physical interfaces on the recipient side.
By virtue of the foregoing arrangement, it is ordinarily possible when sending data between endpoints of a network over multiple physical interfaces, to utilize all of the multiple physical interfaces in an efficient manner. More precisely, because a data capacity throughput of each of the multiple physical interfaces is determined, different portions of partitioned data packets can be sent over different ones of the multiple physical interfaces in accordance with the determined data capacity throughput of the multiple physical interfaces. Since different portions of the partitioned data packets are sent over different ones of the multiple physical interfaces in accordance with the data capacity throughput, the multiple physical interfaces are used more efficiently than if the same amount of data was sent over different ones of the multiple physical interfaces having different throughput capabilities. Moreover, because a receiving endpoint sends an acknowledgment indicating an amount of data received from a sending endpoint on each of the multiple physical interfaces, the foregoing arrangement also ensures that each data packet sent over the multiple physical interfaces is received at the receiving endpoint. Furthermore, because each of the data packets has header information which identifies a correct position of the data packet in the single data stream, the receiving endpoint is able to combine the data packets into a single data stream, regardless of the order in which the data packets are received.
According to another aspect of the disclosure, when the sending endpoint determines a data capacity throughput for each of the multiple physical interfaces, it uses the indication of any changes in the data capacity throughput for the physical interface on the recipient side included in the acknowledgment sent by the receiving endpoint. As a result, the sending endpoint is able to accurately determine the data capacity throughput for each of the multiple physical interfaces.
According to yet another aspect, if the acknowledgment indicates that an amount of a portion of data packets was not received over one of the multiple physical interfaces, then, depending on the data capacity throughput of the multiple physical interfaces, the sending endpoint resends the portion of not received data packets over the same multiple physical interface. On the other hand, depending on the data capacity throughput of the multiple physical interfaces, the sending endpoint may repartition the portion of not received data packets, and send the repartitioned data packets over one or more of available ones of the multiple physical interfaces. As a result, the sending endpoint can decide on the best method of sending the data packets so as to ensure that the data packets are received, and received in an efficient manner.
In another aspect, for ones of the multiple physical interfaces using a non-TCP connection, if the acknowledgment is not received by the sending endpoint, or the acknowledgment is a negative acknowledgment, the different portions of the partitioned data packets sent over different ones of the multiple physical interfaces are re-sent in their entirety over different ones of the multiple physical interfaces.
In another aspect, the receiving endpoint sends another acknowledgment over each of the multiple physical interfaces to the sending endpoint indicating an amount of data received on each of the different ones of the multiple physical interfaces. If the acknowledgment indicates that a portion of the re-sent data packets was not received, then the sending endpoint continues to resend any portion of the not received data packets. In addition, the receiving endpoint continues to send acknowledgments indicating an amount of data received, until the portion of partitioned data packets is entirely received by the receiving endpoint. Because the receiving endpoint continues to send acknowledgments, and the sending endpoint continues to resend any not received data packets, any potential loss of data packets during streaming is greatly reduced.
In yet another aspect, the sending endpoint and the receiving endpoint each have a single physical interface connected to each of the multiple networks. For each data packet, the designated receive-side physical interface is a physical interface connected to a same network as the designated send-side physical interface. In other words, there is only one send-side interface and one receive side interface per network, which simplifies a selection of a receive-side physical interface. Because the sending endpoint and the receiving endpoint each have a single physical interface connected to each of the multiple networks there is no need to select which receiving-side physical interface is to connect with which sending-side physical interface because there is only one receive-side physical interface connected to the network of the designated send-side physical interface. Since there is no need to make a selection of a receive-side physical interface, the processing power used by the receiving endpoint to designate a receive-side physical interface for each data packet, is reduced. In particular, the physical interfaces are essentially designated based on a data capacity throughput of each of the multiple networks.
According to another aspect, the sending endpoint and the receiving endpoint each have multiple physical interfaces connected to each of the multiple networks. For each data packet, when designating a send-side physical interface, one of the multiple physical interfaces of the sending endpoint connected to one of the multiple networks is designated as the send-side physical interface. In addition, for each data packet, when designating a receive-side physical interface, one of the multiple physical interfaces of the receiving endpoint connected to a same network as the designated send-side physical interface is designated. Because the sending endpoint and the receiving endpoint each have multiple physical interfaces connected to each of the multiple networks, more combinations exist for designating a send-side physical interface and a receive-side physical interface, which in turn provides more flexibility when sending the data packets over the different multiple physical interfaces. Having more flexibility when sending the data packets over the different multiple physical interfaces allows for the single data stream to be sent from the sending endpoint to the receiving endpoint even more efficiently.
According to yet another aspect, in the case where the sending endpoint and the receiving endpoint each have multiple physical interfaces connected to each of the multiple networks, the designated receive-side physical interface is automatically selected according to the designation of the send-side physical interface (i.e., N-N-N). For example, a physical interface of the sending endpoint connected to one of the multiple networks may be assigned to a physical interface of the receiving endpoint connected to the same network and thus, once a physical interface is designated on the send-side, the assigned receive-side physical interface is automatically designated. As a result, no decision making is necessary at the receive-side end because the physical interface on the receive-side end is automatically selected according to the assignation. Accordingly, the processing power used for designating a receive-side physical interface is reduced, while still providing more combinations for designations of physical interfaces. In other words, because a receive-side physical interface is automatically selected as a physical interface assigned to a certain send-side interface, excess processing power is saved which might have been used to decide which physical receive-side interface to utilize.
According to an additional aspect, in the case where the sending endpoint and the receiving endpoint each have multiple physical interfaces connected to each of the multiple networks, the designated receive-side physical interface is designated based on a data capacity throughput of the multiple physical interfaces of the receiving endpoint connected to a same network as the designated send-side physical interface, and a data capacity throughput of the designated send-side physical interface. Because the designated receive-side physical interface is designated based on a data capacity throughput of the multiple physical interfaces of the receiving endpoint, the single data stream may be streamed over the multiple physical interfaces with high efficiency.
In another aspect, the data capacity throughput of each of the multiple physical interfaces is determined using a TCP/IP window size of each of the multiple physical interfaces. For ones of the multiple physical interfaces using a UDP connection, TCP/IP is used as a control channel, and the data capacity throughput of the physical interfaces is determined using a TCP/IP window size of the physical interface provided by the TCP/IP control channel.
In an additional aspect, the amount of data received on each of the multiple physical interfaces is indicated by identifying a byte index that is expected to be received on each of the multiple physical interfaces.
This brief summary has been provided so that the nature of the disclosure may be understood quickly. A more complete understanding can be obtained by reference to the following detailed description and to the attached drawings.
Receiving endpoint 102 also has multiple physical interfaces 105b connecting to network 111. Similar to sending endpoint 101, receiving endpoint 102 may also have a single or multiple physical interfaces connecting to network 111. As a result of the physical interface connections, sending endpoint 101 is connected to receiving endpoint 102 through network 111, using physical interfaces 105b.
Similar to the above-described connection between sending endpoint 101 and receiving endpoint 102, sending endpoint 101 and receiving endpoint 102 are connected through networks 112, 113 and 114 via physical interfaces 106a and 106b, 107a and 107b and 108a and 108b. Accordingly, sending endpoint 101 is connected to network 112 through one or more physical interfaces 106a; and, receiving endpoint 102 is connected to network 112 through one or more physical interfaces 106b. Sending endpoint 101 is connected to network 113 through one or more physical interfaces 107a; and, receiving endpoint 102 is connected to network 113 through one or more physical interfaces 107b. Lastly, sending endpoint 101 is connected to network 114 through one or more physical interfaces 108a; and, receiving endpoint 102 is connected to network 114 through one or more physical interfaces 108b. In
Networks 111, 112, 113 and 114 can be many different types of networks, such as, for example, an Ethernet network, a Multimedia over Coax Alliance (MOCA) network, a HomePNA (Home Phoneline Networking Alliance) network, an Ethernet over powerline network (HomePlug), a wireless network, or any other type of network. In addition, the networks connecting the two endpoints can all be a different type of network (e.g., network 111 can be an Ethernet network, while network 112 is a wireless network, network 113 is an Ethernet over powerline network, and network 114 is a MoCA network). On the other hand, the networks connecting the two endpoints can include any variety of combinations of different networks (e.g., network 111 can be a MoCA network, while network 112 is a wireless network, and networks 113 and 114 are Ethernet networks). The type of physical interfaces connecting the endpoints to the networks depends upon the type of network. For example, an endpoint may be connected to an Ethernet network through twisted pair cable, an endpoint may be connected to a MoCA network through coaxial cable, an endpoint may be connected to an Ethernet over powerline network over power lines/wires, and an endpoint may be connected to a wireless network over one or more radio antennas.
The sending endpoint 101 serves as an application sender, which may include, for example, a media server, a conference server, or a storage sender application. A media server is an endpoint that will transfer audio and video data (or other types of large data) to a client. Although the media server is specific to transferring video streams, other types of media servers can be substituted (e.g., an audio-only stream or a large archival stream). The media server may also be a modified third party application accessing the sending endpoint 101. A conference server is an endpoint that sends data (via Unicast or Multicast) to conference players, and is used in providing interactive conference content to participants. A storage sender application is an endpoint that sends data from a device to a receiver, and is used in transferring data between two endpoints (e.g., File Transfer Protocol (FTP)). The storage sender application is primarily used in a PC collaboration as a means to send device data to be stored at an external storage medium.
The receiving endpoint 102 serves as an application receiver, which may include, for example, a media client or media player, a conference player, or a storage receiver application. A media client or media player is an endpoint that receives data from a media server, and is used primarily for video and audio stream playing. A conference player is an endpoint that receives data from the conference server, and is used in playing and interacting within a conference. A storage receiver application is an endpoint that receives data from a storage sender application, and is used in transferring data between two endpoints (e.g., FTP). The storage application receiver is primarily used in a PC collaboration as a means to receive device data to be stored at an external storage medium.
In some instances, a sending endpoint may also simultaneously act as a receiving endpoint. For example, when a sending endpoint serves as a video conferencing application, video would stream from the sending endpoint to the receiving endpoint, and video would stream simultaneously from the receiving endpoint to the sending endpoint. In this example, the sending endpoint would also be acting as a receiving endpoint, and the receiving endpoint would also be acting as a sending endpoint. In other instances, a sending endpoint may become a receiving endpoint after some period of time. For example, a sending endpoint and a receiving endpoint might transfer data back and forth to each other in a ping-pong fashion, rather than simultaneously. In other words, the sending endpoint might complete a transfer of data to the receiving endpoint, and then a second transfer may begin in the opposite direction from the receiving endpoint to the sending endpoint.
RAM 208 interfaces with computer bus 200 so as to provide information stored in RAM 208 to CPU 202 during execution of the instructions in software programs such as an operating system, application programs, and interface drivers. More specifically, CPU 202 first loads computer-executable process steps from fixed disk 220, or another storage device into a region of RAM 208. CPU 202 can then execute the stored process steps from RAM 208 in order to execute the loaded computer-executable process steps. In addition, data such as gathered network performance statistics or other information can be stored in RAM 208, so that the data can be accessed by CPU 202 during the execution of computer-executable software programs, to the extent that such software programs have a need to access and/or modify the data.
As also shown in
In an example embodiment, software library 232 and traffic monitor 234 are loaded by CPU 202 into a region of RAM 208. CPU 202 then executes the stored software library 232 and the traffic monitor 234 from RAM 208 in order to execute the loaded computer-executable steps. In addition, application programs 230 are loaded by CPU 202 into a region of RAM 208. CPU 202 then executes the stored process steps as described in detail below in connection with
RAM 308 interfaces with computer bus 300 so as to provide information stored in RAM 308 to CPU 302 during execution of the instructions in software programs such as an operating system, application programs, and interface drivers. More specifically, CPU 302 first loads computer-executable process steps from fixed disk 320, or another storage device into a region of RAM 308. CPU 302 can then execute the stored process steps from RAM 308 in order to execute the loaded computer-executable process steps. In addition, data such as gathered network performance statistics or other information can be stored in RAM 308, so that the data can be accessed by CPU 302 during the execution of computer-executable software programs, to the extent that such software programs have a need to access and/or modify the data.
As also shown in
Software library 332 in this example is identical to software library 232 in sending endpoint 101. However, in other embodiments, the software library 332 need not be identical to library 232, so long as the two libraries implement a similar software architecture relative to the software library, the traffic monitor, the bondable virtual interfaces, and the data organizer. For example, the sending and receiving endpoints might implement different versions of the same software architecture. Or the sending and receiving endpoints might implement architecture that target different operating systems, such as Windows on the sending endpoint and Linux on the receiving endpoint. Or, the sending endpoint and the receiving endpoint might implement architecture that is OS-neutral like JAVA. Hard disk 320 also contains traffic monitor 334 for gathering performance statistics for each of the multiple physical interfaces 105b, 106b, 107b and 108b. In addition, hard disk 320 contains bondable virtual interfaces 336, data organizer 338, application channels 340, endpoint channels 342, bondable virtual interface connectors 344, bondable virtual interface factory 346, and traffic proxy 348, each of which is instantiated by the software library 332 and will be described in more detail below with reference to
In an example embodiment, software library 332 and traffic monitor 334 are loaded by CPU 302 into a region of RAM 308. CPU 302 then executes the stored process steps of the software library 332 and the traffic monitor 334 from RAM 308 in order to execute the loaded computer-executable steps. In addition, the process steps of the application programs 330 are loaded by CPU 302 into a region of RAM 308. CPU 302 then executes the stored process steps as described in detail below in connection with
Transferring data between two endpoints in an efficient manner is difficult. Efficiency can be improved in general by increasing the amount of information concerning the nature of the transfer. For example, efficiency can be improved with an understanding of how to send data between two endpoints and also an understanding of the type of data being sent. Further, by identifying multiple physical interfaces and combining them together into one physical interface (i.e., bondable virtual interface), data throughput may be improved.
In a simplistic architecture, a media receiver/player requests (via e.g., HTTP or RTSP) for a movie stream from a media server. The media server then sends data to the client with some, but probably little concern as to the means or how well the client may have received the media stream data. In contrast, within the architecture of this example embodiment, the media client provides profile information (i.e., a suggested or predetermined bondable virtual interface configuration) as to the type of the media to be streamed, and negotiates with the media server as to the physical interfaces available to exchange data. With this knowledge of media type, both the sending and receiving buffer can be modified to improve throughput. The negotiation between the media client and the media server produces a configuration and setup for multiple physical interfaces via negotiation. In a case where there are multiple logical physical interfaces, the creation of a combined (or bondable virtual interface) physical interface will occur. In this regard, a bondable virtual interface is a combination of physical interfaces that can send data via multiple physical interfaces. Further, feedback information will be sent between both endpoints to improve throughput. The media client then receives the segments on the multiple physical interfaces, recombines the segments and provides the data to the media client's player (whether included in the media client or connected to the media client). Using this architecture makes it possible to ordinarily improve throughput by: (1) Sending information back (via a feedback channel) to the endpoint regarding changes to the data stream or processing of the data, which improves the efficiency of buffer management, and (2) using a bondable virtual interface which increases throughput of data by using multiple physical interfaces to send the data.
As used herein, the word “instantiate” refers to the construction in memory of a software object, such as by use of an object factory. How the software object is created varies among different programming languages. In prototype-based languages, an object can be created from nothing, or an object can be based on an existing object. In class-based language, objects are derived from classes, which can be thought of as blueprints for constructing the software objects.
As further shown in
Furthermore, the bondable virtual interface factory 246 is connected to and associates with the bondable virtual interfaces 236. The bondable virtual interfaces 236 are also connected to and associate with the data organizer 238 and the bondable virtual interface connectors 244. The bondable virtual interface connectors 244 also associate with application channels 240 and endpoint channels 242.
The above-mentioned architecture will now be described in more detail in connection with
As shown in
The software library 232 is for controlling the sending of the data stream from the sending endpoint 101. In controlling the sending of data, the software library 232 instantiates a plurality of bondable virtual interfaces 236 and a data organizer 238. In addition, the software library 232 instantiates logical physical interfaces 509. The logical physical interface 509 is an abstraction of a physical interface, which has a uniform interface. In addition, the bondable virtual interfaces 236 are instantiated by the software library based on the information communicated by the traffic monitor 234, for splitting the data stream into multiple data substreams at the sending endpoint 101. A bondable virtual interface is a clustering of two or more logical physical interfaces as a bondable object that aggregates available bandwidth with a single thread to manage a common buffer memory. The bondable virtual interface has a second thread to listen to a single feedback path from the receiving endpoint 102, and has additional threads for managing data transfer from a common buffer memory to each of an associated logical physical interface. An example of a bondable virtual interface is a pair of 802.11g wireless interfaces combined for a nominal available bandwidth of 44 Mb/s, assuming 22 Mb/s of effective bandwidth for each individual interface.
In addition, the data organizer is used for designating one of the plurality of bondable virtual interfaces 236 for splitting the data stream. At the sending endpoint 101, the data organizer 238 instantiates a data splitter 238 for implementing the designated one of the plurality of bondable virtual interfaces 236 at the sending endpoint 101. In this regard, the data organizer 238 is a parent object for the data splitter, and includes functionality for the registration of new or added bondable virtual interfaces. Moreover, the data organizer 238 is inherited by the data splitter 238. The data splitter 238 contains the bondable virtual interfaces 236 class implementation, and contains the associated behavior for splitting the input data stream onto the multiple physical interfaces.
Similar to the sending endpoint 101, in the receiving endpoint 102, the architecture includes a software library 332 and a traffic monitor 334. The traffic monitor 334 is for gathering performance characteristics of each of the multiple physical interfaces. More specifically, the traffic monitor 334 is an operating system-specific application or (daemon) service that provides the software library 332 with all of the available physical interfaces and with individual physical interface performance/traffic statistics and data. The traffic monitor 334 may obtain network status by periodically making system calls to system's data structures to acquire statistics for each physical interface of the receiving endpoint 102. This data is then used by the traffic monitor 334 to specify corresponding configurations for bondable virtual interfaces, which will be described in more detail below, including a list of suitable known bondable virtual interfaces that can be used to transfer data based on current network traffic. The traffic monitor 334 communicates information back and forth between the software library 332. In
The software library 332 is for controlling the receiving of the data stream at the receiving endpoint 102. In controlling the receiving of data, the software library 332 instantiates a plurality of bondable virtual interfaces 336 and a data organizer 338. In addition, the software library 332 instantiates logical physical interfaces 510. The logical physical interfaces 510 are substantially the same as logical physical interfaces 509, and provide the same functions. The bondable virtual interfaces 336 are instantiated by the software library based on the information communicated by the traffic monitor 334, for combining the multiple data sub-streams into the data stream at the receiving endpoint 102. In addition, the data organizer is for designating one of the plurality of bondable virtual interfaces 236 for combining the data stream.
At the receiving endpoint 102, the data organizer 338 instantiates a data combiner 338 for implementing the designated one of the plurality of bondable virtual interfaces 336 at the receiving endpoint 102. In this regard, the data combiner 338 is a parent object for the data combiner 338, and includes functionality for the registration of new or added bondable virtual interfaces. Moreover, the data organizer 338 is inherited by the data combiner 338. The data combiner 338 contains the bondable virtual interfaces 336 class implementation, and contains the associated behavior for combining multiple input streams into a resulting single data stream.
At startup of the architecture, the data splitter 238 and the data combiner 338 read network statistics provided by the traffic monitor 234 and 334. The traffic monitors' network statistics are updated periodically (at optionally application specified intervals), and are organized to display an ordered list of recommended bondable physical interface configurations, along with a minimum bandwidth available for each.
As further shown in
As shown in
The bondable virtual interfaces 236 and 336, as shown in
In addition, the bondable virtual interfaces 236 and 336 have the basic functionality to split or combine data (based upon the role provided by the data splitter 238 or the data combiner 338). In general, the bondable virtual interfaces may be a reduction of a number or a set of rules regarding how to handle data from one or more application channels split over one or more endpoint channels (or vice versa, when recombining data). Thus, different types of bondable virtual interfaces may be created. Three examples of such bondable virtual interfaces are: a simple TCP Bondable virtual interface, a simple UDP bondable virtual interface, and a feedback TCP bondable virtual interface. A simple TCP bondable virtual interface is a bondable virtual interface consisting of multiple physical network interfaces, sending data with each interface using standard TCP connections. An example of a simple TCP bondable virtual interface would be a “round robin” type bondable virtual interface, which uses multiple interfaces to send data.
A simple UDP bondable virtual interface is a bondable virtual interface consisting of multiple physical network interfaces, and sending data with each interface using standard UDP datagrams.
A feedback TCP bondable virtual interface is a bondable virtual interface which utilizes feedback from the receiving endpoint to change the manner in which data is sent over multiple physical network interfaces using TCP connections.
When designating ones of the plurality of bondable virtual interfaces 236 and 336, the data splitter 238 and the data combiner 338 negotiate to designate one of the bondable virtual interfaces, based on the performance characteristics of the multiple physical interfaces 105a to 108a and 105b to 108b and available ones of the plurality of bondable virtual interfaces. During the negotiation between the data splitter 238 and the data combiner 338, the data splitter 238 presents available ones of the plurality of bondable virtual interfaces, and the data combiner 338 selects one of the available ones of the plurality of bondable virtual interfaces.
Furthermore, the software libraries 232 and 332 further instantiate a plurality of bondable virtual interface connectors 244 and 344, respectively. Each bondable virtual interface connector is associated with a specific bondable virtual interface. The bondable virtual interface connectors 244 and 344 ensure that the connections between the software libraries 232 and 332 and the multiple physical interfaces 105a to 108a and 105b to 108b via the multiple endpoint channels 242 and 342, respectively, are ready to accept data before sending data from the sending endpoint 101 to the receiving endpoint 102. In addition, the bondable virtual interface connectors 244 and 344 ensure that the connections between the software libraries 232 and 332 and the one or more applications 501 and 502 via the one or more application channels 240 and 340, respectively, are ready to accept data before sending data from the sending endpoint 101 to the receiving endpoint 102.
When sending streaming data from the sending endpoint 101 to the receiving endpoint 102, the one or more applications 501 specify a category of time objective: the categories include a non-time critical objective, a time critical objective, or a near-time critical objective. A non-time critical data stream is a data stream where the data should be received without error; however, time may not be a critical factor (i.e., there may be scenarios (or situations) where time is a critical factor). In these scenarios, a contributing factor for a non-time critical data stream should also include data integrity and thus, in these situations, there is a significant difference between non-time critical, near-time critical and time critical. For example, a non-time critical objective would be specified for a simple file transfer, because the data in this scenario ordinarily should be received without error, and arrival time may not be important for this data.
A near-time critical data stream is a data stream where the data is bound to an endpoint within a range of time. For example, a video stream can possibly be buffered for 5 seconds before the first video frame is displayed on the screen. Or, in the case of a larger memory buffer or hard drive, the first couple of minutes can be burst from the sender to the receiver (i.e., video server to video player). Thus, after the head start (buffer or system priming) has been buffered, the remaining data can be sent in a more leisurely manner, as long as it is received in time to be consumed by the player without interruption in playback. Further, in video streams, it is often the case that some of the packets may be dropped, corrupted or lost due to collision or other network impairments. In this regard, UDP is often the de-facto standard of video streaming and UDP does not guarantee delivery.
For a time-critical data stream, it is usually imperative that the information be received as quickly as possible. Moreover, a time critical objective would be specified when streaming an interactive video stream such as a video conference, because the data in this scenario should be received as soon as possible, while a loss of an insignificant portion of the data may be acceptable.
Because a time objective is specified for the data to be sent, the architecture has greater flexibility in choosing which of the multiple physical interfaces to utilize in sending data. Thus, instead of solely relying on network bandwidth of the multiple physical interfaces, the architecture can utilize the time objectives to provide an even more efficient means of sending data between the endpoints.
For the near-time critical and the time critical data streams, transferring of the stream will involve a payload stream mechanism, a feedback stream mechanism 515, and a control stream mechanism. The payload stream mechanism sends the payload content from the sending endpoint 101 to the receiving endpoint 102. In the architecture, the payload stream is sent via a bondable virtual interface, for example, using an RTP-like protocol where multiple physical interfaces will be used to send data to the receiving endpoint 102. The feedback stream mechanism 515 sends processing and physical interface behavior information between the receiving endpoint 102 and the sending endpoint 101 (or in other scenarios vice-a-versa) using, for example, an RTCP like protocol. The control stream mechanism sends content control commands from the receiving endpoint 102 to the sending endpoint 101 (e.g., play, pause, etc.) using, for example, an RTSP like protocol.
For a non-time critical data stream, the transferring of the stream within the architecture will have the same behavior as the near-time and the time critical data streams with no control stream. Thus, the transferring of the stream for a non-time critical data stream involves a payload stream mechanism and a feedback stream mechanism, each having similar characteristics as the stream mechanisms of the near-time and the time critical data streams.
Furthermore, the software libraries 232 and 332 each further comprise a software application program interface 280, as described in connection with
As discussed above, the traffic monitors 234 and 334 may communicate with the software libraries 232 and 332, respectively, via a traffic proxy. In this case, the software libraries 234 and 334 each further instantiate a traffic proxy 248 (as described in connection with
In general, all interaction between the architecture and other applications is conducted through a basic interface. This basic interface is comprised of a core functionality, which is specific to the architecture, and behavioral functionality, which is specific to the operation of the interfacing application. Examples of core functionality would be a startup and shutdown of the architecture. Behavioral functionality examples might include RTSP, or URL connection functionality. For example, the architecture will provide a setup functionality to extend the standard RTSP setup functionality, in which the extension to RTSP is obtainable from an RTSP OPTIONS command. In another example, URL connection functionality can be added to achieve file transfer behavior.
Also shown in
The SimpleTCP_BPhyConnector object 628 also associates with BondablePhyInf object 613. Moreover, a SimpleTCP_Redirectable_BPhy object 622, a SimpleTCP_BPhy object 621, a ReliableUDP_NTC_BPhy object 624, a SimpleUDP_NTC_BPhy object 627, a SimpleUDP_BPhy object 625, a DataCombiner object 610, and a DataSplitter object 608 are all dependent upon the BondablePhyInf object 613. In addition, the SimpleTCP_BPhy object 621, the SimpleTCP_Redirectable BPhy object 622, the ReliableUDP_NTC BPhy object 624, the SimpleUDP_BPhy object 625, and the SimpleUDP_NTC_BPhy 627 all associate with BondablePhyBase object 623. The BondablePhyBase object 623 associates with the BondablePhyInf object 613. BondablePhy object 611 also associates with the BondablePhyInf object 613.
The DataCombiner object 610 and DataSplitter object 608 each are associated with and inherit the DataOrganizer object 607, which is dependent upon the BondablePhyConnector object 606 and the BondablePhyConnectorInf object 604. In addition, a DataCombinerEventListener object 609 and a DataSplitterEventListener object 612 associate with the DataCombiner object 610 and the DataSplitter object 608, respectively.
Furthermore, a TrafficProxyInfoTypes object 670 is contained by a TrafficProxyInfoInf object 617. In addition, a PhyInfList object 636, a TrafficProxyInfo object 639, a BondablePhyList object 631, and a TrafficProxy object 615 all associate with the TrafficProxyInfoInf object 617. In addition, a TrafficProxyEventListener 620 associates with the TrafficProxy object 615, and the TrafficProxy object 615 associates with a TrafficMonitorClient object 618. The BondablePhyList also associates with the TrafficProxyGenericInfo object 640 and a BondablePhyListMessage object 632. Moreover, the TrafficProxyInfo object 639 and a BaseNetworkInfo 645 associate with the TrafficProxyGenericInfo object 640. The BaseNetworkInfo object 645 is dependent upon the NetworkInfoFactory object 641, and a NetworkInfoTypes object 646 is contained by the BaseNetworkInfo object 645.
Moreover, the BondablePhyListMessage object 632, the TrafficInfoMessage object 633, and the PhyListMessage object 637 all associate with a NetworkMessage object 635. In addition, a NetworkInfoTypes object 634 is contained by the NetworkMessage object 635. Furthermore, the PhyInfList object 636 associates with the PhyListMessage object 637 and the TrafficProxyGenericInfo object 640.
In addition, a TrafficMonitorMessageTypes object 644 is contained by a TrafficMonitorMessage object 643, and a TrafficMonitorServer object 642 associates with the TrafficMontiorMessage object 643.
Some example implementations are described below, which use the architecture according to an example embodiment. These use cases include situations in which the architecture will be used, and the steps to be implemented for these situations. The following use cases are not an extensive list of use cases for all scenarios of using the architecture; rather, other use cases and implementations may exist or be developed.
As shown in
In
Assuming that the receiving endpoint 102 already has the correct URL for a data stream, the receiving endpoint 102 contacts the sending endpoint 101 to initiate playback of that URL. This playback request is accompanied by a list of preferred profiles to use for playback, as obtained from the traffic monitor 334 of the receiving endpoint 102 (701).
The sending endpoint 101 receives the playback request and the profile list, and uses its traffic monitor 234 to generate a sending side list of preferred profiles. The sending endpoint compares the profile lists looking for a good match, and communicates the chosen profile back to the receiving endpoint 102 (702).
The receiving endpoint 102 confirms (agrees) which paths are to be used, and requests the software library 332 instantiate the data combiner 338 with which to receive and reconstruct the expected media sub-streams (703). The sending endpoint 101 then receives the confirmation, and requests to have the software library 232 instantiate the data splitter 238 to handle the stream. Splitting and sending of the sub-streams over the multiple physical interfaces 105a and 105b to 108a and 108b then commences. In particular, the data splitter 238 splits the single data stream from the server application 501 into sub-streams via the bondable virtual interfaces 236 and 336 (704).
The data combiner then receives and reconstructs the stream, and passes it along to a player application for consumption on the sending endpoint (705). The data combiner 338 and/or the player application 502 generates feedback information, and sends it to the data splitter 238 in the sending endpoint 102 (706).
After playback is complete (signaled, perhaps, by an RTSP teardown command), the architectures on either side of the connection shutdown the connections and the associated data splitter 238 and the data combiner 338. The traffic monitors 234 and 334 continue to run periodically to update network statistics for a next data transfer.
More specifically, a user starts up the receiving endpoint 102 device, and a power-on sequence calls a start-up (801). Next, the application program calls the software library to obtain a reference (802), and uses the reference to call the init function (803). The software library then calls the traffic monitor to obtain a reference (804), and calls GetMediumList to obtain a list of the physical interfaces (805). The traffic monitor then returns the list of physical interfaces to the software library (806). The software library then calls a GetPathList( ) which discovers different paths to other devices (807). The traffic monitor then returns a list of the discovered paths to the software library (808), and the status of the init is returned to the application program (809).
More specifically, a user starts up the sending endpoint 101 device, and a power-on sequence calls a start-up (901). Next, the application program calls the software library to obtain a reference (902), and uses the reference to call the init function (903). The software library then calls the traffic monitor to obtain a reference (904), and calls GetMediumList to obtain a list of the physical interfaces (905). The traffic monitor then returns the list of physical interfaces to the software library (906). The software library then calls a GetPathList( ) which discovers different paths to other devices (907). The traffic monitor then returns a list of the discovered paths to the software (908), and the status of the init is returned to the application program (909).
With respect to
More specifically, a user initiates a quit (1001), and the application program calls a software library shutdown function (1002). Moreover, an asynchronous shutdown is sent to the traffic monitor (1003), an asynchronous shutdown is sent to the data combiner (1004), and/or an asynchronous shutdown is sent to the data splitter (the data splitter could have been invoked when the application sent data to a storage server) (1005). These asynchronously sent messages allow the software library to continue running. Next, the traffic monitor sends a return status to the software library (1006). This return is sent to the software library, where the software library is waiting for all the components to return their shutdown status. Then, the data combiner sends a return status to the software library (1007), and the data splitter sends a return status to the software library (1008). A status of the software library shutdown object is then returned to the application program (1009).
As shown in
As shown in
(iii) Command
As shown in
As shown in
As shown in
For special play modes, such as fast-forward and reverse, the sequence diagram is the same as the above-described sequence diagram in
As shown in
As shown in
(iii) Command
As shown in
As shown in
As shown in
In general, the entire process of
As shown in
As shown in
(iii) Transfer
As shown in
(iv) Disconnect As shown in
As shown in
As shown in
The single data stream is then partitioned into multiple data packets (1602). Each of the multiple data packets has header information which identifies a sequence identifier indicating an in-sequence position of the data packet in the single data stream (e.g., a string used to represent the sequence number). Next, on the sending side, for each data packet, a send-side physical interface and a receive-side physical interface are designated (1603). The designation of the send-side physical interface and the receive-side physical interface depends at least partly on the data capacity throughput. Different portions of the partitioned data packets are then sent over different ones of the multiple physical interfaces 105a and 105b to 108a and 108b in accordance with the designation (1604). The different portions of the partitioned data packets are then received at the receiving endpoint 102 (1605). The single data stream is then reconstructed at the receiving endpoint 102 by combining the received partitioned data packets into the single data stream in accordance with the header information of the multiple data packets (1606). An acknowledgment is then sent over each of the multiple physical interfaces from the receiving endpoint 102 to the sending endpoint 101 indicating an amount of data received on each of the different ones of the multiple physical interfaces 105a and 105b to 108a and 108b (1607). The acknowledgment includes an indication of any changes in the data capacity throughput for each of the multiple physical interfaces 105a and 105b to 108a and 108b on the recipient side. The sending endpoint 101 waits for the acknowledgment in block 1607 before sending anymore data.
By virtue of the foregoing arrangement, it is ordinarily possible when sending data between endpoints of a network over multiple physical interfaces, to utilize all or nearly all of the multiple physical interfaces in an efficient manner. More precisely, because a data capacity throughput of each of the multiple physical interfaces is determined, different portions of partitioned data packets can be sent over different ones of the multiple physical interfaces in accordance with the determined data capacity throughput of the multiple physical interfaces. Since different portions of the partitioned data packets are sent over different ones of the multiple physical interfaces in accordance with the data capacity throughput, the multiple physical interfaces are used more efficiently than if the same amount of data was sent over different ones of the multiple physical interfaces without regard to throughput capabilities. Moreover, because a receiving endpoint sends an acknowledgment indicating an amount of data received from a sending endpoint on each of the multiple physical interfaces, the foregoing arrangement also ensures that each data packet sent over the multiple physical interfaces is received at the receiving endpoint. Furthermore, because each of the data packets has header information which identifies a correct position of the data packet in the single data stream, the receiving endpoint is able to combine the data packets into a single data stream, regardless of the order in which the data packets are received.
When determining a data capacity throughput for each of the multiple physical interfaces 105a and 105b to 108a and 108b in block 1601, the indication of any changes in the data capacity throughput for the physical interface on the recipient side, included in the sent acknowledgment, is used in making the determination. As a result, the sending endpoint 101 is able to accurately determine the data capacity throughput for each of the multiple physical interfaces 105a and 105b to 108a and 108b. In addition, in one example embodiment, the data capacity throughput of each of the multiple physical interfaces 105a and 105b to 108a and 108b is determined using a TCP/IP window size of each of the multiple physical interfaces 105a and 105b to 108a and 108b. However, other mechanisms may be used to determine the data capacity throughput of each of the multiple physical interfaces 105a and 105b to 108a and 108b. For example, in another example embodiment, for ones of the multiple physical interfaces using a UDP connection, TCP/IP is used as a control channel, and the data capacity throughput of the physical interfaces is determined using a TCP/IP window size of the physical interface provided by the TCP/IP control channel.
Furthermore, in block 1607, the amount of data received on each of the multiple physical interfaces can be indicated by identifying a byte index that is expected to be received on each of the multiple physical interfaces. For example, if 5k bits of data is sent from the sending endpoint 101, and only 3k is received or accepted by the receiving endpoint 102, the acknowledgment would indicate that it is now ready for 3k+1 byte of data, and if there are any changes to the amount of data that can be received (i.e., data window).
If in block 1607, the acknowledgment indicates that the entire portion of sent data packets was received, then the receiving endpoint 102 will reconstruct the data stream as stated in block 1606 and send the data stream to a receiving application to be processed.
If in block 1607, the acknowledgment indicates that an amount of a portion of data packets was not received over one of the multiple physical interfaces 105a and 105b to 108a and 108b, then, depending on the data capacity throughput of the multiple physical interfaces 105a and 105b to 108a and 108b determined in block 1601, the sending endpoint 101 resends the portion of not received data packets over the same multiple physical interfaces. On the other hand, depending on the data capacity throughput of the multiple physical interfaces 105a and 105b to 108a and 108b determined in block 1601, the sending endpoint 101 may repartition the portion of not received data packets, and send the repartitioned data packets over one or more of available ones of the multiple physical interfaces. In a case that the portion of data packets was not received because of a physical interface failure, the sending endpoint 101 will repartition the portion of not received data packets, and send the repartitioned data packets over one or more remaining multiple physical interfaces. As a result, the sending endpoint 101 can decide on the best method of sending the data packets so as to ensure that the data packets are received, and received in an efficient manner.
In addition, for ones of the multiple physical interfaces using a non-TCP connection, in a case where the acknowledgment is not received by the sending endpoint 101, or the acknowledgment is a negative acknowledgment, the different portions of the partitioned data packets sent over different ones of the multiple physical interfaces 105a and 105b to 108a and 108b are re-sent in their entirety over different ones of the multiple physical interfaces 105a and 105b to 108a and 108b. As used herein, a “negative acknowledgment” refers to an indication that some of the data was received incorrectly or is corrupted (e.g., the data may have a checksum or message length error). In this regard, no receipt of an acknowledgment is treated as a negative acknowledgment.
If the acknowledgment described above indicates that a portion of the re-sent data packets was not received when the receiving endpoint 102 sends another acknowledgment over each of the multiple physical interfaces to the sending endpoint 101 indicating an amount of data received on each of the different ones of the multiple physical interfaces 105a and 105b to 108a and 108b, then the sending endpoint 101 continues to resend any portion of the not received data packets. In addition, the receiving endpoint 102 continues to send acknowledgments indicating an amount of data received, until the portion of partitioned data packets is entirely received by the receiving endpoint 102. If the acknowledgment indicates that a portion of the re-sent data packets was not received, then the re-sent portion of data packets not received is repartitioned and sent over one or more available ones of the multiple physical interfaces 105a and 105b to 108a and 108b. This process will continue until the first portion of data is received by the receiving endpoint 102 successfully. When the first portion of data is received successfully, the process repeats itself for a next portion of data to be sent. Because the receiving endpoint 102 continues to send acknowledgments, and the sending endpoint 101 continues to resend any not-received data packets, any potential loss of data packets during streaming is greatly reduced.
In block 1603, when the sending endpoint 101 and the receiving endpoint 102 each have a single physical interface connected to each of the multiple networks 111 to 114, for each data packet, the designated receive-side physical interface is a physical interface connected to a same network as the designated send-side physical interface. In other words, there is only one send-side interface and one receive side interface per network, which simplifies a selection of a receive-side physical interface. Because the sending endpoint and the receiving endpoint each have a single physical interface connected to each of the multiple networks there is no need to select which receiving-side physical interface is to connect with which sending-side physical interface because there is only one receive-side physical interface connected to the network of the designated send-side physical interface. Since there is no need to make a selection of a receive-side physical interface, the processing power used by the receiving endpoint to designate a receive-side physical interface for each data packet, is reduced. In particular, the physical interfaces are essentially designated based on a data capacity throughput of each of the multiple networks.
In block 1603, when the sending endpoint 101 and the receiving endpoint 102 each have multiple physical interfaces connected to each of the multiple networks 111 to 114, for each data packet, when designating a send-side physical interface, one of the multiple physical interfaces of the sending endpoint 101 connected to one of the multiple networks is designated as the send-side physical interface. In addition, when designating a receive-side physical interface, one of the multiple physical interfaces of the receiving endpoint 102 connected to a same network as the designated send-side physical interface is designated. Because the sending endpoint and the receiving endpoint each have multiple physical interfaces connected to each of the multiple networks, more combinations exist for designating a send-side physical interface and a receive-side physical interface, which in turn provides more flexibility when sending the data packets over the different multiple physical interfaces. Having more flexibility when sending the data packets over the different multiple physical interfaces allows for the single data stream to be sent from the sending endpoint to the receiving endpoint even more efficiently.
Moreover, in another embodiment, when the sending endpoint 101 and the receiving endpoint 102 each have multiple physical interfaces connected to each of the multiple networks 111 to 114, the designated receive-side physical interface is automatically selected according to the designation of the send-side physical interface. For example, a physical interface of the sending endpoint 101 connected to one of the multiple networks may be assigned to a physical interface of the receiving endpoint 102 connected to the same network and thus, once a physical interface is designated on the send-side, the assigned receive-side physical interface is automatically designated. As a result, no decision making is necessary at the receive-side end because the physical interface on the receive-side end is automatically selected according to the assignation. Accordingly, the processing power used for designating a receive-side physical interface is reduced, while still providing more combinations for designations of physical interfaces. In other words, because a receive-side physical interface is automatically selected as a physical interface assigned to a certain send-side interface, excess processing power is saved which might have been used to decide which physical receive-side interface to utilize.
Furthermore, in yet another embodiment, when the sending endpoint 101 and the receiving endpoint 102 each have multiple physical interfaces connected to each of the multiple networks 111 to 114, the designated receive-side physical interface is designated based on a data capacity throughput of the multiple physical interfaces of the receiving endpoint connected to a same network as the designated send-side physical interface, and a data capacity throughput of the designated send-side physical interface. Because the designated receive-side physical interface is designated based on a data capacity throughput of the multiple physical interfaces of the receiving endpoint, the single data stream may be streamed over the multiple physical interfaces with high efficiency.
As shown in
As used herein, “further back in the series” refers to a data packet extracted an amount of calculated time back in the series of data packets, the calculated time being equal to the determined expected difference in arrival time.
In other cases for other types of data (e.g., non-media, with no additional protocol header time stamps, or media data that is intentionally not partitioned along the protocol packet boundaries, and therefore cannot use time stamp headers), then the aggregate available bandwidth, capacity, or a historical throughput would be used to estimate how much data represents the calculated time. For example, if physical interface 1 (PHY 1) of
As further shown in
By virtue of the foregoing arrangement, it is ordinarily possible to ensure that data packets of a data stream are received at a receiving endpoint on time and in approximate order, which in turn minimizes any unnecessary processing requirements at the receiving endpoint of a network. In this regard, the receiving endpoint may be, for example, a typical set top box, digital video recorder (DVR), or other consumer device such as a consumer device intended for use with a TV. When compared with a typical desktop computer, laptop computer, or home server, the typical devices for a receiving endpoint are resource constrained having drastically less processing power, reduced memory, and smaller mass storage. However, the typical devices for the receiving endpoint will be tasked with, for example, receiving one or more streams of multimedia content, viewing and/or recording content from a cable or satellite TV provider, acting as an input/aggregation device for collecting pictures or uploading personal video content, purchasing and/or playing music, etc. In addition, in the above described arrangement of sending a single stream of data over multiple physical interfaces, if a portion of sent data is late or missing the receiving endpoint carries the additional burden of temporarily storing an unknown amount of data, and then reassembling the resulting data stream when the late or missing data is received. Therefore, because data packets are extracted out of order from further back in the series, and these extra data packets are sent over slower ones of the multiple physical interfaces so as to arrive in an approximate order of the original data stream, any unnecessary buffering and/or processing being performed by the receiving endpoint is minimized, which greatly reduces the load on an already overburdened receiving endpoint.
In one example embodiment, when determining the expected difference in arrival time as shown in block 1801, the expected difference in arrival time is assumed to be a same difference in arrival time as observed in a previous sending of data packets. In another example embodiment, when determining the expected difference in arrival time as shown in block 1801, the expected difference in arrival time is looked up in a table which stores various constant values to be used as an initial expected difference in arrival time for specific ones of the multiple physical interfaces 105a and 105b to 108a and 108b.
When extracting a data packet from further back in the series of data packets in accordance with the determined expected difference in arrival time as shown in block 1804, the extracted data packet represents a unit of time in the future equal to the determined expected difference in arrival time. In this regard, the extracted data packet may be identified by its protocol header timestamp. However, in other embodiments, the extracted data packet may be identified using other means as described in more detail below.
In one example embodiment, when the data stream is a multimedia data stream, and when extracting a data packet from further back in the series of data packets in accordance with the determined expected difference in arrival time as shown in block 1804, the extracted data packet represents a unit of time in the future equal to the determined expected difference in arrival time. In this example embodiment, the extracted data packet is identified using a known average bit rate of the multimedia. Furthermore, the format of the data stream is known based upon a transport protocol (e.g., RTP).
In yet another example embodiment, when the data stream is a non-media stream, and when extracting a data packet further back in the series of data packets in accordance with the determined expected difference in arrival time as shown in block 1804, the extracted data packet represents a unit of time in the future equal to the determined expected difference in arrival time. In this example embodiment, the extracted data packet is identified using a known aggregate available bandwidth of the multiple physical interfaces. Furthermore, the format of the data stream is known based upon a transport protocol (e.g., RTP).
In one example embodiment, the sending endpoint 101 and the receiving endpoint 102 each have a single physical interface connected to each of the multiple networks 111 to 114. When sending the next available data packet of the series over a fastest one of the multiple physical interfaces 105a and 105b to 108a and 108b as shown in block 1803, a send-side physical interface is selected from one of the single physical interfaces connected to one of the multiple networks 111 to 114. The selected send-side physical interface is the fastest single physical interface of the sending endpoint 101 in accordance with the determined expected difference in arrival time. In addition, a receive-side physical interface is selected, in which the selected receive-side physical interface is the physical interface of the receiving endpoint 102 connected to a same network as the selected send-side physical interface.
Moreover, in this example embodiment, when sending the extracted data packet of the series over a corresponding slower one of the multiple physical interfaces 105a and 105b to 108a and 108b as shown in block 1805, a send-side physical interface is selected from one of the single physical interfaces connected to one of the multiple networks 111 to 114. The selected send-side physical interface is a slower corresponding single physical interface of the sending endpoint 101 in accordance with the determined expected difference in arrival time. In addition, a receive-side physical interface is selected, in which the selected receive-side physical interface is the physical interface of the receiving endpoint 102 connected to a same network as the selected send-side physical interface. Because the sending endpoint and the receiving endpoint each have a single physical interface connected to each of the multiple networks, the processing power, necessary for designating a send-side physical interface and a receive-side physical interface for each data packet, is reduced.
According to another example embodiment, the sending endpoint 101 and the receiving endpoint 102 each have multiple physical interfaces 105a and 105b to 108a and 108b connected to each of the multiple networks 111 to 114. When sending the next available data packet of the series over a fastest one of the multiple physical interfaces 105a and 105b to 108a and 108b as shown in block 1803, a fastest send-side physical interface is selected from the multiple physical interfaces 105a and 105b to 108a and 108b of the sending endpoint 101 in accordance with the determined expected difference in arrival time. In addition, a receive-side physical interface is selected from the multiple physical interfaces 105a and 105b to 108a and 108b of the receiving endpoint 102 connected to a same network as the selected send-side physical interface. In this regard, a receive-side physical interface corresponding to the fastest send-side physical interface when determining the expected difference in arrival time is the selected receive-side physical interface for the next available data packet.
Moreover, in this example embodiment, when sending the extracted data packet of the series over a corresponding slower one of the multiple physical interfaces 105a and 105b to 108a and 108b as shown in block 1805, a corresponding slower send-side physical interface is selected from the multiple physical interfaces 105a and 105b to 108a and 108b of the sending endpoint 101 in accordance with the determined expected difference in arrival time, and a receive-side physical interface is selected from the multiple physical interfaces 105a and 105b to 108a and 108b of the receiving endpoint 102 connected to a same network as the selected send-side physical interface. In this regard, a receive-side physical interface corresponding to a slower send-side physical interface when determining the expected difference in arrival time is the selected receive-side physical interface for the extracted data packet. Because the sending endpoint and the receiving endpoint each have multiple physical interfaces connected to each of the multiple networks, a greater number of possible paths are provided on which data packets may be sent.
If in the example embodiments of
The magnitude of the difference expressed above represents the magnitude of time during which the receiving end must wait when reconstructing the single stream of data from the two connections. During this time, the faster stream will stall, while the system waits for the slower stream to produce the expected data. One way to avoid such as a stall is to accept further data from the faster stream while continuing to wait for the slow data to arrive. While this solution allows the faster interface to continue transferring data, it does not allow the reconstructed stream to continue to be consumed upon the receiving side, since the late packet is still not available. Eventually, upon the arrival of the slower data, the original data stream can be properly reconstructed and consumed.
Any such solution requires significant resources on the client, which has to temporarily store an unknown quantity of data, and then reassemble the resulting stream. Unfortunately, the client machine, as above, is the most resource constrained already and the least capable of doing exactly that.
As shown in
Absolute time delay is not essential, if all the substreams are sourced by one server. For this example embodiment, the relative delay in reception times (tr1−tr2) will be considered. At the start of sending, this relative delay will be assumed to be 0, or else assumed to be the same as observed in a previous sending of data, or looked up in a table which stores various constant values to be used as an initial expected delay between two dissimilar interfaces of known types. For the purposes of discussion, the expected relative delay will be assumed to be 0.
Thus, upon receiving the (second) packet transmitted over the faster interface, the receiving side starts a timer or notes the time tr2. When the (first) packet, from the slower interface is received, the timer will be stopped, or else time tr1 is observed, and the relative difference (tr1−tr2) is calculated. This difference, D, is then communicated back to the sending side. This communication may either happen via a custom feedback message of some type, or be incorporated into a modified receiver report in a message which largely complies with receiver reports (such as an RTCP receiver report).
Upon reception of such a message, the sending side will modify the way in which it sends data from the stream to be sent. Instead of sending the next available packet over all of the plurality of physical interfaces, the sending side will send the next available packet only over the fastest physical interface (in this case, the wired interface used for the 2nd packet, above). The next packet to be sent over the remaining of the plurality of interfaces used will be drawn from farther back in the stream to be sent (thus, ‘future’ data). It is noted that the sending side is not limited to the scheduling of data packets from the fastest interface to the slowest interface, and always drawing data from farther back in the data stream; rather, other scheduling of data packets may be implemented by the sending side. For example, the sending side may send more data over some of the physical interfaces more often than other physical interfaces. In another example, the order of physical interfaces used to send the data packets may be a different (but noted) order than fastest to slowest physical interface.
The sending side will identify a packet which represents a point of time approximately equal to ‘D’ units of time in the future. Such a future packet may be identified either from any existing protocol header timestamps (such as RTP or SCTP timestamps), or else may be identified using the known average bit rate of the media being sent (in the case of a multimedia datastream). In the case of a non-media stream, the future packet may be estimated using the known aggregate available bandwidth or data capacity of the interfaces being used for simultaneous streaming. Regardless of how it is identified, this ‘future’ packet will be extracted from the datastream (whether it is stored as a linked list of packets or some form of 10 stream which must be continuously read into a temporary holding buffer on the sending side), and sent. It will not be sent again when that point of time reaches the ‘head’ of the sending stream.
Having sent the packet ‘early’ by D units of time, it is expected that the packet will arrive at about the expected time at the receiving side, allowing the reconstruction of the original stream to happen with minimal delays. If the packet is delayed, further, the receiving side can communicate additional delay D2 to the sending side at the next opportunity for feedback. If the packet arrives early, the receiving side, having identified this medium as one which is delayed with respect to others, can simply communicate a reduction in delay (D2) to the sending side, rather than adding delay to the faster channel. By maintaining a history of observed delays, the receiving side can track which mediums require additional delay to continuously minimize variation in expected delivery of packets, essentially in order, at the receiving side. At the receiving side, simple statistics can be used to provide a dampening in communicated observed delays and to avoid oscillating between communicating a delay, and communicating a reduction in delay at the next opportunity, followed by a similar delay, and so on.
This disclosure has provided a detailed description with respect to particular illustrative embodiments. It is understood that the scope of the appended claims is not limited to the above-described embodiments and that various changes and modifications may be made by those skilled in the relevant art without departing from the scope of the claims.