TWI471001B - Server, user equipment, and method for selecting an initial block address and deciding a block request number - Google Patents

Server, user equipment, and method for selecting an initial block address and deciding a block request number Download PDF

Info

Publication number
TWI471001B
TWI471001B TW100149471A TW100149471A TWI471001B TW I471001 B TWI471001 B TW I471001B TW 100149471 A TW100149471 A TW 100149471A TW 100149471 A TW100149471 A TW 100149471A TW I471001 B TWI471001 B TW I471001B
Authority
TW
Taiwan
Prior art keywords
block
block address
preset
blocks
user equipment
Prior art date
Application number
TW100149471A
Other languages
Chinese (zh)
Other versions
TW201328337A (en
Inventor
yi yu Su
Ching Chun Kao
Original Assignee
Ind Tech Res Inst
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ind Tech Res Inst filed Critical Ind Tech Res Inst
Priority to TW100149471A priority Critical patent/TWI471001B/en
Priority to CN201210055480.2A priority patent/CN103188337B/en
Publication of TW201328337A publication Critical patent/TW201328337A/en
Application granted granted Critical
Publication of TWI471001B publication Critical patent/TWI471001B/en

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

伺服器、用戶設備、選取起始區塊位址的方法與決定區塊請求數目的方法Server, user equipment, method of selecting starting block address and method for determining the number of block requests

本發明係有關於資料分享的方法,包括關於起始區塊位址選取與決定區塊請求數目的方法。The present invention relates to a method of data sharing, including a method of selecting a starting block address and determining the number of block requests.

由於網路相關技術的發展,利用點對點網路協定(peer-to-peer,P2P protocol),由網路(如網際網路(Internet))中下載(download)各種資料,如MP3或分享資源等,已成為網路相關技術之一重要應用。傳統上,由網路下載資料之方式,通常由使用者利用伺服器(server)或電腦裝置連接至網路上,而後下達搜尋條件。伺服器或電腦裝置會透過點對點網路協定,根據所設定之搜尋條件進行搜尋,並將搜尋結果顯示於顯示器上以供使用者進行下載指令確認。當使用者下達下載指令後,便進行下載工作,將所下載資料儲存於使用者所使用之伺服器或個人電腦中。Due to the development of network-related technologies, peer-to-peer (P2P protocol) is used to download various materials such as MP3 or shared resources from the Internet (such as the Internet). Has become an important application of network related technologies. Traditionally, the way to download data from the Internet is usually connected to the network by a user using a server or a computer device, and then the search condition is released. The server or computer device searches through the peer-to-peer network protocol according to the set search conditions, and displays the search result on the display for the user to confirm the download command. After the user releases the download command, the download operation is performed, and the downloaded data is stored in the server or personal computer used by the user.

在利用P2P網路進行下載即時媒體串流時,以傳統的技術也是需要交換或取得暫存映射表(buffer bit-map)。但利用暫存映射表的方式在P2P網路的環境中下載即時媒體串流是非常沒有效率的。因為是即時媒體串流,所以中繼站需要不斷地將在緩衝器中舊的即時媒體串流刪除以加入新的即時媒體串流。因此暫存映射表一直在變動。當此時用戶設備取得完暫存映射表,在下一時間暫存映射表又改變了,所以用戶設備需要不停的取得暫存映射表。不斷地更新不但容易造成網路壅塞且會使下載的效率不佳。因此急需要一方法以解決上述問題。In the case of downloading an instant media stream using a P2P network, it is also necessary to exchange or obtain a buffer bit-map by a conventional technique. However, it is very inefficient to download the instant media stream in the P2P network environment by means of the temporary map. Because it is an instant media stream, the relay station needs to constantly delete the old live media stream in the buffer to add a new instant media stream. Therefore, the temporary mapping table has been changing. When the user equipment obtains the temporary storage mapping table at this time, the temporary storage mapping table is changed at the next time, so the user equipment needs to continuously obtain the temporary storage mapping table. Constantly updating is not only easy to cause network congestion, but also makes downloading inefficient. Therefore, a method is urgently needed to solve the above problem.

本發明提供一種伺服器,包括:一通訊模組,接收來自一用戶設備的一請求封包;一緩衝器,儲存一即時媒體串流;以及一處理單元,於通訊模組接收到請求封包後,根據緩衝器之一最新的即時媒體串流區塊位址、一預設保留區塊數目與一隨機區塊數目,選取配置給用戶設備之下載即時媒體串流的一起始區塊位址。The present invention provides a server, comprising: a communication module, receiving a request packet from a user equipment; a buffer for storing an instant media stream; and a processing unit, after receiving the request packet by the communication module, And selecting a starting block address for downloading the instant media stream to the user equipment according to the latest instant media stream block address, a preset reserved block number and a random block number of one of the buffers.

本發明提供一種用戶設備,適用於一點對點(P2P)網路架構中,包括:一通訊模組,接收來自一伺服器的一起始區塊位址封包;以及一處理單元,於通訊模組接收到起始區塊位址封包後,根據一第一預設區塊請求數目與一起始區塊位址,向連線至P2P網路的其他用戶設備請求進行下載區塊,並根據第一預設區塊請求數目與一下載失敗的區塊數目選取一第二預設區塊請求數目;其中起始區塊位址係藉由通訊模組解碼起始區塊位址封包所得到。The present invention provides a user equipment suitable for a peer-to-peer (P2P) network architecture, comprising: a communication module that receives a starting block address packet from a server; and a processing unit that receives the communication module After the start block address packet, according to a first preset block request number and a start block address, the user equipment connected to the P2P network is requested to download the block, and according to the first pre- The number of block requests and the number of blocks that failed to be downloaded are selected by a second preset block request number; wherein the start block address is obtained by decoding the start block address block by the communication module.

本發明提供一種選取起始區塊位址的方法,包括:儲存一即時媒體串流;接收來自一用戶設備的一請求封包;以及根據一最新的即時媒體串流區塊位址、一預設保留區塊數目與一隨機區塊數目,選取配置給用戶設備之下載即時媒體串流的一起始區塊位址。The present invention provides a method for selecting a starting block address, including: storing an instant media stream; receiving a request packet from a user equipment; and according to a latest instant media stream block address, a preset The number of reserved blocks and the number of random blocks are selected as a starting block address for downloading the instant media stream to the user equipment.

本發明提供一種決定區塊請求數目的方法,適用於一點對點(P2P)網路架構中,包括:接收來自一伺服器的一起始區塊位址封包;以及根據一第一預設區塊請求數目與一起始區塊位址向連線至P2P網路的其他用戶設備請求進行下載區塊,並根據第一預設區塊請求數目與一下載失敗的區塊數目選取一第二預設區塊請求數目;其中起始區塊位址係藉由解碼起始區塊位址封包所得到。The present invention provides a method for determining the number of block requests, which is applicable to a peer-to-peer (P2P) network architecture, including: receiving a starting block address packet from a server; and requesting according to a first predetermined block The number and a starting block address are requested to download the block to other user equipments connected to the P2P network, and select a second preset area according to the first preset block request number and the number of download failed blocks. The number of block requests; where the starting block address is obtained by decoding the starting block address block.

為使本發明之製造、操作方法、目標和優點能更明顯易懂,下文特舉幾個較佳實施例,並配合所附圖式,作詳細說明如下。本發明之保護範圍當視後附之申請專利範圍所界定者為準。In order to make the invention, the method, the objects and the advantages of the present invention more obvious, the following detailed description of the preferred embodiments and the accompanying drawings. The scope of the invention is defined by the scope of the appended claims.

第1圖所示係根據本發明實施例之通訊系統100,用以進行選取起始區塊位址與決定區塊請求數目。通訊系統100包括點對點(peer-to-peer,P2P)網路102、中繼站104、即時媒體串流來源106與用戶設備108。舉例而言,中繼站104可為設置在網際網路中的一伺服器或具有相同功能之電子裝置,用以處理來自即時媒體串流來源106的即時媒體串流。中繼站104包括處理單元110、通訊模組112與緩衝器114。處理單元110可為一單一中央處理單元(central processing unit,CPU)或者是關連於平行運算環境(parallel processing environment)之複數平行處理單元,用以執行作業系統、模組、應用程式及選取起始區塊位址。通訊模組112可為一網路介面卡,用以接收來自即時媒體串流來源106與用戶設備108的即時媒體串流或封包。緩衝器114係用以儲存來自即時媒體串流來源106的即時媒體串流。舉例而言,即時媒體串流可為一即時新聞報導、一即時音樂會轉播、一即時發表會轉播等即時媒體串流。舉例而言,用戶設備108可為個人電腦、筆記型電腦、平板電腦、手持裝置等可連接至P2P網路102的電子裝置。用戶設備108包括處理單元116、通訊模組118與緩衝器120。處理單元116可為一單一中央處理單元(central processing unit,CPU)或者是關連於平行運算環境(parallel processing environment)之複數平行處理單元,用以執行作業系統、模組、應用程式及決定區塊請求數目。通訊模組118可為一網路介面卡,用以接收來自中繼站104及/或其他用戶設備108的即時媒體串流或封包。緩衝器120係用以儲存來自其他用戶設備108及/或中繼站104的的即時媒體串流。FIG. 1 shows a communication system 100 for selecting a starting block address and determining a block request number according to an embodiment of the present invention. Communication system 100 includes a peer-to-peer (P2P) network 102, a relay station 104, an instant media stream source 106, and user equipment 108. For example, relay station 104 can be a server or an electronic device having the same functionality disposed in the Internet to process an instant media stream from instant media stream source 106. The relay station 104 includes a processing unit 110, a communication module 112, and a buffer 114. The processing unit 110 can be a single central processing unit (CPU) or a plurality of parallel processing units associated with a parallel processing environment for executing operating systems, modules, applications, and selection initiations. Block address. The communication module 112 can be a network interface card for receiving instant media streams or packets from the instant media stream source 106 and the user device 108. The buffer 114 is used to store an instant media stream from the instant media stream source 106. For example, the instant media stream can be an instant media stream such as an instant news report, an instant concert broadcast, an instant announcement broadcast, and the like. For example, user device 108 can be an electronic device that can be connected to P2P network 102, such as a personal computer, laptop, tablet, handheld device, or the like. User device 108 includes processing unit 116, communication module 118, and buffer 120. The processing unit 116 can be a single central processing unit (CPU) or a plurality of parallel processing units associated with a parallel processing environment for executing operating systems, modules, applications, and decision blocks. The number of requests. The communication module 118 can be a network interface card for receiving instant media streams or packets from the relay station 104 and/or other user devices 108. Buffer 120 is used to store instant media streams from other user devices 108 and/or relay stations 104.

即時媒體串流來源106用以傳送即時媒體串流至中繼站104。緩衝器114用以儲存所接收到的即時媒體串流。當用戶設備108欲取得來自即時媒體串流來源106的即時媒體串流時,用戶設備108先傳送一請求封包Prequest 至中繼站104的通訊模組112以請求下載即時媒體串流的起始區塊位址。當通訊模組112接收到來自用戶設備108的該請求封包Prequest 時,中繼站104的處理單元110會根據該請求封包Prequest 為用戶設備108進行選取下載即時媒體串流的起始區塊位址。The instant media stream source 106 is configured to stream the instant media stream to the relay station 104. The buffer 114 is configured to store the received instant media stream. When the user equipment 108 wants to obtain the instant media stream from the instant media stream source 106, the user equipment 108 first transmits a request packet P request to the communication module 112 of the relay station 104 to request to download the starting block of the instant media stream. Address. When the communication module 112 receives the request packet P request from the user equipment 108, the processing unit 110 of the relay station 104 performs a selection of the starting block address for downloading the instant media stream for the user equipment 108 according to the request packet P request. .

第2圖係根據本發明實施例之選取起始區塊位址的機制。在第2圖中係顯示中繼站104之緩衝器114的緩衝器大小nrelay 、緩衝器114中最新的即時媒體串流區塊位址slatest 、預設保留區塊數目np 、隨機區塊數目nr 以及所選取的起始區塊位址sini 。舉例而言,緩衝器114係以區塊為單位儲存來自即時媒體串流來源106的即時媒體串流。當通訊模組112接收到來自用戶設備108的請求封包Prequest 時,處理單元110進行選取起始區塊位址的運算,如下列公式所示:Figure 2 is a diagram showing the mechanism for selecting a starting block address in accordance with an embodiment of the present invention. In Fig. 2, the buffer size n relay of the buffer 114 of the relay station 104, the latest instant media stream block address s latest in the buffer 114, the preset reserved block number n p , and the number of random blocks are displayed. n r and the selected starting block address s ini . For example, buffer 114 stores the instant media stream from instant media stream source 106 in units of blocks. When the communication module 112 receives the request packet P request from the user equipment 108, the processing unit 110 performs an operation of selecting the starting block address, as shown in the following formula:

起始區塊位址sini =最新的即時媒體串流區塊位址slatest -(預設保留區塊數目np +隨機區塊數目nr ),其中預設保留區塊數目np 與隨機區塊數目nr 之和必需小於中繼站104的緩衝器大小nrelay 。換言之,預設保留區塊的大小與隨機區塊的大小之總和需小於中繼站104的緩衝器大小nrelayStart block address s ini = latest live media stream block address s latest - (preset reserved block number n p + random block number n r ), where the preset reserved block number n p and The sum of the number of random blocks n r must be smaller than the buffer size n relay of the relay station 104. In other words, the sum of the size of the preset reserved block and the size of the random block needs to be smaller than the buffer size n relay of the relay station 104.

在本實施例中,預設保留區塊數目np 係用以使用戶設備108所得到的起始區塊位址不要太過於靠近最新的即時媒體串流區塊位址slatest 。舉例而言,當預設保留區塊數目np 係愈大,所得到的起始區塊位址會離最新的即時媒體串流區塊位址slatest 越遠。相反地,當預設保留區塊數目np 係愈小,所得到的起始區塊位址會離最新的即時媒體串流區塊位址slatest 越近。當用戶設備108接收到太過於靠近最新的即時媒體串流區塊位址slatest 時,用戶設備108可能無法從其他連線至P2P網路102的用戶設備108得到所要的即時媒體串流區塊,因此會直接向中繼站104要求下載所要的即時媒體串流。若此時有大量的用戶設備108所得到的起始區塊位址都過於靠近最新的即時媒體串流區塊位址slatest 時,這些用戶設備108都會向中繼站104要求下載所要的即時媒體串流區塊。在此情況下中繼站104容易過度負載,也容易造成網路壅塞。因此,在本實施例中使用預設保留區塊數目np 用以避免前述問題。In this embodiment, the preset reserved block number n p is used to prevent the starting block address obtained by the user equipment 108 from being too close to the latest real-time media stream block address s latest . For example, when the preset number of reserved blocks n p is larger, the obtained starting block address will be farther from the latest instant media stream block address s latest . Conversely, the smaller the preset reserved block number n p is, the closer the resulting starting block address will be to the latest instant media stream block address s latest . When the user equipment 108 receives too close to the latest instant media stream block address s latest , the user device 108 may not be able to obtain the desired instant media stream block from other user devices 108 connected to the P2P network 102. Therefore, the relay station 104 is requested to download the desired instant media stream directly. If a large number of user equipment 108 obtains a starting block address that is too close to the latest real-time media stream block address s latest , the user equipment 108 requests the relay station 104 to download the desired instant media string. Flow block. In this case, the relay station 104 is prone to excessive load and is also prone to network congestion. Therefore, the preset reserved block number n p is used in the present embodiment to avoid the aforementioned problem.

在本發明實施例中,隨機區塊數目nr 係用以使不同的用戶設備108能取得到不同的起始區塊位址。因為本發明係建立在P2P分享的環境中,當不同用戶設備108拿到不同的起始區塊位址時,可提高在P2P網路102中即時媒體串流的分享率。若不同用戶設備108各自擁有不同的即時媒體串流,當新的用戶設備108進入P2P網路102時,新的用戶設備108可在接收到中繼站104之處理單元110所選取的起始區塊位址後,由其他用戶設備108取得所欲下載的即時媒體串流。因此,P2P區塊分享率會提高。In the embodiment of the present invention, the number of random blocks n r is used to enable different user equipments 108 to obtain different starting block addresses. Because the present invention is built in a P2P sharing environment, when different user devices 108 get different starting block addresses, the sharing rate of the instant media stream in the P2P network 102 can be improved. If different user devices 108 each have a different instant media stream, when the new user device 108 enters the P2P network 102, the new user device 108 can receive the starting block bit selected by the processing unit 110 of the relay station 104. After the address, the other user device 108 obtains the instant media stream to be downloaded. Therefore, the P2P block sharing rate will increase.

當中繼站104的處理單元110根據選取起始區塊位址的機制計算出要配置給發送請求之用戶設備108的起始區塊位址後,通訊模組112傳送一起始區塊位址封包Pini 至用戶設備108。舉例而言,該起始區塊位址封包Pini 包含了配置給用戶設備108用以下載即時媒體串流的起始區塊位址。當用戶設備108的通訊模組118接收到來自通訊模組112所傳送的起始區塊位址封包Pini 後,用戶設備108的通訊模組118解碼出起始區塊位址封包Pini 中之起始區塊位址,並透過網路向其他用戶設備108請求下載即時媒體串流。通訊模組118根據一區塊請求數目的機制與起始區塊位址向其他用戶設備108請求下載即時媒體串流。After the processing unit 110 of the relay station 104 calculates the starting block address of the user equipment 108 to be configured for the transmission request according to the mechanism for selecting the starting block address, the communication module 112 transmits a starting block address packet P. Ini to user device 108. For example, the starting block address packet P ini includes a starting block address configured for the user equipment 108 to download the instant media stream. After the communication module 118 of the user equipment 108 receives the initial block address packet Pini transmitted from the communication module 112, the communication module 118 of the user equipment 108 decodes the initial block address packet Pini . The starting block address is addressed to other user devices 108 via the network to download the instant media stream. The communication module 118 requests the other user equipment 108 to download the instant media stream according to a mechanism of the number of block requests and the starting block address.

第3圖係根據本發明實施例之決定區塊請求數目的機制。在第3圖中係顯示在時間i預設的區塊請求數目、在時間i下載成功的區塊數目、在時間i下載失敗的區塊數目、起始區塊位址sini 與用戶設備108之緩衝器120的緩衝器大小nclient 。用戶設備108以區塊為單位進行下載即時媒體串流。當用戶設備108向其他用戶設備108請求下載即時媒體串流時,處理單元116會計算欲請求的區塊數目。用戶設備108在第一次請求下載即時媒體串流時,會有一預設的區塊請求數目。當此次下載成功的區塊數目為且下載失敗的區塊數目為時,則該區塊請求數目的機制會進行計算下次區塊請求數目,公式如下所示:Figure 3 is a diagram of the mechanism for determining the number of block requests in accordance with an embodiment of the present invention. In Figure 3, the number of block requests preset at time i is displayed. Number of blocks successfully downloaded at time i Number of blocks that failed to download at time i The start block address s ini and the buffer size n client of the buffer 120 of the user equipment 108. The user device 108 downloads the instant media stream in units of blocks. When user device 108 requests other user devices 108 to download an instant media stream, processing unit 116 calculates the number of blocks to request. When the user equipment 108 requests to download the instant media stream for the first time, there is a preset number of block requests. . The number of blocks that were successfully downloaded this time is And the number of blocks that failed to download is At this time, the mechanism for the number of block requests will calculate the number of next block requests. The formula is as follows:

,其中表示下一時間預設的區塊請求數目。 ,among them Indicates the number of block requests preset at the next time.

在網路的傳輸中可能因為壅塞等問題而造成某些請求區塊下載失敗,因此當出現區塊下載失敗時處理單元116根據上述機制減少區塊請求數目,以減少發出不必要之區塊請求,以便降低P2P運作成本。在一實施例中,當用戶設備108經過一預設時間都沒有發生區塊下載失敗時,處理單元116則於下次區塊請求時遞增區塊請求數目。In the transmission of the network, some request block download failures may occur due to congestion or the like, so when the block download failure occurs, the processing unit 116 reduces the number of block requests according to the above mechanism to reduce unnecessary block requests. In order to reduce the cost of P2P operation. In an embodiment, when the user equipment 108 fails to download the block for a predetermined time, the processing unit 116 increments the number of block requests on the next block request.

第4圖係根據本發明之通訊系統的一實施例。在第4圖中,中繼站104之緩衝器114之最新的即時媒體串流區塊位址為63,並且預設保留區塊數目為20。當用戶設備108之通訊模組118傳送請求封包Prequest 至中繼站104時,此時的隨機區塊數目為11。中繼站104的處理單元110經過計算63-(11+20)=32得知配置給用戶設備108的起始區塊位址為32。然後通訊模組112傳送包含起始區塊位址32的起始區塊位址封包Pini 至用戶設備108。接著,用戶設備108的通訊模組118根據一預設的區塊請求數目48與起始區塊位址32向其他用戶設備108請求下載區塊。如圖所示,用戶設備108下載成功的區塊數目為32,下載失敗的區塊數目為16,因此經由處理單元116計算後得知下次預設的區塊請求數目為32。在本實施例中,當經過2分鐘後沒有發生區塊下載失敗時,則於下次請求時遞增預設的區塊請求數目。此外,在本實施例中,區塊請求數目小於緩衝器120的緩衝器大小。Figure 4 is an embodiment of a communication system in accordance with the present invention. In FIG. 4, the latest instant media stream block address of the buffer 114 of the relay station 104 is 63, and the number of preset reserved blocks is 20. When the communication module 118 of the user equipment 108 transmits the request packet P request to the relay station 104, the number of random blocks at this time is 11. The processing unit 110 of the relay station 104 knows by calculation 63-(11+20)=32 that the starting block address assigned to the user equipment 108 is 32. The communication module 112 then transmits the starting block address packet Pini containing the starting block address 32 to the user device 108. Then, the communication module 118 of the user equipment 108 requests the other user equipment 108 to download the block according to a preset number of block requests 48 and the starting block address 32. As shown in the figure, the number of blocks successfully downloaded by the user device 108 is 32, and the number of blocks that have failed to be downloaded is 16, so that the number of block requests for the next preset is 32 after being calculated by the processing unit 116. In this embodiment, when the block download failure does not occur after 2 minutes elapse, the preset number of block requests is incremented on the next request. Further, in the present embodiment, the number of block requests is smaller than the buffer size of the buffer 120.

第5圖係根據本實施例之資料分享方法,此方法包括選取起始區塊位址的部分及決定區塊請求數目的部分。在步驟S502中,中繼站104接收來自用戶設備的一請求封包Prequest 。在步驟S504中,中繼站104利用sini =slatest -(np +nr )算出起始區塊位址,sini 為起始區塊位址、slatest 為最新的即時媒體串流區塊位址、np 為預設保留區塊數目且nr 為隨機區塊數目。在步驟S506中,中繼站104傳送一起始區塊位址封包Pini 至送出該請求封包Prequest 的用戶設備,其中起始區塊位址封包Pini 包含了配置給用戶設備之下載即時媒體串流的起始區塊位址。在步驟S508中,用戶設備接收來自中繼站104的起始區塊位址封包Pini 並解碼出起始區塊位址。在步驟S510中,根據一預設的區塊請求數目與起始區塊位址向連線至P2P網路之其他用戶設備請求下載區塊。在步驟S512中,用戶設備利用設定下次預設的區塊請求數目為此次下載成功的區塊數目,為下一時間預設的區塊請求數目、為此次預設的區塊請求數目且為下載失敗的區塊數目。在步驟S514中,當經過一預設時間後沒有發生區塊下載失敗時,用戶設備則於下次區塊請求時遞增預設的區塊請求數目,其中預設的區塊請求數目係小於用戶設備的緩衝器大小。在步驟S516中,結束下載即時媒體串流。Figure 5 is a data sharing method according to the present embodiment, the method comprising selecting a portion of a starting block address and a portion determining a number of block requests. In step S502, the relay station 104 receives a request packet P request from the user equipment. In step S504, the relay station 104 calculates the starting block address using s ini = s latest - (n p + n r ), s ini is the starting block address, and s latest is the latest instant media stream block. The address, n p is the preset number of reserved blocks and n r is the number of random blocks. In step S506, the relay station 104 transmits a starting block address packet Pini to the user equipment that sent the request packet P request , wherein the starting block address packet Pini contains the downloaded instant media stream configured to the user equipment. The starting block address. In step S508, the user equipment receives the start block address packet P ini from the relay station 104 and decodes the start block address. In step S510, the downloading block is requested to be connected to other user equipments connected to the P2P network according to a preset number of block requests and a starting block address. In step S512, the user equipment utilizes Set the number of block requests for the next preset to the number of blocks for which the download was successful. The number of block requests preset for the next time, The number of block requests for this preset and The number of blocks that failed to download. In step S514, when the block download failure does not occur after a preset time elapses, the user equipment increments the preset number of block requests on the next block request, wherein the preset number of block requests is smaller than the user. The buffer size of the device. In step S516, the download of the instant media stream is ended.

以上實施例所提出的系統與方法,可在P2P的網路架構下,提高用戶設備間區塊的分享率以及減輕並平衡中繼站的負載。不需要交換或取得暫存映射表(buffer bit-map)。此外,能減少發出不必要的區塊請求,亦有效地減低P2P的運作成本。也能透過自我調適並且快速收斂區塊請求數量,使達理想P2P的效能。The system and method proposed by the foregoing embodiments can improve the sharing rate of the user equipment block and reduce and balance the load of the relay station under the P2P network architecture. There is no need to exchange or obtain a buffer bit-map. In addition, it can reduce unnecessary block requests and effectively reduce the operating cost of P2P. It is also possible to achieve the performance of an ideal P2P through self-adaptation and fast convergence of the number of block requests.

以上段落使用多種層面描述。顯然的,本文的教示可以多種方式實現,而在範例中揭露之任何特定架構或功能僅為一代表性之狀況。根據本文之教示,任何熟知此技藝之人士應理解在本文揭露之各層面可獨立實作或兩種以上之層面可以合併實作。舉例說明,某種裝置或某種方法可遵照前文中提到任何方式數目之層面來實作或實現。此外,一裝置之實作或一種方法之實現可用任何其他架構、或功能性、又或架構及功能性附加於或不同於在前文所討論的一種或多種層面上。The above paragraphs are described in various levels. Obviously, the teachings herein can be implemented in a variety of ways, and any particular architecture or function disclosed in the examples is merely representative. In light of the teachings herein, it will be understood by those skilled in the art that the various aspects disclosed herein can be implemented independently or two or more layers can be combined. By way of example, a certain device or a method may be implemented or implemented in a manner that is in any number of ways as referred to in the foregoing. In addition, implementation of a device or implementation of a method may be added to or different from one or more of the layers discussed above in any other architecture, or functionality, or architecture and functionality.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and the present invention may be modified and modified without departing from the spirit and scope of the invention. The scope is subject to the definition of the scope of the patent application attached.

100‧‧‧通訊系統100‧‧‧Communication system

102‧‧‧P2P網路102‧‧‧P2P network

104‧‧‧中繼站104‧‧‧Relay station

106‧‧‧即時媒體串流來源106‧‧‧Instant media streaming source

108‧‧‧用戶設備108‧‧‧User equipment

110、116‧‧‧處理單元110, 116‧‧‧ processing unit

112、118‧‧‧通訊模組112, 118‧‧‧ communication module

114、120‧‧‧緩衝器114, 120‧‧‧ buffer

nrelay 、nclient ‧‧‧緩衝器大小n relay , n client ‧‧‧ buffer size

slatest ‧‧‧最新的即時媒體串流區塊位址s latest ‧‧‧The latest instant media streaming block address

np ‧‧‧預設保留區塊數目n p ‧‧‧The number of preset reserved blocks

nr ‧‧‧隨機區塊數目n r ‧‧‧Number of random blocks

sini ‧‧‧起始區塊位址s ini ‧‧‧ starting block address

‧‧‧預設的區塊請求數目 ‧‧‧The number of preset block requests

‧‧‧在時間i下載成功的區塊數目 ‧‧‧Number of blocks successfully downloaded at time i

‧‧‧在時間i下載失敗的區塊數目 ‧‧‧Number of blocks that failed to download at time i

第1圖所示係根據實施例之通訊系統的示意圖;第2圖所示係根據實施例之起始區塊位址選取的方法;第3圖所示係根據實施例之決定區塊請求數目的方法;第4圖所示係根據實施例之資料分享的方法;第5圖所示係根據實施例之資料分享方法的流程圖。1 is a schematic diagram of a communication system according to an embodiment; FIG. 2 is a method of selecting a starting block address according to an embodiment; and FIG. 3 is a number of determining a block request according to an embodiment. The method of FIG. 4 is a data sharing method according to an embodiment; and FIG. 5 is a flow chart of the data sharing method according to the embodiment.

Claims (18)

一種伺服器,包括:一通訊模組,接收來自一用戶設備的一請求封包;一緩衝器,儲存一即時媒體串流;以及一處理單元,於上述通訊模組接收到上述請求封包後,根據上述緩衝器之一新的即時媒體串流區塊位址、一預設保留區塊數目與一隨機區塊數目,選取配置給上述用戶設備之下載上述即時媒體串流的一起始區塊位址。 A server includes: a communication module that receives a request packet from a user equipment; a buffer that stores an instant media stream; and a processing unit that receives the request packet after the communication module receives the a new instant media stream block address, a preset reserved block number and a random block number of the buffer, and a starting block address configured to be downloaded to the user equipment to download the instant media stream . 如申請專利範圍第1項所述之伺服器,其中上述處理單元係根據sini =slatest -(np +nr )選取上述起始區塊位址,sini 為上述起始區塊位址、slatest 為一最新的即時媒體串流區塊位址、np 為上述預設保留區塊數目且nr 為上述隨機區塊數目。The server according to claim 1, wherein the processing unit selects the starting block address according to s ini =s latest -(n p +n r ), and s ini is the starting block bit The address, s latest is a latest instant media stream block address, n p is the number of preset reserved blocks, and n r is the number of random blocks. 如申請專利範圍第1項所述之伺服器,其中於上述處理單元選取上述起始區塊位址之後,上述通訊模組傳送含有上述起始區塊位址的一起始區塊位址封包至上述用戶設備。 The server of claim 1, wherein after the processing unit selects the starting block address, the communication module transmits a starting block address packet containing the starting block address to The above user equipment. 如申請專利範圍第1項所述之伺服器,其中上述預設保留區塊數目與上述隨機區塊數目之和必需小於上述緩衝器的一緩衝器大小。 The server of claim 1, wherein the sum of the number of the preset reserved blocks and the number of random blocks is smaller than a buffer size of the buffer. 一種用戶設備,適用於一點對點(P2P)網路架構中,包括:一通訊模組,接收來自一伺服器根據一新的即時媒體串流區塊位址、一預設保留區塊數目與一隨機區塊數目,選取一起始區塊位址後傳送的一起始區塊位址封包;以及 一處理單元,於上述通訊模組接收到上述起始區塊位址封包後,根據一第一預設區塊請求數目與上述起始區塊位址,向連線至上述P2P網路的其他用戶設備請求進行下載區塊,並根據上述第一預設區塊請求數目與一下載失敗的區塊數目選取一第二預設區塊請求數目;其中上述起始區塊位址係藉由上述通訊模組解碼上述起始區塊位址封包所得到。 A user equipment, suitable for a peer-to-peer (P2P) network architecture, comprising: a communication module that receives a new instant media stream block address from a server, a predetermined number of reserved blocks, and a a number of random blocks, a starting block address packet transmitted after selecting a starting block address; a processing unit, after receiving the start block address packet, the communication module is connected to the P2P network according to a first preset block request number and the start block address The user equipment requests to download the block, and selects a second preset block request number according to the first preset block request number and the number of download failed blocks; wherein the start block address is by the foregoing The communication module decodes the above starting block address packet. 如申請專利範圍第5項所述之用戶設備,其中上述處理單元係根據選取上述第二預設區塊請求數目,為上述第二預設區塊請求數目、為 上述第一預設區塊請求數目,且為上述下載失敗的區塊數目。The user equipment of claim 5, wherein the processing unit is based on Selecting the number of the second preset block requests mentioned above, Requesting the number of the second preset block mentioned above, Requesting the number of the first preset block mentioned above, and The number of blocks that failed to download as described above. 如申請專利範圍第5項所述之用戶設備,其中上述下載失敗的區塊數目為上述通訊模組根據上述第一預設區塊請求數目下載區塊後之下載失敗的區塊數目。 The user equipment of claim 5, wherein the number of blocks in which the download fails is the number of blocks that the communication module fails to download after downloading the block according to the number of the first preset block requests. 如申請專利範圍第5項所述之用戶設備,其中上述第二預設區塊請求數目等於一下載成功的區塊數目。 The user equipment of claim 5, wherein the number of the second preset block requests is equal to the number of blocks successfully downloaded. 如申請專利範圍第8項所述之用戶設備,其中上述下載成功的區塊數目為上述通訊模組根據上述第一預設區塊請求數目下載區塊後之下載成功的區塊數目。 The user equipment of claim 8, wherein the number of successfully downloaded blocks is the number of blocks successfully downloaded by the communication module after downloading the block according to the first predetermined block request number. 一種選取起始區塊位址的方法,包括:接收來自一用戶設備的一請求封包;以及根據一新的即時媒體串流區塊位址、一預設保留區塊數目與一隨機區塊數目,選取配置給上述用戶設備之下載 一即時媒體串流的一起始區塊位址。 A method for selecting a starting block address, comprising: receiving a request packet from a user equipment; and according to a new instant media stream block address, a preset reserved block number, and a random block number , select the configuration to download to the above user equipment A starting block address of an instant media stream. 如申請專利範圍第10項所述之選取起始區塊位址的方法,其中選取上述起始區塊位址係由sini =slatest -(np +nr )所決定,sini 為上述起始區塊位址、slatest 為一最新的即時媒體串流區塊位址、np 為上述預設保留區塊數目,且nr 為上述隨機區塊數目。For example, the method for selecting a starting block address according to claim 10, wherein the starting block address is determined by s ini =s latest -(n p +n r ), s ini is The initial block address, s latest is a latest instant media stream block address, n p is the preset reserved block number, and n r is the number of random blocks. 如申請專利範圍第10項所述之選取起始區塊位址的方法,更包括於選取上述起始區塊位址之後,傳送含有上述起始區塊位址的一起始區塊位址封包至上述用戶設備。 The method for selecting a starting block address as described in claim 10, further comprising: after selecting the starting block address, transmitting a starting block address packet including the starting block address; To the above user equipment. 如申請專利範圍第10項所述之選取起始區塊位址的方法,其中上述預設保留區塊數目與上述隨機區塊數目之和必需小於一中繼站之一緩衝器的緩衝器大小。 The method for selecting a starting block address as described in claim 10, wherein the sum of the number of the preset reserved blocks and the number of random blocks is less than a buffer size of a buffer of one of the relay stations. 一種決定區塊請求數目的方法,適用於一點對點(P2P)網路架構中,包括:接收來自一伺服器根據一新的即時媒體串流區塊位址、一預設保留區塊數目與一隨機區塊數目,選取一起始區塊位址,並傳送的一起始區塊位址封包;以及根據一第一預設區塊請求數目與上述起始區塊位址向連線至上述P2P網路的其他用戶設備請求進行下載區塊,並根據上述第一預設區塊請求數目與一下載失敗的區塊數目選取一第二預設區塊請求數目;其中上述起始區塊位址係藉由解碼上述起始區塊位址封包所得到。 A method for determining the number of block requests, applicable to a peer-to-peer (P2P) network architecture, comprising: receiving from a server according to a new instant media stream block address, a preset reserved block number, and a a number of random blocks, selecting a starting block address, and transmitting a starting block address packet; and connecting the starting block address to the P2P network according to a first predetermined block request number The other user equipments of the path request to download the block, and select a second preset block request number according to the first preset block request number and the number of download failed blocks; wherein the start block address system is It is obtained by decoding the above starting block address packet. 如申請專利範圍第14項所述之決定區塊請求數目 的方法,其中選取上述第二預設區塊請求數目係由 所得到,為上述第二預設區塊請求數目、為上述第一預設區塊請求數目,且為上述下載失敗的區塊數目。The method for determining the number of block requests according to claim 14 of the patent application, wherein the number of the second preset block requests is selected Obtained, Requesting the number of the second preset block mentioned above, Requesting the number of the first preset block mentioned above, and The number of blocks that failed to download as described above. 如申請專利範圍第14項所述之決定區塊請求數目的方法,其中上述下載失敗的區塊數目為一用戶設備根據上述第一預設區塊請求數目下載區塊後之下載失敗的區塊數目。 The method for determining the number of block requests, as described in claim 14, wherein the number of blocks in which the download fails is a block in which the user device downloads the block according to the number of the first preset block request, and the download fails. number. 如申請專利範圍第14項所述之決定區塊請求數目的方法,其中上述第二預設區塊請求數目等於一下載成功的區塊數目。 The method for determining the number of block requests as described in claim 14, wherein the number of the second preset block requests is equal to the number of blocks successfully downloaded. 如申請專利範圍第17項所述之決定區塊請求數目的方法,其中上述下載成功的區塊數目為一用戶設備根據上述第一預設區塊請求數目下載區塊後之下載成功的區塊數目。 The method for determining the number of block requests, as described in claim 17, wherein the number of blocks successfully downloaded is a block that is successfully downloaded by the user equipment after downloading the block according to the number of the first preset block request. number.
TW100149471A 2011-12-29 2011-12-29 Server, user equipment, and method for selecting an initial block address and deciding a block request number TWI471001B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW100149471A TWI471001B (en) 2011-12-29 2011-12-29 Server, user equipment, and method for selecting an initial block address and deciding a block request number
CN201210055480.2A CN103188337B (en) 2011-12-29 2012-02-28 Server, user equipment, method for selecting starting block address and method for determining block request number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW100149471A TWI471001B (en) 2011-12-29 2011-12-29 Server, user equipment, and method for selecting an initial block address and deciding a block request number

Publications (2)

Publication Number Publication Date
TW201328337A TW201328337A (en) 2013-07-01
TWI471001B true TWI471001B (en) 2015-01-21

Family

ID=48679302

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100149471A TWI471001B (en) 2011-12-29 2011-12-29 Server, user equipment, and method for selecting an initial block address and deciding a block request number

Country Status (2)

Country Link
CN (1) CN103188337B (en)
TW (1) TWI471001B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020046251A1 (en) * 2001-03-09 2002-04-18 Datacube, Inc. Streaming memory controller
TW200729844A (en) * 2006-01-30 2007-08-01 Mediatek Inc DTV decoding system and de-multiplexing method thereof
TW201032085A (en) * 2009-01-07 2010-09-01 Micron Technology Inc Pattern-recognition processor with matching-data reporting module

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8832290B2 (en) * 2007-02-23 2014-09-09 Microsoft Corporation Smart pre-fetching for peer assisted on-demand media
CN101471919B (en) * 2007-12-29 2012-01-11 突触计算机系统(上海)有限公司 Method and device for downloading slicing of equipment based on point-to-point transmission protocol
CN101588381A (en) * 2008-05-23 2009-11-25 宏达国际电子股份有限公司 Method for playing streaming data and the electronic installation of carrying out it
CN101742238A (en) * 2008-11-26 2010-06-16 深圳市彪骐数码科技有限公司 Streaming media on-demand method and device combining RTS with P2P
CN101834801B (en) * 2010-05-20 2012-11-21 哈尔滨工业大学 Data caching and sequencing on-line processing method based on cache pool

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020046251A1 (en) * 2001-03-09 2002-04-18 Datacube, Inc. Streaming memory controller
TW200729844A (en) * 2006-01-30 2007-08-01 Mediatek Inc DTV decoding system and de-multiplexing method thereof
TW201032085A (en) * 2009-01-07 2010-09-01 Micron Technology Inc Pattern-recognition processor with matching-data reporting module

Also Published As

Publication number Publication date
TW201328337A (en) 2013-07-01
CN103188337A (en) 2013-07-03
CN103188337B (en) 2016-05-18

Similar Documents

Publication Publication Date Title
US11297140B2 (en) Point of presence based data uploading
US9749293B2 (en) Systems for improved mobile internet performance and security
US8488661B2 (en) Systems and methods for data streaming
JP5800872B2 (en) Packet level prioritization in interconnected networks
US20130100955A1 (en) Technique for prioritizing traffic at a router
JP2018524887A (en) Method and apparatus for multipath media transmission
US20070076714A1 (en) Method and system for transparently transcoding a multicast stream
CN110620802B (en) Load balancing method and device
US10728355B2 (en) Distributed forwarding system and method for service stream
TW201448545A (en) Apparatus and method for level-based self-adjusting peer-to-peer media streaming
Morgenroth et al. Live-streaming in delay tolerant networks
US9876835B2 (en) Information processing apparatus, information processing method, and program
JP6886874B2 (en) Edge devices, data processing systems, data transmission methods, and programs
TWI471001B (en) Server, user equipment, and method for selecting an initial block address and deciding a block request number
US20110145440A1 (en) Method of distributed computing electronic device and system applying the method
JP6538061B2 (en) Method of providing content portions of multimedia content to a client terminal and corresponding cache
WO2016095510A1 (en) Path selection method, device and system
WO2018086575A1 (en) Method and device for controlling media resource
US11770431B2 (en) Network-adaptive live media encoding system
KR101525471B1 (en) Method and system for providing video
TW201722119A (en) Requesting and receiving a media stream within a networked system
KR101082786B1 (en) System and Method for Allocation of Contents using Proxy Server
JP2017037411A (en) Transfer device for content distribution network, server device, and program
CN113169936A (en) Service chaining mechanism for data stream processing
US20200128103A1 (en) Methods, network node and client device for acquisition and delivery of resources in a communications network