CN103188337B - Server, user equipment, method for selecting starting block address and method for determining block request number - Google Patents
Server, user equipment, method for selecting starting block address and method for determining block request number Download PDFInfo
- Publication number
- CN103188337B CN103188337B CN201210055480.2A CN201210055480A CN103188337B CN 103188337 B CN103188337 B CN 103188337B CN 201210055480 A CN201210055480 A CN 201210055480A CN 103188337 B CN103188337 B CN 103188337B
- Authority
- CN
- China
- Prior art keywords
- block
- block address
- blocks
- default
- request
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000004891 communication Methods 0.000 claims abstract description 34
- 238000012545 processing Methods 0.000 claims abstract description 32
- 230000005540 biological transmission Effects 0.000 claims description 2
- 238000005245 sintering Methods 0.000 claims 16
- VEMKTZHHVJILDY-UHFFFAOYSA-N resmethrin Chemical compound CC1(C)C(C=C(C)C)C1C(=O)OCC1=COC(CC=2C=CC=CC=2)=C1 VEMKTZHHVJILDY-UHFFFAOYSA-N 0.000 claims 7
- 238000013507 mapping Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明是有关于数据分享的方法,包括关于起始区块地址选取与决定区块请求数目的方法。The present invention relates to a data sharing method, including a method for selecting a starting block address and determining the number of block requests.
背景技术Background technique
由于网络相关技术的发展,利用点对点网络协议(peer-to-peer,P2Pprotocol),由网络(如因特网(Internet))中下载(download)各种数据,如MP3或分享资源等,已成为网络相关技术的一重要应用。传统上,由网络下载数据的方式,通常由使用者利用服务器(server)或计算机装置连接至网络上,而后下达搜寻条件。服务器或计算机装置会透过点对点网络协议,根据所设定的搜寻条件进行搜寻,并将搜寻结果显示于显示器上以供使用者进行下载指令确认。当使用者下达下载指令后,便进行下载工作,将所下载数据储存于使用者所使用的服务器或个人计算机中。Due to the development of network-related technologies, using peer-to-peer (P2P protocol) to download (download) various data from the network (such as the Internet (Internet)), such as MP3 or shared resources, etc., has become a network-related An important application of technology. Traditionally, in the way of downloading data from the network, the user usually uses a server (server) or a computer device to connect to the network, and then issues a search condition. The server or computer device will search according to the set search conditions through the peer-to-peer network protocol, and display the search results on the display for the user to confirm the download command. After the user issues the download command, the downloading work will be performed, and the downloaded data will be stored in the server or personal computer used by the user.
在利用P2P网络进行下载实时媒体串流时,以传统的技术也是需要交换或取得暂存映像表(bufferbit-map)。但利用暂存映像表的方式在P2P网络的环境中下载实时媒体串流是非常没有效率的。因为是实时媒体串流,所以中继站需要不断地将在缓冲器中旧的实时媒体串流删除以加入新的实时媒体串流。因此暂存映射表一直在变动。当此时用户设备取得完暂存映射表,在下一时间暂存映像表又改变了,所以用户设备需要不停的取得暂存映像表。不断地更新不但容易造成网络壅塞且会使下载的效率不佳。因此急需要一方法以解决上述问题。When using the P2P network to download the real-time media stream, the traditional technology also needs to exchange or obtain a buffer bit-map. However, it is very inefficient to download real-time media streams in a P2P network environment by using a temporary mapping table. Because it is a real-time media stream, the relay station needs to constantly delete the old real-time media stream in the buffer to add a new real-time media stream. Therefore, the temporary storage mapping table is constantly changing. When the user equipment has obtained the temporary mapping table at this time, the temporary mapping table will be changed at a next time, so the user equipment needs to continuously obtain the temporary mapping table. Constantly updating not only easily causes network congestion but also makes downloading inefficient. Therefore urgently need a method to solve the above problems.
发明内容Contents of the invention
本发明的目的在于,提供一种新的方法来提高点对点(P2P)的区块分享率,并使传输即时影音串流的端点(含用户设备、服务器(或中继站))皆不需事前先知道或更新彼此所拥有的数据内容,却能获得最新影音数据,从而摆脱大多方法需频繁交换与传输暂存映像表(bufferbit-map)而浪费网路频宽的作法。The purpose of the present invention is to provide a new method to increase the block sharing rate of peer-to-peer (P2P), and to make the endpoints (including user equipment, server (or relay station)) that transmit real-time audio and video streaming do not need to know in advance Or update the data content owned by each other, but can obtain the latest audio-visual data, so as to get rid of the practice of wasting network bandwidth by frequently exchanging and transmitting buffer bit-maps in most methods.
本发明提供一种服务器,包括:一通讯模块,接收来自一用户设备的一请求封包;一缓冲器,储存一实时媒体串流;以及一处理单元,于通讯模块接收到请求封包后,根据缓冲器的一最新的实时媒体串流区块地址、一预设保留区块数目与一随机区块数目,选取配置给用户设备的下载实时媒体串流的一起始区块地址。The present invention provides a server, including: a communication module, receiving a request packet from a user equipment; a buffer, storing a real-time media stream; and a processing unit, after the communication module receives the request packet, according to the buffer A latest real-time media stream block address, a preset reserved block number and a random block number are selected to configure a starting block address for downloading the real-time media stream for the user equipment.
本发明提供一种用户设备,适用于一点对点(P2P)网络架构中,包括:一通讯模块,接收来自一服务器的一起始区块地址封包;以及一处理单元,于通讯模块接收到起始区块地址封包后,根据一第一预设区块请求数目与一起始区块地址,向连线至P2P网络的其它用户设备请求进行下载区块,并根据第一预设区块请求数目与一下载失败的区块数目选取一第二预设区块请求数目;其中起始区块地址是通过通讯模块译码起始区块地址封包所得到。The present invention provides a kind of user equipment, suitable for peer-to-peer (P2P) network architecture, including: a communication module, receiving a starting block address packet from a server; and a processing unit, when the communication module receives the starting block address packet After the block address is packaged, according to a first preset block request number and a starting block address, request to download blocks from other user equipment connected to the P2P network, and according to the first preset block request number and a The number of blocks that failed to download is selected from a second preset block request number; wherein the initial block address is obtained by decoding the initial block address packet through the communication module.
本发明提供一种选取起始区块地址的方法,包括:储存一实时媒体串流;接收来自一用户设备的一请求封包;以及根据一最新的实时媒体串流区块地址、一预设保留区块数目与一随机区块数目,选取配置给用户设备的下载实时媒体串流的一起始区块地址。The present invention provides a method for selecting a starting block address, including: storing a real-time media stream; receiving a request packet from a user equipment; and according to a latest real-time media stream block address, a preset reserved The block number and a random block number select a starting block address allocated to the user equipment for downloading the real-time media stream.
本发明提供一种决定区块请求数目的方法,适用于一点对点(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, comprising: receiving a packet of an initial block address from a server; and according to a first preset number of block requests and A starting block address requests other user equipment connected to the P2P network to download blocks, and selects a second preset block request number according to the first preset block request number and a download failed block number; The starting block address is obtained by decoding the starting block address packet.
以上实施例所提出的系统与方法,可在P2P的网络架构下,提高用户设备间区块的分享率以及减轻并平衡中继站的负载。端点(含用户设备、服务器(或中继站))不需要交换或取得彼此之暂存映像表(bufferbit-map)。此外,能减少发出不必要的区块请求,亦有效地减低P2P的运作成本。也能透过自我调适并且快速收敛区块请求数量,使达理想P2P的效能。The system and method proposed in the above embodiments can increase the sharing rate of blocks among user equipments and reduce and balance the load of relay stations under the P2P network architecture. Endpoints (including user equipment, server (or relay station)) do not need to exchange or obtain each other's buffer bit-map. In addition, unnecessary block requests can be reduced, and the operating cost of P2P can be effectively reduced. It can also achieve the ideal P2P performance through self-adjustment and rapid convergence of the number of block requests.
附图说明Description of drawings
图1所示是根据实施例的通讯系统的示意图;FIG. 1 is a schematic diagram of a communication system according to an embodiment;
图2所示是根据实施例的起始区块地址选取的方法;Figure 2 shows a method for selecting a starting block address according to an embodiment;
图3所示是根据实施例的决定区块请求数目的方法;Figure 3 shows a method for determining the number of block requests according to an embodiment;
图4所示是根据实施例的数据分享的方法;Figure 4 shows a data sharing method according to an embodiment;
图5所示是根据实施例的数据分享方法的流程图。FIG. 5 is a flowchart of a data sharing method according to an embodiment.
【主要组件符号说明】[Description of main component symbols]
100~通讯系统;100~communication system;
102~P2P网络;102~P2P network;
104~中继站;104~relay station;
106~实时媒体串流来源;106~source of real-time media streaming;
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 real-time media streaming block address;
np~预设保留区块数目;n p ~preset number of reserved blocks;
nr~随机区块数目;n r ~number of random blocks;
sini~起始区块地址;s ini ~starting block address;
~预设的区块请求数目; ~The default number of block requests;
~在时间i下载成功的区块数目; ~Number of successfully downloaded blocks at time i;
~在时间i下载失败的区块数目。 ~Number of blocks that failed to download at time i.
具体实施方式detailed description
为使本发明的制造、操作方法、目标和优点能更明显易懂,下文特举几个较佳实施例,并配合所附附图,作详细说明如下。本发明的保护范围当视所附的权利要求书所界定的范围为准。In order to make the manufacture, operation method, objectives and advantages of the present invention more comprehensible, several preferred embodiments are specifically cited below, together with the accompanying drawings, to be described in detail as follows. The protection scope of the present invention should be determined by the scope defined by the appended claims.
图1所示是根据本发明实施例的通讯系统100,用以进行选取起始区块地址与决定区块请求数目。通讯系统100包括点对点(peer-to-peer,P2P)网络102、中继站104、实时媒体串流来源106与用户设备108。举例而言,中继站104可为设置在因特网中的一服务器或具有相同功能的电子装置,用以处理来自实时媒体串流来源106的实时媒体串流。中继站104包括处理单元110、通讯模块112与缓冲器114。处理单元110可为一单一中央处理单元(centralprocessingunit,CPU)或者是关连于平行运算环境(parallelprocessingenvironment)的多个平行处理单元,用以执行操作系统、模块、应用程序及选取起始区块地址。通讯模块112可为一网络适配卡,用以接收来自实时媒体串流来源106与用户设备108的实时媒体串流或封包。缓冲器114是用以储存来自实时媒体串流来源106的实时媒体串流。举例而言,实时媒体串流可为一实时新闻报导、一实时音乐会转播、一实时发表会转播等实时媒体串流。举例而言,用户设备108可为个人计算机、笔记型计算机、平板计算机、手持装置等可连接至P2P网络102的电子装置。用户设备108包括处理单元116、通讯模块118与缓冲器120。处理单元116可为一单一中央处理单元(centralprocessingunit,CPU)或者是关连于平行运算环境(parallelprocessingenvironment)的多个平行处理单元,用以执行操作系统、模块、应用程序及决定区块请求数目。通讯模块118可为一网络适配卡,用以接收来自中继站104及/或其它用户设备108的实时媒体串流或封包。缓冲器120是用以储存来自其它用户设备108及/或中继站104的的实时媒体串流。FIG. 1 shows a communication system 100 according to an embodiment of the present invention, which is used for selecting a starting block address and determining the number of block requests. The communication system 100 includes a peer-to-peer (P2P) network 102 , a relay station 104 , a real-time media stream source 106 and a user equipment 108 . For example, the relay station 104 can be a server installed in the Internet or an electronic device with the same function to process the real-time media stream from the real-time 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 (central processing unit, CPU) or a plurality of parallel processing units associated with a parallel processing environment (parallel processing environment), for executing operating systems, modules, application programs and selecting starting block addresses. The communication module 112 can be a network adapter card for receiving real-time media streams or packets from the real-time media stream source 106 and the user equipment 108 . The buffer 114 is used for storing the real-time media stream from the real-time media stream source 106 . For example, the real-time media stream can be a real-time news report, a real-time concert rebroadcast, a real-time press conference rebroadcast, etc. For example, the user equipment 108 can be a personal computer, a notebook computer, a tablet computer, a handheld device, etc., which can be connected to the P2P network 102 . The user equipment 108 includes a processing unit 116 , a communication module 118 and a buffer 120 . The processing unit 116 can be a single central processing unit (central processing unit, CPU) or a plurality of parallel processing units associated with a parallel processing environment (parallel processing environment), for executing operating systems, modules, application programs and determining the number of block requests. The communication module 118 can be a network adapter card for receiving real-time media streams or packets from the relay station 104 and/or other user equipment 108 . The buffer 120 is used to store real-time media streams from other UEs 108 and/or relay stations 104 .
实时媒体串流来源106用以传送实时媒体串流至中继站104。缓冲器114用以储存所接收到的实时媒体串流。当用户设备108欲取得来自实时媒体串流来源106的实时媒体串流时,用户设备108先传送一请求封包Prequest至中继站104的通讯模块112以请求下载实时媒体串流的起始区块地址。当通讯模块112接收到来自用户设备108的该请求封包Prequest时,中继站104的处理单元110会根据该请求封包Prequest为用户设备108进行选取下载实时媒体串流的起始区块地址。The real-time media stream source 106 is used to transmit the real-time media stream to the relay station 104 . The buffer 114 is used for storing the received real-time media stream. When the user equipment 108 wants to obtain the real-time media stream from the real-time media stream source 106, the user equipment 108 first sends a request packet P request to the communication module 112 of the relay station 104 to request to download the starting block address of the real-time media stream . 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 selects a starting block address for downloading the real-time 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进行选取起始区块地址的运算,如下列公式所示:FIG. 2 is a mechanism for selecting a starting block address according to an embodiment of the present invention. 2 shows the buffer size n relay of the buffer 114 of the relay station 104, the latest real-time media stream block address s latest in the buffer 114, the preset reserved block number n p , and the random block number n r and the selected starting block address s ini . For example, the buffer 114 stores the real-time media stream from the real-time 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 the operation of selecting the starting block address, as shown in the following formula:
起始区块地址sini=最新的实时媒体串流区块地址slatest-(预设保留区块数目np+随机区块数目nr),其中预设保留区块数目np与随机区块数目nr之和必需小于中继站104的缓冲器大小nrelay。换言之,预设保留区块的大小与随机区块的大小的总和需小于中继站104的缓冲器大小nrelay。Initial block address s ini = the latest real-time media stream block address s latest - (preset reserved block number n p + random block number n r ), wherein the preset reserved block number n p is the same as the random area The sum of the number n r of blocks must be smaller than the buffer size n relay of the relay station 104 . In other words, the sum of the size of the default reserved block and the size of the random block must 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 streaming block address s latest . For example, when the preset reserved block number n p is larger, the obtained starting block address is farther away from the latest real-time media streaming block address s latest . On the contrary, when the preset reserved block number n p is smaller, the obtained starting block address is closer to the latest real-time media streaming block address s latest . When the user equipment 108 receives too close to the latest real-time media stream block address s latest , the user equipment 108 may not be able to obtain the desired real-time media stream block from other user equipment 108 connected to the P2P network 102, so It will directly request the relay station 104 to download the desired real-time media stream. If the starting block addresses obtained by a large number of user equipment 108 are too close to the latest real-time media streaming block address s latest , these user equipment 108 will request the relay station 104 to download the desired real-time media streaming area piece. In this case, the relay station 104 is likely to be overloaded and cause network congestion. Therefore, in this embodiment, the preset reserved block number n p is used to avoid the aforementioned problems.
在本发明实施例中,随机区块数目nr是用以使不同的用户设备108能取得到不同的起始区块地址。因为本发明是建立在P2P分享的环境中,当不同用户设备108拿到不同的起始区块地址时,可提高在P2P网络102中实时媒体串流的分享率。若不同用户设备108各自拥有不同的实时媒体串流,当新的用户设备108进入P2P网络102时,新的用户设备108可在接收到中继站104的处理单元110所选取的起始区块地址后,由其它用户设备108取得所欲下载的实时媒体串流。因此,P2P区块分享率会提高。In the embodiment of the present invention, the random block number n r is used to enable different user equipments 108 to obtain different starting block addresses. Because the present invention is established in the P2P sharing environment, when different user equipments 108 obtain different starting block addresses, the sharing rate of real-time media streams in the P2P network 102 can be improved. If different user equipments 108 have different real-time media streams, when a new user equipment 108 enters the P2P network 102, the new user equipment 108 can receive the starting block address selected by the processing unit 110 of the relay station 104 , obtain the real-time media stream to be downloaded by other user equipment 108 . 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 initial block address to be allocated to the user equipment 108 sending the request according to the mechanism for selecting the initial block address, the communication module 112 transmits an initial block address packet P ini to the user equipment 108. For example, the initial block address packet P ini includes the initial block address configured for the user equipment 108 to download the real-time media stream. After the communication module 118 of the user equipment 108 receives the initial block address packet P ini transmitted from the communication module 112, the communication module 118 of the user equipment 108 decodes the initial area in the initial block address packet P ini block address, and request to download the real-time media stream from other user equipment 108 through the network. The communication module 118 requests other user equipments 108 to download the real-time media stream according to a block request number mechanism and a starting block address.
图3是根据本发明实施例的决定区块请求数目标机制。在图3中是显示在时间i预设的区块请求数目在时间i下载成功的区块数目在时间i下载失败的区块数目起始区块地址sini与用户设备108的缓冲器120的缓冲器大小nclient。用户设备108以区块为单位进行下载实时媒体串流。当用户设备108向其它用户设备108请求下载实时媒体串流时,处理单元116会计算欲请求的区块数目。用户设备108在第一次请求下载实时媒体串流时,会有一预设的区块请求数目当此次下载成功的区块数目为且下载失败的区块数目为时,则该区块请求数目标机制会进行计算下次区块请求数目,公式如下所示:FIG. 3 is a mechanism for determining the number of block requests according to an embodiment of the present invention. Figure 3 shows the number of block requests preset at time i The number of successfully downloaded blocks at time i Number of blocks that failed to download at time i The starting block address sini and the buffer size n client of the buffer 120 of the UE 108 . The user equipment 108 downloads the real-time media stream in units of blocks. When the user equipment 108 requests other user equipment 108 to download the real-time media stream, the processing unit 116 calculates the number of blocks to be requested. When the user equipment 108 requests to download the real-time media stream for the first time, there will be a preset number of block requests When the number of blocks successfully downloaded this time is And the number of blocks that failed to download is , then the block request number target mechanism will calculate the next block request number, the formula is as follows:
其中表示下一时间预设的区块请求数目。 in Indicates the number of block requests preset at the next time.
在网络的传输中可能因为壅塞等问题而造成某些请求区块下载失败,因此当出现区块下载失败时处理单元116根据上述机制减少区块请求数目,以减少发出不必要的区块请求,以便降低P2P运作成本。在一实施例中,当用户设备108经过一预设时间都没有发生区块下载失败时,处理单元116则于下次区块请求时递增区块请求数目。During the transmission of the network, the download of some requested blocks may fail due to problems such as congestion. Therefore, when a block download fails, the processing unit 116 reduces the number of block requests according to the above mechanism, so as to reduce unnecessary block requests. In order to reduce the cost of P2P operation. In one embodiment, when the user equipment 108 does not fail to download blocks within a preset time period, the processing unit 116 increments the number of block requests for 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的缓冲器大小。FIG. 4 is an embodiment of a communication system according to the present invention. In FIG. 4 , the latest real-time media stream block address of the buffer 114 of the relay station 104 is 63, and the preset number of 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 learns that the starting block address allocated to the user equipment 108 is 32 through calculation 63−(11+20)=32. Then the communication module 112 transmits the initial block address packet Pini including the initial block address 32 to the user equipment 108 . Next, the communication module 118 of the user equipment 108 requests other user equipments 108 to download blocks according to a preset block request number 48 and a starting block address 32 . As shown in the figure, the number of blocks successfully downloaded by the user equipment 108 is 32, and the number of blocks downloaded by the user equipment 108 is 16. Therefore, after calculation by the processing unit 116 , it is known that the next preset number of block requests is 32. In this embodiment, when there is no block download failure after 2 minutes, the preset number of block requests will be incremented in the next request. In addition, in this 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中,结束下载实时媒体串流。FIG. 5 is a data sharing method according to the present embodiment. The method includes the part of selecting the starting block address and the part of determining the 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 uses s ini =s latest -(n p +n r ) to calculate the initial block address, where s ini is the initial block address, s latest is the latest real-time media stream block address, np . is the number of reserved blocks by default and n r is the number of random blocks. In step S506, the relay station 104 sends an initial block address packet P ini to the user equipment that sent the request packet P request , wherein the initial block address packet P ini contains the start of the real-time media stream configured for the user equipment. start block address. In step S508, the UE receives the initial block address packet P ini from the relay station 104 and decodes the initial block address. In step S510, request to download blocks from other user equipment 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 next default number of block requests to be the number of successfully downloaded blocks this time, The number of block requests preset for the next time, The number of block requests preset for this time and is the number of blocks that failed to download. In step S514, when there is no block download failure after a preset time, the user equipment increments the preset block request number at the next block request, wherein the preset block request number is less than the user's The buffer size of the device. In step S516, the downloading of the real-time media stream ends.
以上实施例所提出的系统与方法,可在P2P的网络架构下,提高用户设备间区块的分享率以及减轻并平衡中继站的负载。不需要交换或取得暂存映像表(bufferbit-map)。此外,能减少发出不必要的区块请求,亦有效地减低P2P的运作成本。也能透过自我调适并且快速收敛区块请求数量,使达理想P2P的效能。The system and method proposed in the above embodiments can increase the sharing rate of blocks among user equipments and reduce and balance the load of relay stations under the P2P network architecture. There is no need to exchange or obtain a bufferbit-map. In addition, unnecessary block requests can be reduced, and the operating cost of P2P can be effectively reduced. It can also achieve the ideal P2P performance through self-adjustment and rapid convergence of the number of block requests.
以上段落使用多种层面描述。显然的,本文的教示可以多种方式实现,而在范例中揭露的任何特定架构或功能仅为一代表性的状况。根据本文的教示,任何熟知此技艺的人士应理解在本文揭露的各层面可独立实作或两种以上的层面可以合并实作。举例说明,某种装置或某种方法可遵照前文中提到任何方式数目的层面来实作或实现。此外,一装置的实作或一种方法的实现可用任何其它架构、或功能性、又或架构及功能性附加于或不同于在前文所讨论的一种或多种层面上。The above paragraphs use various levels of description. Obviously, the teachings herein can be implemented in many ways, and any specific structure or function disclosed in the examples is only a representative situation. According to the teachings herein, anyone familiar with the art should understand that each aspect disclosed in this article can be implemented independently or two or more aspects can be implemented in combination. For example, a certain device or a certain method can be implemented or realized in any manner and number of levels mentioned above. Furthermore, the implementation of an apparatus or the realization of a method may have any other architecture, or functionality, or architecture and functionality that is additional to or different from one or more aspects discussed above.
虽然本发明已以实施例揭露如上,然其并非用以限定本发明,任何熟悉此项技艺者,在不脱离本发明的精神和范围内,当可做些许更动与润饰,因此本发明的保护范围当视所附的权利要求书所界定的范围为准。Although the present invention has been disclosed as above with the embodiments, it is not intended to limit the present invention. Anyone familiar with this art can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the present invention The scope of protection should be based on the scope defined by the appended claims.
Claims (18)
Applications Claiming Priority (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 |
TW100149471 | 2011-12-29 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103188337A CN103188337A (en) | 2013-07-03 |
CN103188337B true CN103188337B (en) | 2016-05-18 |
Family
ID=48679302
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210055480.2A Active CN103188337B (en) | 2011-12-29 | 2012-02-28 | Server, user equipment, method for selecting starting block address and method for determining block request number |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103188337B (en) |
TW (1) | TWI471001B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101471919A (en) * | 2007-12-29 | 2009-07-01 | 突触计算机系统(上海)有限公司 | Method and device for downloading slicing of equipment based on point-to-point transmission protocol |
CN101588381A (en) * | 2008-05-23 | 2009-11-25 | 宏达国际电子股份有限公司 | Streaming data playing method and electronic device executing same |
CN101742238A (en) * | 2008-11-26 | 2010-06-16 | 深圳市彪骐数码科技有限公司 | Streaming media on-demand method and device combining RTS with P2P |
CN101834801A (en) * | 2010-05-20 | 2010-09-15 | 哈尔滨工业大学 | Online Processing Method of Data Cache Sorting Based on Buffer Pool |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020046251A1 (en) * | 2001-03-09 | 2002-04-18 | Datacube, Inc. | Streaming memory controller |
US20070177595A1 (en) * | 2006-01-30 | 2007-08-02 | Mediatek Inc. | DTV decoding system and de-multiplexing method thereof |
US8832290B2 (en) * | 2007-02-23 | 2014-09-09 | Microsoft Corporation | Smart pre-fetching for peer assisted on-demand media |
US8281395B2 (en) * | 2009-01-07 | 2012-10-02 | Micron Technology, Inc. | Pattern-recognition processor with matching-data reporting module |
-
2011
- 2011-12-29 TW TW100149471A patent/TWI471001B/en active
-
2012
- 2012-02-28 CN CN201210055480.2A patent/CN103188337B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101471919A (en) * | 2007-12-29 | 2009-07-01 | 突触计算机系统(上海)有限公司 | Method and device for downloading slicing of equipment based on point-to-point transmission protocol |
CN101588381A (en) * | 2008-05-23 | 2009-11-25 | 宏达国际电子股份有限公司 | Streaming data playing method and electronic device executing same |
CN101742238A (en) * | 2008-11-26 | 2010-06-16 | 深圳市彪骐数码科技有限公司 | Streaming media on-demand method and device combining RTS with P2P |
CN101834801A (en) * | 2010-05-20 | 2010-09-15 | 哈尔滨工业大学 | Online Processing Method of Data Cache Sorting Based on Buffer Pool |
Also Published As
Publication number | Publication date |
---|---|
TW201328337A (en) | 2013-07-01 |
CN103188337A (en) | 2013-07-03 |
TWI471001B (en) | 2015-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11444994B2 (en) | Distributing communication of a data stream among multiple devices | |
JP6618552B2 (en) | Method and apparatus for multipath media transmission | |
US10142384B2 (en) | Distributing communication of a data stream among multiple devices | |
US10491657B2 (en) | Network acceleration method, apparatus and device based on router device | |
US8717890B2 (en) | Application, usage and radio link aware transport network scheduler | |
US10237315B2 (en) | Distributing communication of a data stream among multiple devices | |
CN104205884B (en) | Multicast broadcast multimedia service auxiliary content is distributed | |
TWI373945B (en) | Multimedia streaming transmission system and method thereof | |
US20160248826A1 (en) | Distributing communication of a data stream among multiple devices | |
GB2494245A (en) | Multi-stream communication | |
EP2989800B1 (en) | Data communication system and method | |
CN106612284B (en) | Streaming data transmission method and device | |
CN110620802B (en) | Load balancing method and device | |
JP2016517648A (en) | Internet Protocol (IP) Multimedia Subsystem (IMS) based Peer to Peer (P2P) content delivery | |
US9654329B2 (en) | Content distribution over a network | |
JP6774957B2 (en) | Methods and equipment for flexible broadcast services based on multimedia broadcast multicast services | |
WO2018113373A1 (en) | Data transmission method and device | |
WO2018195829A1 (en) | Redirection method, control plane network element, aggregation user plane network element, content server and terminal device | |
CN107231567B (en) | A message transmission method, device and system | |
CN103188337B (en) | Server, user equipment, method for selecting starting block address and method for determining block request number | |
CN106561053A (en) | Requesting And Receiving Media Stream Within Networked System | |
CN108574615A (en) | A content transmission method, device and system based on multipath MPTCP | |
CN107509218A (en) | An information transmission method, device and wireless communication system | |
CN109039928A (en) | Transmission method, device and the Wireless Fidelity router of data | |
US9374603B1 (en) | Systems and methods for providing content delivery over a backhaul link in a communication system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |