1. Field of the Invention
The present invention relates to a system and a generation method of remote objects with network streaming ability, and more particularly, the present invention relates to a system and a generation method of remote objects with network streaming ability, which integrates a pushing mechanism, a forwarding mechanism, and an aggregation mechanism.
2. Description of the Related Art
In recent years, networking has developed rapidly and various network technologies are put forward accordingly. Among these novel technologies, peer-to-peer (P2P) data transfer is one of the most well-known technologies. Due to multicast transfer and query, the time for uploading/downloading and searching files over networks can be significantly reduced. The idea of a distributed object-oriented architecture has also become a hot research topic attracting much attention. For example, currently, Java RMI, COBRA, and .NET Remoting are the technologies widely used for building distributed component operation and a remote procedure call.
Although the P2P data transfer and the remote procedure call technologies have become quite mature, they still have some defects in performance. As for the P2P data transfer technology, despite reductions in downloading time, it cannot achieve the function of “manipulate-while-downloading,” but only the object of manipulate-after-downloading can be achieved, which thus cannot ensure the correctness of the files. As for the remote procedure call, Java RMI, COBRA, and .NET Remoting all employ the call-and-wait mechanism, and every call must resort to the transfer over network, thereby naturally causing the performance to be deteriorated and the wait time to be prolonged.
Network streaming technology is one of the hot areas of research in recent years, and can be used to overcome the aforementioned defects. In the network streaming transfer, streaming data is obtained from the network by means of, for example, client-server transfer or peer-to-peer (P2P) transfer. Upon obtaining a specific amount of data, a demand side processes the data. Due to the network streaming technology, the performance for processing multimedia over network is enhanced, the data processing begins before the whole file is downloaded, that is to say, manipulate-while-downloading is achieved, which thus enhancing the flexibility in the application of the real-time multimedia.
Currently, in the distributed object-oriented system, the widely-used web service of “remote object procedure call,” such as Java RMI and .NET Remoting, is established by a service provider, who also executes an object to implement the web service. With the “remote object procedure call” technology, the operating procedure (called a method or member function) of the object may achieve the object of providing services for a remote user through a remote call. However, the “remote object procedure call” technology cannot provide the remote objects with network streaming ability. Therefore, in order to enhance the application ability of the “remote object procedure call” technology in multi-media data transfer, it is necessary to develop a method for providing the remote objects with network streaming ability.
One aspect of the present invention relates to a system of remote objects with network streaming ability. A pushing mechanism, a forwarding mechanism, and an aggregation mechanism are used together and a middleware is inserted in the remote objects, such that the remote objects have network streaming ability. The middleware includes a streaming controller, a streaming buffer area, and a plurality of first and second continuous buffer areas.
Another aspect of the present invention relates to a generation method of remote objects with network streaming ability. A middleware is inserted into the remote objects, and a pushing mechanism, a forwarding mechanism, and an aggregation mechanism are used together, such that during a remote object procedure call, the establishment of a network connection and data transfer are both realized through this middleware. In this manner, the middleware may automatically intercept messages about the network streaming, and automatically convert the transfer of relevant data into a network stream, so as to enhance the performance.
The present invention provides a system of remote objects with network streaming ability, which includes a streaming client, a plurality of streaming servers, a streaming buffer area, a plurality of first continuous buffer areas, a streaming controller, a plurality of first network connections, and a plurality of second network connections. The plurality of streaming servers is used to respond to a remote procedure call from the streaming client. The streaming buffer area stores a complete data unit for the streaming client to access. The plurality of first continuous buffer areas receives a plurality of data units with a streaming object data type from the plurality of streaming servers, in which the complete data unit is associated with the plurality of data units with the streaming object data type. The streaming controller determines a plurality of available streaming servers among the plurality of streaming servers. The plurality of first network connections is established between the streaming client and the plurality of available streaming servers, and is used to transfer the plurality of data units with the streaming object data type only. The plurality of second network connections is established between the streaming client and the plurality of available streaming servers, and used to transfer control messages only.
The present invention further provides a generation method of remote objects with network streaming ability, which includes executing a link procedure, executing a streaming preparation, executing a streaming transfer procedure, and closing the link procedure. The step of executing the link procedure includes establishing a plurality of corresponding first network connections between the streaming client and the plurality of streaming servers according to a remote procedure call from a streaming client; and establishing a streaming controller by using the streaming client, in which the streaming controller controls the transfer of a plurality of data units with streaming object data type. The step of executing the streaming preparation includes collecting streaming source information from the plurality of streaming servers; and establishing a streaming schedule according to the streaming source information, in which the streaming schedule is associated with the plurality of available streaming servers. The step of executing the streaming transfer procedure is to provide a complete data unit for the streaming client to access, in which the complete data unit is associated with the plurality of data units with the streaming object data type. In another embodiment, the step of executing the link procedure further includes obtaining a plurality of corresponding addresses of the plurality of streaming servers and that of the streaming client, providing a plurality of data units with the streaming object data type among the plurality of streaming servers, registering each of the data units with the streaming object data type, treating each of the data units as a remote component, and waiting for the remote procedure call.
The invention will be described according to the appended drawings in which:
In order to explain the generation method of remote objects with network streaming ability provided by the present invention more clearly and fluently, a system of remote objects with network streaming ability provided by the present invention is first described below.
The system of remote objects with network streaming ability provided by the present invention may be applied in Java RMI or .NET Remoting. Referring to
The step S2 of executing the streaming preparation includes setting the preparation of the network streaming. The streaming controller 17 determines the streaming servers with which the remote procedure call is established according to the user's streaming requirements for the streaming client 12, so as to realize the network streaming transfer. The detailed steps are described as follows. The streaming controller 17 retrieves the remote procedure call from the streaming client 12, analyzes the remote procedure call first, and then determines whether it is a remote procedure call for calling a remote streaming object. If the remote procedure call is a call for calling a remote streaming object, the streaming controller 17 establishes a streaming schedule according to the requirements of the streaming client 12 and the amount of available resources on the network. In other words, the step S2 of executing the streaming preparation includes: collecting streaming source information from the plurality of streaming servers 11, analyzing the remote procedure call by using the streaming controller 17 (Step S21 in
The aggregation sort includes calculating a weight for each of the plurality of streaming servers 11. The weight is associated with a bandwidth, streaming data integrity, and an overhead of the corresponding streaming servers 11, and the priority of the plurality of available streaming servers is determined according to the weight. The greater the weight, the more preferred the selection is. When the generation method of remote objects with network streaming ability provided by the present invention is applied in Java RMI, the weight (weight(si)) of each of the streaming servers can be defined through the following equation (1),
in which Completeness(si) represents the data integrity in the streaming server si, and Completeness(si) may be defined through the following equation (2),
Furthermore, S={si|i=1,2, . . . ,n} represents a collection of the streaming servers, D={dj|j=1,2, . . . ,m} represents a collection of data blocks, Blocks(si) represents data blocks in the server si, ki represents the amount of the existing streaming data, ri represents the bandwidth provided by the server si, Req(dj) represents a bandwidth required by the streaming transfer, and the coefficients α, β, and γ may cause different priority sequences of the streaming servers according to different network environments. α represents the proportion of the bandwidth provided for the streaming server, β represents the proportion of the data integrity for the data existing in the streaming server, and γ is inversely proportional to the amount of the streaming media on the streaming servers. The aggregation sort firstly calculates the weights of each of the streaming servers, and then sorts the plurality of streaming servers according to their weights. During the streaming data transfer, the streaming servers are used in sequence of weights, until a bandwidth sufficient for transferring the streaming data is provided. It should be noted that the weight represented by Equation (2) is formed by three items, namely, the bandwidth, the streaming data integrity, and the overhead relevant to the streaming server.
Referring to
The above-described embodiments of the present invention are intended to be illustrative only. Numerous alternative embodiments may be devised by persons skilled in the art without departing from the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
96106619 A | Feb 2007 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
6078960 | Ballard | Jun 2000 | A |
6125400 | Cohen et al. | Sep 2000 | A |
6356946 | Clegg et al. | Mar 2002 | B1 |
6434622 | Monteiro et al. | Aug 2002 | B1 |
6477580 | Bowman-Amuah | Nov 2002 | B1 |
6748508 | Khandelwal et al. | Jun 2004 | B1 |
6795858 | Jain et al. | Sep 2004 | B1 |
6850484 | Greenspan et al. | Feb 2005 | B1 |
7062567 | Benitez et al. | Jun 2006 | B2 |
7197570 | Eylon et al. | Mar 2007 | B2 |
7240162 | de Vries | Jul 2007 | B2 |
7318107 | Menon | Jan 2008 | B1 |
7606924 | Raz et al. | Oct 2009 | B2 |
7735057 | Rachman et al. | Jun 2010 | B2 |
8095679 | Satish et al. | Jan 2012 | B1 |
20010037399 | Eylon et al. | Nov 2001 | A1 |
20020078218 | Feig | Jun 2002 | A1 |
20020133611 | Gorsuch et al. | Sep 2002 | A1 |
20030061305 | Copley et al. | Mar 2003 | A1 |
20030182437 | Kobayashi et al. | Sep 2003 | A1 |
20050076099 | Wang et al. | Apr 2005 | A1 |
20050195836 | Greenspan et al. | Sep 2005 | A1 |
20050228897 | Yamamoto et al. | Oct 2005 | A1 |
20060129665 | Toebes et al. | Jun 2006 | A1 |
20060168156 | Bae et al. | Jul 2006 | A1 |
20060184688 | Ganguly et al. | Aug 2006 | A1 |
20070214279 | Choi et al. | Sep 2007 | A1 |
20080086570 | Dey et al. | Apr 2008 | A1 |
Number | Date | Country | |
---|---|---|---|
20080209063 A1 | Aug 2008 | US |