06778twfl doc/006 修正日期92 l〇 π 玖、發明說明: 本發明是有關於一種將接收到之資訊源,利用網際網 路傳遞資訊至用戶端之系統及方法,且特別是有關於一種 可即時(In-Time)傳送資訊至用戶端之系統及方法。 在倚天資訊所提出的「一種網際網路即時廣播系統」 (專利證號:089607)中,如附圖1所示之結構圖。可知 習知中的資料收集處理裝置100,是用於收集資訊源 W103、資訊源X104、資訊源Y105及資訊源Zl〇6所傳送 之資料,並將所收到之資訊,依據到達資料收集處理裝置 1〇〇的時間編列序號,儲存於記憶體中。然後以使用者認 證裝置130,確認使用者身分,並接受使用者要求之資訊 種類。而用戶端資訊接收裝置12〇,係使用於接收使用者 所欲接收之資訊種類,並可以檢查未接收到的資訊。多點 傳送裝置110,係使用於獲得所有連線得資訊源所傳送之 資訊,並得知用戶端資訊接收裝置120的網路位址,和所 欲接收的資訊種類以及所漏掉的資訊並重送之。 在此習知系統中,雖然可以達到將資訊送達到用戶端 的目的,但卻有幾項缺點揭露如下: I用戶端資訊接收裝置與多點傳送裝置之間,在資訊 傳送期間只能單向傳送資料,也就是無法讓用戶端在線上 可即時更改其所欲接收的資訊種類。 2.其多點傳送裝置不僅對用戶端傳送即時資訊’亦同 時重新傳輸漏失的資料,容易造成即時資訊延遲送達其他 用戶端的現象。 06778twfl doc/006 修正日期92 10 17 3. 其多點傳送裝置收到即時資訊後,不但對用戶端發 送,同時還需儲存一份資料在目錄中,造成系統負擔增加’ 而且速度受到電腦系統週邊硬體輸出入裝置速度的影響’ 無法在最短時間內將資訊即時送出。 4. 其多點傳送裝置,在傳送資訊時無法確認在一定時 間內必能將資訊送出,容易因複雜的網際網路環境或單一 用戶端連線的惡劣品質,而牽連其他的用戶端,造成即時 資訊傳送不再即時。因爲習知的資料傳送方式是採用UDP 方式,僅在重送遺漏資訊時,才使用TCP方式,然而UDP 方式的通訊協定不能保證資訊一定能送達。因此容易發生 資訊遺漏的現象,當使用TCP方式補送資料時,此資料已 經延遲,不是即時送達。 5. 習知說明其資訊是每隔固定時間(t)才傳送資訊, 透過此種方法能夠把四個分別的封包,在固定的時間點合 倂傳送,如此能提高頻寬使用率。但其實,四個封包內容 是一定要傳送的,延遲的結果,造成總資料量並沒有減少, 減少的只是封包的數量。對於頻寬使用也並沒有幫助,反 而延誤資訊送出的時間,也就是不是真的即時資訊。此外, 因爲都在固定的時間傳送在該段時間累積的資訊,反而容 易造成網路上的瞬間壅塞,因爲原來分散在時間t的資訊, 都被集中起來在同一時間點傳送了。 有鑒於此,本發明提出一種資訊前處理器及應用其之 資訊即時播放系統與方法,與習知不同之處,在於本發明 在傳送資料是以In-Time方式傳送資料,而不是Real- 56460# ,v 修正曰期92 10 17 06778twfl doc/00606778twfl doc / 006 Revised Date 92 l〇π 发明, Description of the Invention: The present invention relates to a system and method for transmitting received information to the client using the Internet, and in particular, to a system and method for real-time (In-Time) System and method for transmitting information to client. In "a real-time Internet broadcasting system" (patent certificate number: 089607) proposed by E-info, the structure diagram is shown in FIG. It is known that the conventional data collection and processing device 100 is used to collect data transmitted by the information source W103, information source X104, information source Y105, and information source Z106, and collect and process the received information according to the arrival data The time of the device 100 is serialized and stored in the memory. The user authentication device 130 is then used to confirm the identity of the user and accept the type of information requested by the user. The client-side information receiving device 12 is used to receive the type of information that the user wants to receive, and can check the unreceived information. The multicast device 110 is used to obtain information transmitted by all connected information sources, and to know the network address of the client-side information receiving device 120, which is equal to the type of information to be received and the information that is missed. Give it away. In this conventional system, although the purpose of sending information to the client can be achieved, several shortcomings are revealed as follows: I. Between the client information receiving device and the multicast device, only one-way transmission can be performed during the information transmission Data, which means that clients cannot change the type of information they want to receive online in real time. 2. Its multicast device not only transmits real-time information to the client, but also retransmits the missing data, which easily causes the delay of real-time information to reach other clients. 06778twfl doc / 006 Date of revision 92 10 17 3. After receiving the real-time information, the multicast device not only sends it to the client, but also needs to store a copy of the data in the directory, which causes an increase in system load. The effect of hardware input / output device speed 'cannot send information in real time in the shortest time. 4. Its multi-point transmission device, when transmitting information, cannot confirm that it will be able to send out information within a certain period of time, which is likely to involve other clients due to the complex Internet environment or the poor quality of a single client connection, resulting in Instant messaging is no longer instant. Because the conventional data transmission method is UDP, the TCP method is used only when resending missing information. However, the UDP protocol cannot guarantee that the information can be delivered. Therefore, the phenomenon of missing information is prone to occur. When using TCP to supplement the data, this data has been delayed and is not delivered immediately. 5. It is explained that the information is transmitted at a fixed time (t). Through this method, four separate packets can be transmitted at a fixed point in time, which can improve the bandwidth usage. But in fact, the contents of the four packets must be transmitted. As a result of the delay, the total amount of data has not decreased, only the number of packets has been reduced. It does not help with the use of bandwidth, but it delays the delivery of information, that is, it is not really real-time information. In addition, because the information accumulated during that time is transmitted at a fixed time, it is easy to cause instant congestion on the network, because the information scattered at time t is collected and transmitted at the same time. In view of this, the present invention proposes an information pre-processor and an information real-time playing system and method using the same. The difference from the conventional one lies in that the present invention transmits data in In-Time mode instead of Real-56460. #, v Revise date 92 10 17 06778twfl doc / 006
Time。未免其他用戶端因一個用戶端延遲而造就其他用戶 端亦延遲接收資料,本發明提供一個一定會在一定時間內 送達資料的系統與方法,即使用戶端本身的連線品質不 良,也會將資料儲存在用戶端的緩衝區中,而不會延誤下 一個用戶端的傳送。 此資訊即時播放系統包括:資訊前處理器、階層式即 時播放系統、資訊播放主機、資訊接收端。 其中,資訊前處理器,其用以包括收集多個資訊源、 對資訊源所傳送之資訊封包執行編碼動作、對每一個不同 之資訊封包加上階層式的頻道識別碼(Channel ID)。 階層式即時播放系統,係與資訊前處理器連接。而在 此階層式即時播放系統中,包含有多個資訊播放主機。而 這些資訊播放主機係以一種階層式架構存在於階層式即日寺 播放系統中,作爲接收由資訊前處理器所傳送之資訊封 包,以及在一定時間內(In-Time),將這些資訊封包送往 具有權限之用戶端接收。其中,在階層式即時播放系統中, 更可以藉由複製資訊播放主機’來新增另外的資訊播放主 機。 此所指的在一定時間內所傳遞的資訊,係指作業系統 中的In-Time Message,也就是在一定時間內,一定會完成 資訊傳遞的方式。 資訊接收端,與階層式即時播放系統連接,係用以接 收由資訊播放主機所傳送之資訊封包,及讓用戶端隨時可 更改所欲接收之資訊源種類。而資訊播放主機與資訊接收 6 564609^1 補 -—-1 doc/006 修正日期 92 10 17 端之間,係以一種傳輸控制協定之連線方式傳送資訊封 包。而此傳輸控制協定即是(Transmission ControlTime. It is inevitable that other clients will delay receiving data due to the delay of one client. The present invention provides a system and method that will definitely deliver data within a certain period of time. Even if the connection quality of the client itself is poor, the data will be transmitted. Stored in the client's buffer without delaying the delivery of the next client. This information real-time playback system includes: information preprocessor, hierarchical instant playback system, information playback host, and information receiver. The information pre-processor is used to include collecting multiple information sources, performing encoding operations on the information packets transmitted by the information sources, and adding a hierarchical channel ID to each different information packet. Hierarchical real-time playback system, connected to the information pre-processor. In this hierarchical real-time playback system, there are multiple information playback hosts. And these information playback hosts exist in a hierarchical instant-day temple playback system with a hierarchical structure, as receiving information packets sent by the information pre-processor, and sending these information packets within a certain time (In-Time) Receive to a client with permission. Among them, in the hierarchical real-time playback system, another information playback host can be added by duplicating the information playback host. This refers to the information transmitted within a certain period of time, which refers to the In-Time Message in the operating system, that is, the manner in which the information is transmitted within a certain period of time. The information receiving end is connected with the hierarchical real-time playback system. It is used to receive information packets sent by the information playback host, and allows the client to change the type of information source it wants to receive at any time. The information broadcast host and the information receiver 6 564609 ^ 1 supplement--1 doc / 006 amendment date 92 10 17 terminal, the information packet is transmitted in a transmission control protocol connection mode. The transmission control protocol is (Transmission Control
Protocol ;簡稱TCP),此種傳輸方式可以保證系統所傳送 的資料不會遺漏。 本發明除了上述之必要元件外,更包括:緩衝區、即 時監視系統及負載平衡系統。 而其中,緩衝區,係存在於階層式即時播放系統中, 且分別與資訊播放主機一一對應連接,當資訊播放主機有 暫時無法傳送之資訊封包時,就會將資訊封包先行暫時儲 存於緩衝區,再緊接著處理下一個用戶端,不使資訊封包 延遲傳送。即時監視系統,係用以監視緩衝區,是否具有 足夠空間可以儲存資訊封包。負載平衡系統,係耦接於資 訊播放主機與資訊接收端之間,係用以判斷每一個資訊接 收端是否都能連接到負載較低之資訊播放主機。 在這階層式即時播放系統中,我們可以將資訊播放主 機分成第一層資訊播放主機及第二層資訊播放主機。在此 的第一層資訊播放主機,係用以接收及混合已編碼及識別 過的資訊封包,也就是會接收及混合從資訊前處理器傳送 來的資訊封包。而第二層資訊播放主機,係將第一層資訊 播放主機傳送來的資訊封包,傳送至資訊接收端,以及將 暫時無法傳送之資訊封包,儲存對應於資訊接收端的緩衝 區中。 本發明又提出一種資訊前處理器,係作爲接收及處理 資訊源之用。此資訊前處理器包括:資訊編碼程式,係對 7 doc/006 修IE日期92.10 Π 資訊源所傳送之資訊封包,執行編碼動作。其中所謂的編 碼動作,係將收到具有任何一種資料型態的資訊封包,統 一編成新的資料型態。而頻道識別處理程式,係耦接於資 訊編碼程式,對不同的每一個資訊封包加上一個階層式頻 道識別碼。其中,階層式頻道識別碼,係對資料封包作大 分類和次分類。 本發明又提出一種訂閱即時資訊方法,係有關用戶端 向預設資訊播放主機訂閱即時資訊之方法。 此訂閱即時資訊方法之步驟包括:有一個負載平衡系 統會先判斷此預設資訊播放主機是否可負載此用戶端的工 作量。若此預設資訊播放主機尙可負載此用戶端,則接受 此用戶端訂閱即時資訊;但若此預設資訊播放主機無法負 載此用戶端,則分配另一個具有低負載的資訊播放主機給 此用戶端連接。 其中,此訂閱即時資訊方法之步驟更包括:用戶端會 先連往此預設資訊播放主機,接著若此資訊播放主機可負 載此用戶端,則資訊播放主機會判斷此用戶端是否具有權 限訂閱即時資訊。若此用戶端不具權限’則判定此用戶端 連線失敗,若此用戶端具有權限,則判定此用戶端連線成 功。 本發明又再提出一種資訊即時播放方法,係有關於一 個資訊即時播放系統將接收到的即時資訊’傳遞至多個用 戶端。 此資訊即時播放方法步驟包括··對接收到之即時資 06778twfl.doc/006 修正日期92 10 17 訊,執行編碼動作。接著,對編碼過的即時資訊加上頻道 識別碼。然後,混合已編碼及識別過的即時資訊,再將混 合過的即時資訊傳遞至用戶端,若有用戶端無法立即接收 即時資訊時,則將這些即時資訊存入用戶端所屬的緩衝區 中。 其中,此資訊即時播放方法之步驟更包括:先判斷是 否有用戶端訂閱資訊頻道,若沒有用戶端訂閱此資訊頻 道,則結束傳送即時資訊,否則繼續判斷是否有尙未處理 之用戶端。若有尙未處理之用戶端,則選取任一個尙未接 收此即時資訊之用戶端’若沒有需處理之用戶端,則結束 傳送即時資訊。當此用戶端可以立即接收這些即時資訊, 則將這些即時資訊傳送至用戶端中。 本發明又另外提出一種前處理資訊方法,係有關於資 訊即時播放系統在處理接收到的即時資訊方法。 此前處理資訊方法之步驟包括:對接收到之即時資 訊,執行編碼動作,接著,對此即時資訊加上頻道識別碼。 本發明又另提出一種資訊即時播放方法,係有關於資 訊即時播放系統將接收到之即時資訊,傳遞至多個用戶端 之方法。 此資訊即時播放方法之步驟包括:先混合已編碼及識 別之即時資訊,接著,傳遞此即時資訊至用戶端。若有用 戶端無法立即接收即時資訊時,則將這些即時資訊存入用 戶端所屬的緩衝區中。 爲讓本發明之上述和其他目的、特徵、和優點能更明 06778twfl doc/006 修正日期92.10.17 顯易懂,下文特舉較佳實施例,並配合所附圖式,作詳細 說明如下: 圖式之簡單說明: 第1圖繪示的是習知之一結構圖; 第2圖繪示的是本發明之一方塊圖; 第3圖繪示的是本發明之一方塊圖; 第4圖繪示的是本發明之一流程圖; 第5圖繪示的是本發明之一流程圖; 第6圖繪示的是本發明之一示意圖;以及 第7圖繪示的是本發明之一示意圖;。 標號說明 103,104,105,106,200,202,204 :資訊源 1〇〇 :資訊收集處理器 110 :多點傳送裝置 120 :用戶端資訊接收裝置 130 :使用者認證裝置 206,208,210 :資訊前處理器 212 :階層式即時資訊播放系統 214,216,218,220 :資訊播放主機 600,602,604,606 :資訊播放主機 700,702,704,706,708,710 :資訊播放主機 222,224,226 :緩衝區 228 :網際網路 230,232,234 :資訊接收端 564609^ 修正日期92.10 17 06778twfl doc/006 236 :即時監視系統 3 0 0 ·資日}^編碼處理器 302 :頻道識別處理器Protocol (TCP for short), this transmission method can ensure that the data transmitted by the system will not be missed. In addition to the above-mentioned necessary elements, the present invention further includes: a buffer zone, an instant monitoring system, and a load balancing system. Among them, the buffer exists in the hierarchical real-time playback system, and is one-to-one corresponding to the information playback host. When the information playback host has an information packet that cannot be transmitted temporarily, the information packet is temporarily stored in the buffer first. Zone, and then process the next client without delaying the transmission of information packets. The real-time monitoring system is used to monitor the buffer, and whether there is enough space to store information packets. The load balancing system is coupled between the information playback host and the information receiving end. It is used to determine whether each information receiving end can be connected to the information playback host with a lower load. In this hierarchical real-time playback system, we can divide the information playback host into the first layer information playback host and the second layer information playback host. The first layer of information playback host here is used to receive and mix the encoded and identified information packets, that is, it will receive and mix the information packets sent from the information preprocessor. The second-level information playback host sends the information packets sent by the first-level information playback host to the information receiving end, and stores the information packets that cannot be transmitted temporarily in the buffer area corresponding to the information receiving end. The present invention also proposes an information pre-processor for receiving and processing information sources. The information preprocessor includes: an information encoding program, which performs encoding on the information packet transmitted by the information source of 7 doc / 006 IE date 92.10 Π. The so-called encoding action is to uniformly compile the received information packets with any data type into a new data type. The channel identification processing program is coupled to the information encoding program and adds a hierarchical channel identification code to each different information packet. Among them, the hierarchical channel identification code is used to classify and subclass data packets. The present invention also proposes a method for subscribing to real-time information, which is a method for a client to subscribe to real-time information to a preset information playback host. The steps of this method of subscribing to real-time information include: a load balancing system will first determine whether the default information playback host can load the workload of this client. If the default information playback host cannot load the client, the client is allowed to subscribe to real-time information; but if the default information playback host cannot load the client, then another information playback host with a low load is assigned to this Client connection. The method of subscribing to the real-time information method further includes: the client will first connect to the default information playback host, and then if the information playback host can load the client, the information playback host will determine whether the client has permission to subscribe Real-time information. If this client does not have permission ', it is determined that this client connection fails, if this client has permission, it is determined that this client connection is successful. The present invention further proposes a method for real-time information broadcast, which relates to an information real-time broadcast system that transmits the received real-time information 'to a plurality of clients. The steps of this information real-time playback method include: · Performing encoding operations on the received real-time information 06778twfl.doc / 006 correction date 92 10 17 message. Next, add the channel identifier to the encoded real-time information. Then, the coded and identified real-time information is mixed, and the mixed real-time information is passed to the client. If the client cannot immediately receive the real-time information, the real-time information is stored in the buffer to which the client belongs. Among them, the method of real-time information playback method further includes: firstly determining whether there is a client subscribing to the information channel; if there is no client subscribing to the information channel, the transmission of the real-time information is ended, otherwise it continues to determine whether there are unprocessed clients. If there is an unprocessed client, select any one of the unreceived clients. If there is no client to be processed, then the sending of the real-time information ends. When the client can receive the real-time information immediately, the real-time information is transmitted to the client. The present invention further provides a pre-processing information method, which relates to a method for processing the received real-time information by the information real-time playing system. The previous method of processing information includes performing encoding on the received real-time information, and then adding a channel identification code to the real-time information. The present invention also proposes a method for real-time information broadcast, which relates to a method for the information real-time broadcast system to transmit the received real-time information to multiple clients. The steps of this method of real-time information playback include: first mixing the coded and recognized real-time information, and then transmitting this real-time information to the client. If the useful client cannot immediately receive the real-time information, the real-time information is stored in the buffer to which the client belongs. In order to make the above and other objects, features, and advantages of the present invention clearer and easier to understand 06778twfl doc / 006 revised date 92.10.17, the following describes the preferred embodiment in detail with the accompanying drawings, as follows: Brief description of the drawings: FIG. 1 shows a structure diagram of a conventional one; FIG. 2 shows a block diagram of the present invention; FIG. 3 shows a block diagram of the present invention; FIG. 4 FIG. 5 shows a flowchart of the present invention; FIG. 5 shows a flowchart of the present invention; FIG. 6 shows a schematic diagram of the present invention; and FIG. 7 shows one of the present invention. schematic diagram;. DESCRIPTION OF SYMBOLS 103, 104, 105, 106, 200, 202, 204: information source 100: information collection processor 110: multicast device 120: client-side information receiving device 130: user authentication device 206, 208, 210 : Information pre-processor 212: Hierarchical real-time information playback system 214, 216, 218, 220: Information playback host 600, 602, 604, 606: Information playback host 700, 702, 704, 706, 708, 710: Information playback host 222, 224, 226: Buffer 228: Internet 230, 232, 234: Information receiving end 564609 ^ Correction date 92.10 17 06778twfl doc / 006 236: Real-time monitoring system 3 0 0 · date} ^ encoding processor 302: Channel identification processor
步驟s400至步驟s410係本發明之一實施步驟 步驟s500至步驟s520係本發明之另一實施步驟 較佳實ML 請參照第2圖,其繪示的是依照本發明一較佳實施例 的一種資訊即時播放系統,係有關於將接收到之資訊源, 利用網際網路傳遞資訊源所傳送之資訊封包至用戶端。 此資訊即時播放系統包括:資訊前處理器206、208及 210,階層式即時播放系統212,資訊播放主機214、216、 218及220,資訊接收端230、232及234。 其中,資訊前處理器206、208及210,係用以收集多 個資訊源’如資訊源2〇〇、202及204 ;對這些資訊源所傳 送之資訊封包執行編碼動作;對每一個不同之資訊封包加 上階層式的頻道識別碼(Channel ID)。 而所請的編碼動作,係將接收到具有任何一種資料型 態的資訊封包,統一編成一個新的資料型態。也就是說, 不管接收到之資訊源是binary data或是text data的資料型 態,都可經由編碼動作,將資訊源2〇〇、2〇2及204所傳送 之資訊封包,統一編成在本系統中才能辨識的資料型態。 而此目的即是可以使資訊提供者不必擔心他所提供之資訊 源,因爲和其他資訊源混在同一系統中,而有被其他人截 H之慮。使資訊提供者可以安心的把資訊傳入本系統中, 11 5,64609 06778twfl doc/006 修正日期 92 10 17 而資訊接收端230、232及234也只能在具有某些特定程式 時才能收取資訊封包。 其中,若有一資訊源係收集有關股市行情的資訊,則 會對應一個資訊前處理器,而若有一資訊源係收集有關影 像資訊,則也會對應一個資訊前處理器,依此類推,也就 是說不同的資訊源,會對應不同的資訊前處理器。 當將資訊源所傳送之資訊封包編碼完後,會再對這些 資訊封包加上階層式的頻道識別碼(Channel ID),此階層 式頻道識別碼(Channel ID)會對資訊封包作一個大分類 及次分類’例如,當接收到的資訊源是【音樂類型】的即 時資訊(In-Time Message)時,則會對收到的音樂資訊先 分成古典或現代音樂,若是古典音樂,則再次針對此音樂 資訊判斷是屬於古典音樂下的哪一個時代或哪一位音樂家 創作的’以歸類將此音樂資訊。 階層式即時播放系統212,係與資訊前處理器200、202 及204連接。而在此階層式即時播放系統212中,包含有多 個資訊播放主機,如資訊播放主機214、216、218及220。 訊播放主機係以一種階層式架構存在於階層式即 時播放系統212中,作爲接收由資訊前處理器206、208及210 所傳送之資訊封包,以及在一定時間內(In-Time),將這 訊封包送往具有權限之用戶端接收。就本實施例而 言’雖然看似是一個資訊播放主機對應一個資訊接收端, 但真實在運作中,卻是一個資訊播放主機對應上千個資訊 接收端。其中,在階層式即時播放系統212中,更可以藉 12 564609 06778twfl doc/006 修正日期92 10 17 由複製資訊播放主機214、216、218及220,來新增另外的 資訊播放主機。而階層式即時播放系統212複製資訊播放 主機的方式,如附圖6,係利用已存在在階層式即時播放 系統212中的資訊播放主機214、216、218及220的完整架 構,來複製整個資訊播放主機,或是如附圖7,係利用階 層式的架構來複製資訊播放主機216、218、220。 此所指的在一定時間內所傳遞的資訊,係指我們透過 能監測緩衝區的即時監視系統236,使之避免在應用TCP 協定傳輸時,會遇到連線品質不佳的資訊接收端時,而產 生的延遲問題,以達至在完全不受資訊接收端影響下,快 速地將資訊送給所有的資訊接收端,進而確保單一資訊播 放主機能夠在至多數百毫秒內將資訊傳送給上千個資訊接 收端。 資訊接收端230、232及234,與階層式即時播放系統212 連接,係用以接收由資訊播放主機216、218及220所傳送 之資訊封包,及讓用戶端隨時可更改所欲接收之資訊源種 類。而資訊播放主機216、218及220與資訊接收端230、232 及234之間,係以一種傳輸控制協定之連線方式,傳送該 些資訊封包,而此傳輸控制協定即是(Transmission Control Protocol ;簡稱TCP),此種傳輸方式可以保證系統所傳送 的資料不會遺漏。 此實施例除了上述之必要元件外,更包括:緩衝區 222、224及226,即時監視系統236及負載平衡系統(在圖 中並無繪出)。 13 $646¾ 06778twfl doc/006 修正日期92 10 17 而其中,緩衝區222、224、2%,係存在於階層式即 時播放系統212中,且分別與資訊播放主機220、218、216 --對應連接,當資訊播放主機220、218、216有暫時無 法傳送之資訊封包時,就會將資訊封包先行暫時儲存於緩 衝區222、224、226中。即時監視系統236,係用以監視緩 衝區222、224、226,是否具有足夠空間可以儲存資訊封 包,此即時監視系統236存在的目的,係就上述之TCP連線 方式的缺失加以改進,因爲若是因爲TCP本身的連線狀況 不佳而導致資訊封包必須重送,使後續資訊封包傳送延 誤,則可以藉由即時監視系統236,監視緩衝區222、224、 226的動作,來觀察用戶端的連線品質,以決定是否要把 資訊封包立即送往資訊接收端230、232及234,或是先暫 存至用戶端的緩衝區226、224、222中。如此,可以保證 資訊封包不會在傳送過程中不遺漏、不必重送,又能達到 立即傳送的目的。這樣可以使系統在處裡資訊封包的時間 可以下降至以以毫秒(mini second ;簡稱ms)爲時間傳輸 單位。負載平衡系統,係耦接於資訊播放主機220、218、 216與資訊接收端230、232、234之間,係用以判斷每一個 資訊接收端是否都有分配到資訊播放主機。 其中,資訊接收端230、232、234分配到的資訊播放 主機可以是已存在在階層式即時播放系統212中的資訊播 放主機220、218、216,或是新增加的資訊播放主機。在 這階層式即時播放系統212中,我們可以將資訊播放主機 分成第一層資訊播放主機2M及第二層資訊播放主機22〇、 14 56460^ 修正曰期92 10 17 06778twfl doc/006 218、216。在此的第一層資訊播放主機214,係用以接收 及混合已編碼及識別過的資訊封包,也就是會接收及混合 從資訊前處理器206、208、210傳送來的資訊封包。而第 二層資訊播放主機220、218、216,係將第一層資訊播放 主機214傳送來的資訊封包,傳送至資訊接收端230、232、 234中,以及將暫時無法傳送之資訊封包,儲存對應於資 訊接收端230、232、234的緩衝區226、224、222中。 請參照第3圖,其繪示的是依照本發明另一較佳實施 例的一種資訊前處理器,係作爲接收及處理資訊源之用。 此資訊前處理器包括:資訊編碼程式300,係對資訊源300 所傳送之資訊封包,執行編碼動作。其中所謂的編碼動作, 係將收到具有任何一種資料型態的資訊封包,統一編成新 的資料型態。頻道識別處理程式302,係耦接於資訊編碼 程式300,對不同的每一個資訊封包加上一個階層式頻道 識別碼。其中,階層式頻道識別碼,係對資料封包作大分 類和次分類。 請參照第4圖,其繪示的是依照本發明又另一較佳實 施例的一種訂閱即時資訊方法,係有關用戶端向預設資訊 播放主機訂閱即時資訊之方法。 此訂閱即時資訊方法之步驟包括:負載平衡系統先在 步驟s402中,判斷此預設資訊播放主機是香可負載此用戶 端的工作量。若此預設資訊播放主機尙可負載此用戶端, 則在步驟s4〇6中,接受此用戶端訂閱即時賨訊;但若此預 設資訊播放主機無法負載此用戶端,則在步驟s4〇8中,分 15Steps s400 to s410 are one implementation of the present invention. Steps s500 to s520 are another implementation of the present invention. ML Please refer to FIG. 2, which shows a method according to a preferred embodiment of the present invention. The information real-time playing system is about transmitting the information packet received by the information source to the client through the Internet. This information real-time playback system includes: information pre-processors 206, 208, and 210, hierarchical real-time playback system 212, information playback hosts 214, 216, 218, and 220, and information receiving ends 230, 232, and 234. Among them, the information pre-processors 206, 208, and 210 are used to collect multiple information sources, such as information sources 200, 202, and 204; perform encoding operations on the information packets transmitted by these information sources; for each different Information packet plus hierarchical Channel ID. The requested encoding action is to uniformly compile the received information packets with any data type into a new data type. That is to say, regardless of whether the received information source is binary data or text data, the information packets transmitted by the information sources 200, 202, and 204 can be uniformly compiled into this document through encoding operations. The type of data that can be recognized in the system. And this purpose is to make the information provider need not worry about the information source he provided, because it is mixed with other information sources in the same system, and there is a fear of being intercepted by others. Allows information providers to transfer information into this system with peace of mind, 11 5,64609 06778twfl doc / 006 revision date 92 10 17 and information receiving end 230, 232 and 234 can only receive information when there are certain specific programs Packet. Among them, if an information source collects information about the stock market, it will correspond to an information preprocessor, and if an information source collects information about the image, it will also correspond to an information preprocessor, and so on, that is, Saying that different information sources correspond to different information preprocessors. After encoding the information packets sent by the information source, a hierarchical channel ID is added to these information packets. This hierarchical channel ID will classify the information packets into a large category. "Sub-classification" For example, when the received information source is [Music Type] In-Time Message, the received music information is first classified into classical or modern music. If it is classical music, it is again targeted at This music information judges which era under classical music or which musician created it, and classifies this music information. The hierarchical real-time playback system 212 is connected to the information pre-processors 200, 202, and 204. In this hierarchical real-time playback system 212, there are multiple information playback hosts, such as information playback hosts 214, 216, 218, and 220. The message playback host exists in the hierarchical real-time playback system 212 with a hierarchical structure. It receives the information packets transmitted by the information pre-processors 206, 208, and 210, and in-time, The message packet is sent to a client with permission to receive it. As far as this embodiment is concerned, although it seems that an information playback host corresponds to one information receiver, in reality, it is one information playback host that corresponds to thousands of information receivers. Among them, in the hierarchical real-time playback system 212, 12 564609 06778twfl doc / 006 correction date 92 10 17 can be duplicated to add another information playback host 214, 216, 218, and 220. The hierarchical real-time playback system 212 replicates the information playback host. As shown in FIG. 6, the entire structure of the information playback hosts 214, 216, 218, and 220 that already exists in the hierarchical real-time playback system 212 is used to replicate the entire information. The playback host, or as shown in FIG. 7, uses a hierarchical structure to replicate the information playback hosts 216, 218, and 220. This refers to the information transmitted within a certain period of time, which means that we can use the real-time monitoring system 236 that can monitor the buffer area to avoid encountering poor information quality receiving end when transmitting using the TCP protocol. , And the delay problem is achieved, so that the information can be quickly sent to all the information receivers without being affected by the information receivers, thereby ensuring that a single information playback host can send information to up to hundreds of milliseconds. Thousands of information receivers. The information receiving terminals 230, 232, and 234 are connected to the hierarchical real-time playback system 212, and are used to receive information packets transmitted by the information playback hosts 216, 218, and 220, and allow the client to change the information source it wants to receive at any time. kind. The information playback hosts 216, 218, and 220 and the information receivers 230, 232, and 234 use a connection control protocol to transmit the information packets, and the transmission control protocol is (Transmission Control Protocol; TCP for short), this transmission method can ensure that the data transmitted by the system will not be missed. In addition to the necessary components described above, this embodiment further includes: buffers 222, 224, and 226, an instant monitoring system 236, and a load balancing system (not shown in the figure). 13 $ 646¾ 06778twfl doc / 006 Date of revision 92 10 17 Among them, the buffer areas 222, 224, and 2% exist in the hierarchical real-time playback system 212, and are connected to the information playback hosts 220, 218, and 216, respectively-corresponding connections When the information playback hosts 220, 218, and 216 have information packets that cannot be transmitted temporarily, the information packets will be temporarily stored in the buffers 222, 224, and 226 first. The real-time monitoring system 236 is used to monitor the buffers 222, 224, 226, and whether there is sufficient space to store information packets. The purpose of this real-time monitoring system 236 is to improve the lack of the above TCP connection method, because if it is Due to the poor connection status of TCP itself, information packets must be resent, and subsequent information packet transmission is delayed. You can observe the connection of the client by monitoring the system 236 in real time and monitoring the actions of the buffers 222, 224, and 226. Quality to determine whether to send the information packet to the information receiving end 230, 232, and 234 immediately, or to temporarily store it in the buffers 226, 224, and 222 of the client. In this way, it can be ensured that the information packet will not be missed in the transmission process, no retransmission is necessary, and the purpose of immediate transmission can be achieved. In this way, the time of the system's information packet can be reduced to the unit of time transmission in milliseconds (mini second). The load balancing system is coupled between the information playback hosts 220, 218, and 216 and the information receiving ends 230, 232, and 234. It is used to determine whether each information receiving end is assigned to the information playback host. Among them, the information playback host allocated to the information receiving end 230, 232, 234 may be the information playback host 220, 218, 216 already existing in the hierarchical real-time playback system 212, or a newly added information playback host. In this hierarchical real-time playback system 212, we can divide the information playback host into the first layer information playback host 2M and the second layer information playback host 22〇, 14 56460 ^ Revised date 92 10 17 06778twfl doc / 006 218, 216 . The first-level information playback host 214 is used to receive and mix the encoded and identified information packets, that is, it will receive and mix the information packets transmitted from the information pre-processors 206, 208, and 210. The second-level information playback host 220, 218, and 216 sends the information packets sent by the first-level information playback host 214 to the information receivers 230, 232, and 234, and stores the information packets that cannot be sent temporarily. The buffers 226, 224, and 222 corresponding to the information receiving ends 230, 232, and 234. Please refer to FIG. 3, which shows an information preprocessor according to another preferred embodiment of the present invention, which is used for receiving and processing information sources. The information pre-processor includes: an information encoding program 300, which performs an encoding operation on an information packet transmitted by the information source 300. The so-called coding action is to uniformly compile the received information packets with any data type into a new data type. The channel identification processing program 302 is coupled to the information coding program 300, and adds a hierarchical channel identification code to each different information packet. Among them, the hierarchical channel identifier is used to classify and subclass data packets. Please refer to FIG. 4, which illustrates a method for subscribing to real-time information according to yet another preferred embodiment of the present invention, which is a method for a client to subscribe to real-time information to a preset information playback host. The steps of this method for subscribing to real-time information include: the load balancing system first determines in step s402 that the preset information playback host is the load of the client of Xiang Ke. If the default information playback host cannot load the client, then in step s406, the client is accepted to subscribe to the instant message; but if the default information playback host cannot load the client, then step s4. 8 out of 15
端 ^fl doc/006 修正日期92 10 17 配另一個具有低負載的資訊播放主機給此用戶端連接。 其中,此訂閱即時資訊方法之步驟更包括:用戶端會 先在步驟S400中,連往此預設資訊播放主機。若此資訊播 放主機可負載此用戶端,則在步驟S404中,判斷此用戶端 是否具有權限訂閱即時資訊。若在步驟S404中,此用戶端 不具權限,則在步驟S410中,判定此用戶端連線失敗,若 此用戶端具有權限,則判定此用戶端連線成功。 請參照第5圖,其繪示的是依照本發明又另一較佳實 施例的一種資訊即時播放方法,係有關於一個資訊即時播 放系統將接收到的即時資訊,傳遞至多個用戶端。 此資訊即時播放方法步驟包括:步驟s500 ’對接收到 之即時資訊,執行編碼動作。接著,在步驟s502中’對編 碼過的即時資訊加上頻道識別碼。然後,在步驟s5〇4中’ 混合已編碼及識別過的即時資訊,在步驟s506中’傳遞混 合過的即時資訊至用戶端,在傳遞即時資訊至用戶端時’ 若在步驟s516中,有用戶端無法立即接收即時資訊時,則 在步驟S520中,將這些即時資訊存入用戶端所屬的緩衝區 中。 其中,此資訊即時播放方法之步驟更包括:先判斷在 步驟S508中,是否有用戶端訂閱資訊頻道,若在步驟S508 中,沒有用戶端訂閱此資訊頻道,則進入步驟S512,結束 傳送即時資訊,否則繼續在步驟S510中,判斷是否有尙未 處理之用戶端。若在步驟s510中,有尙未處理之用戶端’ 則在步驟S514中,選取任一個尙未接收此即時資訊之用戶 16 doc/006 修正日期92 10 17 端,否則進入步驟S5〗2中,結束傳送即時資訊。當在步驟 s5l4中,此用戶端可以立即接收這些即時資訊,則在步驟 s518中,將這些即時資訊傳送至用戶端中。然後回到步驟 s5l〇中,重複上述步驟,直至無用戶端需接收此即時資訊 爲止。 請再次參照第5圖,其繪示的是依照本發明又再另一 較佳實施例的一種前處理資訊方法,係有關於資訊即時播 放系統在處理接收到的即時資訊方丨去。 此即處理資訊方法之步驟包括:步驟s5〇〇,對接收到 之即時資訊’執行編碼動作,其中所謂的編碼動作,係將 收到具有任何一種資料型態的資訊封包,統一編成只有資 曰只即時播放系統才成辨識的新資料型態,接著,在步驟sS〇2 中,對此即時資訊加上頻道識別碼,其中,階層式頻道識 別碼,係對鋪封包作大分__分類,使_即時播放 系統便於管理接收到的即時資訊。 請再次參照第5圖,其繪示的是依照本發明又另一較 佳貫臓的-___放妓,髓關於資訊即時播 放系統將接收到之縣個用戶端之方法。 此資訊即時播放方法之步驟包括:先在步驟_中, 混合已編碼及識別之即時_,_驟_4中,傳遞 此即時資訊戶端。若在步知16中,額戶端無法立 即接收即時_時,職步驟切叫,_觸時資訊存 入用戶端所屬的緩衝區中。 綜上所述,本發明的優點包括: 564609 06778twfl doc/006 修正日期92.10.17 1·傳遞的即時資訊係爲In-Time Message,與習知的 Real- Time Message不同:可以確認在一定時間內將資訊 送往用戶端,對於連線品質不佳的用戶端連線,資訊播放 主機在確認資訊封包無法在一定時間內送達的情況下,會 放棄此用戶端連線,以確保其他用戶端可以享有一定的即 時資訊傳遞品質。 2. 編碼動作:使得資訊播放主機可以處理各種不同資 料型態的資訊,同時也保護資訊提供者所提供的資訊內 容,不會被不當取得。 3. 資訊接收端和資訊播放主機是採雙向溝通介面:用 戶端可以在系統傳遞即時資訊同時,更改訂閱的資訊頻道 種類。 4. 資訊播放主機對於從資訊源接收到的資訊封包, 不作儲存動作:是將接收到的資訊封包,立即送往訂閱此 頻道資訊的用戶端,以確保在最短時間內,將資訊立即送 往用戶端。 雖然本發明已以較佳實施例揭露如上,然其並非用以 限定本發明,任何熟習此技藝者,在不脫離本發明之精神 和範圍內’當可作各種之更動與潤飾,因此本發明之保護 範圍當視後附之申請專利範圍所界定者爲準。 18Terminal ^ fl doc / 006 Revision date 92 10 17 Connect another client with low load to the client. The steps of the method for subscribing to the real-time information further include: the client will first connect to the default information playback host in step S400. If the information broadcasting host can load the client, then in step S404, it is determined whether the client has permission to subscribe to the real-time information. If in step S404, the client does not have permission, then in step S410, it is determined that the connection of the client has failed. If the client has permission, it is determined that the connection of the client is successful. Please refer to FIG. 5, which illustrates a method for real-time information playback according to yet another preferred embodiment of the present invention, which is related to an information real-time playback system transmitting real-time information received to multiple clients. The steps of this method for real-time information playback include: Step s500 ′, perform coding on the received real-time information. Next, in step s502, a channel identification code is added to the encoded real-time information. Then, in step s504, the coded and identified real-time information is mixed, and in step s506, the mixed real-time information is transmitted to the client. When the real-time information is transmitted to the client, if in step s516, there is When the client cannot receive real-time information immediately, in step S520, the real-time information is stored in a buffer to which the client belongs. Among them, the method of real-time information playing method further includes: first determining whether a client subscribes to the information channel in step S508, and if no client subscribes to the information channel in step S508, proceed to step S512 to end the transmission of real-time information Otherwise, continue to step S510 to determine whether there is an unprocessed client. If in step s510, there are “unprocessed clients”, then in step S514, select any user that has not received this instant information 16 doc / 006 correction date 92 10 17 terminal, otherwise proceed to step S5 〖2, End sending instant messages. When the client can immediately receive the real-time information in step s5l4, the real-time information is transmitted to the client in step s518. Then return to step s510 and repeat the above steps until no client needs to receive this real-time information. Please refer to FIG. 5 again, which illustrates a pre-processing information method according to yet another preferred embodiment of the present invention, which is related to the information real-time playback system processing the received real-time information. This method of processing information includes: Step s500, performing a coding operation on the received real-time information. The so-called coding operation is to receive an information packet of any type of data, and compose it into a data packet. Only the real-time playback system becomes a new type of data that is recognized. Then, in step s02, a channel identification code is added to this real-time information. Among them, the hierarchical channel identification code is used to classify the packet. Makes the _ instant playback system easy to manage the received instant information. Please refer to FIG. 5 again, which shows another method of -___ prostitutes according to the present invention, which is a method for real-time information broadcasting system to receive the user terminals in the county. The steps of this method of real-time playing of information include: first, in step _, mix the coded and identified real-time _, step _4, and pass this real-time information client. If in Step 16 the front-end client cannot immediately receive the real-time time, the job step is called, and the time-of-day information is stored in the buffer to which the client belongs. In summary, the advantages of the present invention include: 564609 06778twfl doc / 006 Date of revision 92.10.17 1. The real-time information delivered is an In-Time Message, which is different from the conventional Real-Time Message: it can be confirmed within a certain time Send information to the client. For client connections with poor connection quality, the information playback host will abandon this client connection when it confirms that the information packet cannot be delivered within a certain period of time to ensure that other clients can Enjoy a certain quality of instant messaging. 2. Encoding action: It enables the information playback host to process information of various types of data, and also protects the information content provided by the information provider from being obtained improperly. 3. The information receiving end and the information playing host adopt a two-way communication interface: the client can change the type of information channel subscribed at the same time when the system transmits real-time information. 4. The information broadcast host does not save the information packets received from the information source: it immediately sends the received information packets to the clients subscribing to this channel information to ensure that the information is immediately sent to user terminal. Although the present invention has been disclosed in the preferred embodiment as above, it is not intended to limit the present invention. Any person skilled in the art can make various modifications and retouches without departing from the spirit and scope of the present invention. Therefore, the present invention The scope of protection shall be determined by the scope of the attached patent application. 18