CN101789914B - Peer-to-peer communication device and method using peer-to-peer proxy service - Google Patents
Peer-to-peer communication device and method using peer-to-peer proxy service Download PDFInfo
- Publication number
- CN101789914B CN101789914B CN2009100029672A CN200910002967A CN101789914B CN 101789914 B CN101789914 B CN 101789914B CN 2009100029672 A CN2009100029672 A CN 2009100029672A CN 200910002967 A CN200910002967 A CN 200910002967A CN 101789914 B CN101789914 B CN 101789914B
- Authority
- CN
- China
- Prior art keywords
- peer
- point
- computer
- mentioned
- file
- 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
- 238000004891 communication Methods 0.000 title claims description 27
- 238000000034 method Methods 0.000 title claims description 26
- 238000012546 transfer Methods 0.000 claims abstract description 17
- 239000012634 fragment Substances 0.000 claims description 18
- 238000013519 translation Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 8
- 230000004044 response Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000007423 decrease Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
技术领域 technical field
本发明涉及点对点通信代理服务(peer-to-peer proxy service)技术,特别涉及一种运用点对点代理服务的点对点通信装置与方法。The present invention relates to point-to-point communication proxy service (peer-to-peer proxy service) technology, in particular to a point-to-point communication device and method using point-to-point proxy service.
背景技术 Background technique
近年来,使用点对点通信技术进行文件分享的应用受到广泛的使用,例如比特洪流(BitTorrent简称BT)和电骡(eMule)等通信协议,使用者可以很方便地由网际网络上的其他使用者下载取得想要的文件;点对点网络技术与传统下载方式不同之处在于,传统的下载方式(集中式)通常是由一位使用者通过其上传频宽分享文件给其他使用者,而当下载该分享文件的使用者越多时,会造成分享端的网络资源和系统资源吃紧,且每个下载端的使用者所分配到的下载频宽也越小;然而,在点对点通信技术架构下,以比特洪流为例,每个下载文件的使用者也同时扮演分享文件的角色,因此当下载同一分享文件的使用者越多时,每个下载端的使用者所能取得的下载资源就越多,由于上传的任务分散至每个下载使用者,因此解决了以往由单一使用者进行上传时的资源大量耗用问题。In recent years, applications using point-to-point communication technology for file sharing have been widely used, such as communication protocols such as BitTorrent (BT for short) and eMule (eMule), users can easily download and obtain from other users on the Internet The desired file; the difference between peer-to-peer network technology and the traditional download method is that the traditional download method (centralized) usually uses a user to upload bandwidth to share files with other users, and when downloading the shared file When there are more users, the network resources and system resources on the sharing end will be strained, and the download bandwidth allocated to each user on the download end will be smaller; Each user who downloads the file also plays the role of sharing the file at the same time, so when there are more users who download the same shared file, the more download resources each downloader user can obtain, because the uploading task is distributed to each downloading users, thus solving the problem of large resource consumption when uploading by a single user in the past.
虽然点对点通信技术解决了集中式通信技术的问题,使用点对点通信技术的应用服务所产生的连线数目远比其他应用服务来得多,因此对于广泛使用于一般中小型公司或家庭的网络地址(IP)分享器造成极大的负担。网络地址分享器使用了网络地址转换(Network Address Translation,NAT)的技术,在网络地址分享器所连接的私有网域(private network)中的计算机皆使用私有网络地址(private IP)来定址,当私有网域中的计算机需要连接上公众网域(public network)的计算机时,网络分组会经由网络地址分享器中的网络地址转换技术将私有网络地址转换成对外的公众网络地址(public IP)地址,因此网络地址分享器可视为一种网络网关器。在这个转换的过程中,网络网关器会建立一个网络地址转换表(NAT TranslationTable)用以记录每个网络连线的私有网络地址与公众网络地址的对应关系,包括来源网络地址(source IP)、来源端口(source port)、目的网络地址(destination IP)、目的端口(destination port)、混杂网络地址(mangled IP)、混杂端口(mangled port)、以及其它连线的标志等信息。图1是显示网络地址转换过程中的网络地址转换表内容的范例。在使用者操作网络应用程序时,每个分组皆必需通过查询该转换表才能找出目的位置。随着连线数目、分组数目等变因的增长,查表与转换带给该设备的负担必然会急速上升,进而导致网络网关器的效能明显下降。Although point-to-point communication technology solves the problem of centralized communication technology, the number of connections generated by application services using point-to-point communication technology is far more than other application services. ) sharer caused a great burden. The network address sharer uses Network Address Translation (NAT) technology, and the computers in the private network connected to the network address sharer all use private network addresses (private IP) to address. When a computer in the private network needs to connect to a computer in the public network, the network group will convert the private network address into an external public network address (public IP) address through the network address translation technology in the network address sharer , so the network address sharer can be regarded as a network gateway. During this conversion process, the network gateway will establish a network address translation table (NAT TranslationTable) to record the correspondence between the private network address and the public network address of each network connection, including the source network address (source IP), Source port (source port), destination network address (destination IP), destination port (destination port), mixed network address (mangled IP), mixed port (mangled port), and other connection signs and other information. FIG. 1 is an example showing the contents of the NAT table during the NAT process. When the user operates the network application program, each packet must query the conversion table to find the destination. With the increase of the number of connections, the number of groups, etc., the burden of table lookup and conversion on the device will inevitably increase rapidly, resulting in a significant decline in the performance of the network gateway.
图2是显示根据一模拟特洪流(BT-like)的点对点通信架构,位于一私有网域220的一计算机221根据所下载的洪流文件(torrent file)201向位于一公众网络210的一公众点对点追踪服务器(Tracker)212询问正在分享文件的计算机信息,根据公众点对点追踪服务器的回应得知计算机211正在分享其欲下载的文件,故建立与计算机211的连线并开始下载作业。连接公众网域210与私有网域220的一网络网关器230根据私有网域220下任一计算机的对外连线状况维护一网络地址转换表231,其中包括计算机221与计算机211的比特洪流连线信息。Fig. 2 shows that a
发明内容 Contents of the invention
根据本发明一实施例所述的一种网络网关装置,连接于一公众网域和一私有网域之间,包括一点对点超描述文件检测器,检测来自上述公众网域的一原始点对点超描述文件;一点对点代理服务器控制单元,接收来自上述点对点超描述文件检测器的上述原始点对点超描述文件,将上述原始点对点超描述文件中所记录的一点对点追踪服务器地址修改成一私有网络地址以产生一修改点对点超描述文件,以及将上述修改点对点超描述文件转送至一私有网域中的一第一计算机;一内部点对点追踪服务器,接收来自上述第一计算机的一第一询问信息,产生一伪分享计算机列表并将上述伪分享计算机列表回复给上述第一计算机;以及一点对点引擎,载入上述原始点对点超描述文件,接收来自上述第一计算机要求下载一被分享文件片段的一第一请求信息,根据上述原始点对点超描述文件下载上述被分享文件片段,以及将所下载的上述被分享文件片段转送至上述第一计算机。A network gateway device according to an embodiment of the present invention is connected between a public network domain and a private network domain, and includes a point-to-point hyperdescription file detector for detecting an original point-to-point hyperdescription file from the public network domain File; The point-to-point proxy server control unit receives the above-mentioned original point-to-point hyperdescription file from the above-mentioned point-to-point hyperdescription file detector, and modifies the point-to-point tracking server address recorded in the above-mentioned original point-to-point hyperdescription file into a private network address to generate a Modifying the peer-to-peer hyperdescription file, and transferring the modified peer-to-peer hyperdescription file to a first computer in a private network domain; an internal peer-to-peer tracking server, receiving a first query message from the first computer to generate a false share The computer list and the above-mentioned pseudo-shared computer list reply to the above-mentioned first computer; and the point-to-point engine loads the above-mentioned original point-to-point super description file, and receives a first request message from the above-mentioned first computer to download a shared file segment, downloading the above-mentioned shared file fragment according to the above-mentioned original peer-to-peer hyperdescription file, and transferring the downloaded above-mentioned shared file fragment to the above-mentioned first computer.
根据本发明另一实施例所述的一种网络网关装置,连接于一公众网域和一私有网域之间,包括一点对点超描述文件检测器,检测来自上述公众网域的一原始点对点超描述文件;一点对点代理服务器控制单元,接收来自上述点对点超描述文件检测器的上述原始点对点超描述文件,将上述原始点对点超描述文件中所记录的一点对点追踪服务器地址修改成一私有网络地址以产生一修改点对点超描述文件,以及将上述修改点对点超描述文件转送至一私有网域中的一第一计算机;一内部点对点追踪服务器,接收来自上述第一计算机的一第一询问信息,将一伪分享计算机列表回复给上述第一计算机,使得上述第一计算机根据上述伪分享计算机列表从上述第二计算机下载上述被分享文件片段;以及一点对点引擎,载入上述原始点对点超描述文件。According to another embodiment of the present invention, a network gateway device is connected between a public network domain and a private network domain, and includes a point-to-point hyperdescription file detector for detecting an original point-to-point hypertext file from the public network domain. Descriptor file: The point-to-point proxy server control unit receives the above-mentioned original point-to-point hyper-description file from the above-mentioned point-to-point hyper-description file detector, and modifies the point-to-point tracking server address recorded in the above-mentioned original point-to-point hyper-description file into a private network address to generate A modification of the point-to-point hyperdescription file, and transfer of the modified point-to-point hyperdescription file to a first computer in a private network domain; an internal point-to-point tracking server, receiving a first query message from the first computer, and sending a fake The sharing computer list is returned to the first computer, so that the first computer downloads the shared file segment from the second computer according to the pseudo-sharing computer list; and the peer-to-peer engine loads the original peer-to-peer hyperdescription file.
根据本发明另一实施例所述的一种在一网络网关装置中提供点对点伺服服务的点对点通信方法,其中上述网络网关装置连接于一公众网域和一私有网域之间,包括:检测来自上述公众网域的一原始点对点超描述文件;根据上述原始点对点超描述文件载入一点对点引擎;将上述原始点对点超描述文件中所记录的一点对点追踪服务器地址修改成一私有网络地址以产生一修改点对点超描述文件;将上述修改点对点超描述文件转送至一私有网域中的一第一计算机;接收来自上述第一计算机的一第一询问信息;将上述伪分享计算机列表回复给上述第一计算机;接收来自上述第一计算机要求下载一被分享文件片段的一第一请求信息;根据上述原始点对点超描述文件下载上述被分享文件片段;以及将所下载的上述被分享文件片段转送至上述第一计算机。According to another embodiment of the present invention, a point-to-point communication method for providing point-to-point server services in a network gateway device, wherein the above-mentioned network gateway device is connected between a public network domain and a private network domain, including: detecting An original peer-to-peer hyperdescription file of the above-mentioned public network domain; load the peer-to-peer engine according to the above-mentioned original peer-to-peer hyperdescription file; modify the address of the peer-to-peer tracking server recorded in the above-mentioned original peer-to-peer hyperdescription file into a private network address to generate a modification Point-to-point hyper-description file; transfer the above-mentioned modified point-to-point hyper-description file to a first computer in a private network domain; receive a first inquiry message from the above-mentioned first computer; reply the above-mentioned pseudo-sharing computer list to the above-mentioned first computer ; Receive a first request message from the above-mentioned first computer requesting to download a shared file segment; download the above-mentioned shared file segment according to the above-mentioned original point-to-point hyperdescription file; and transfer the downloaded above-mentioned shared file segment to the above-mentioned first computer.
关于本发明其他附加的特征与优点,部分将于实施方法中公开、部分可从实施方法中明显观察得到、部分则可由实施过程中习得。本发明的特征与优点将可由附属权利要求书所指出的要素与组合方法得以实现。Regarding other additional features and advantages of the present invention, some will be disclosed in the implementation methods, some can be clearly observed from the implementation methods, and some can be learned during the implementation process. The features and advantages of the invention will be realized by means of the elements and combinations pointed out in the appended claims.
上述发明内容和接下来的实施方法仅为本发明的范例与说明,然其并非用以限定本发明的范围,因此本发明的保护范围当视所附权利要求书所界定者为准。The above summary of the invention and the following implementation methods are only examples and descriptions of the present invention, but they are not intended to limit the scope of the present invention. Therefore, the scope of protection of the present invention should be defined by the appended claims.
附图说明 Description of drawings
图1是显示网络地址转换过程中的网络地址转换表内容的范例。FIG. 1 is an example showing the contents of the NAT table during the NAT process.
图2是显示根据一模拟特洪流的点对点通信架构。FIG. 2 shows a peer-to-peer communication architecture based on a simulated torrent.
图3是显示根据本发明一实施例所述在一网络网关装置中提供点对点代理服务的点对点通信方法。FIG. 3 is a diagram illustrating a peer-to-peer communication method for providing a peer-to-peer proxy service in a network gateway device according to an embodiment of the invention.
图4是显示根据本发明另一实施例所述在一网络网关装置中提供点对点代理服务的点对点通信方法。FIG. 4 is a diagram illustrating a peer-to-peer communication method for providing a peer-to-peer proxy service in a network gateway device according to another embodiment of the present invention.
图5是显示根据本发明在一网络网关装置中提供点对点代理服务的点对点通信方法流程图。FIG. 5 is a flowchart showing a peer-to-peer communication method for providing a peer-to-peer proxy service in a network gateway device according to the present invention.
【主要元件符号说明】[Description of main component symbols]
201~洪流文件;201~torrent file;
210、310~公众网络;210, 310~public network;
211、221、321、412、422~计算机;211, 221, 321, 412, 422~Computer;
220、320~私有网域;220, 320~private network domain;
230、330~网络网关器;230, 330 ~ network gateway;
231、336~网络地址转换表;231, 336 ~ network address translation table;
301~原始点对点超描述文件;301~Original point-to-point super description file;
302~修改点对点超描述文件;302~Modify the peer-to-peer hyper description file;
311~公众点对点追踪服务器;311~Public point-to-point tracking server;
331~点对点超描述文件检测器;331~point-to-point hyper-descriptor detector;
332~点对点代理服务器控制单元;332~point-to-point proxy server control unit;
333~点对点引擎;333~peer-to-peer engine;
334~内部点对点追踪服务器;334~internal point-to-point tracking server;
335~网络地址转换单元335 ~ network address translation unit
具体实施方式 Detailed ways
为使本发明的上述目的、特征和优点能更明显易懂,下文特举一些优选实施例,并配合附图,作详细说明如下:In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and understandable, some preferred embodiments are specially cited below, and in conjunction with the accompanying drawings, the detailed description is as follows:
图3是显示根据本发明一实施例所述在一网络网关装置中提供点对点代理服务(peer-to-peer proxy service)的点对点通信方法。在此实施例中,一网络网关器330连接于一公众网域310与一私有网域320之间,并具有一公众网络地址140.96.115.210和一私有网络地址192.168.0.1,且网络网关器330使用了点对点代理服务,将点对点类别的网络连线交给此点对点代理服务的相关元件去处理;网络网关器330包括一点对点超描述文件(P2Pmeta descriptor file)检测器331、一点对点代理服务器控制单元332、一内部点对点追踪服务器(internal tracker)334、一点对点引擎(peer-to-peerengine)333、以及一网络地址转换单元335。相较于图2的架构,图3中的网络地址转换表336就不再需要记录并维护众多的点对点连线信息了,因此可大幅减少网络地址转换表336的数据量。FIG. 3 is a diagram illustrating a peer-to-peer communication method for providing a peer-to-peer proxy service in a network gateway device according to an embodiment of the present invention. In this embodiment, a
根据图3,当私有网域320中的一计算机321试图执行点对点连线时,会从公众网域310下载一原始点对点超描述文件301,原始点对点超描述文件301包括被分享文件片段的信息和一点对点追踪服务器的网络地址及端口,网络网关器330中的点对点超描述文件检测器331会拦截原始点对点超描述文件301,并将之转送给点对点代理服务器控制单元332,点对点代理服务器控制单元332将此原始点对点超描述文件301转送给点对点引擎333,再将原始点对点超描述文件301中所记录的上述点对点追踪服务器的网络地址及端口(未绘示)修改为内部点对点追踪服务器334的代表网络地址及端口(即为网络网关器330的私有网络地址192.168.0.1:9786),以产生一修改点对点超描述文件302,然后将修改点对点超描述文件302转送给计算机321;同时,点对点引擎333载入修改点对点超描述文件302,并且向内部点对点追踪服务器334询问是否有其他计算机正在分享上述的文件,在本实施例中由于在私有网域320中并无其他计算机在分享上述文件,因此内部点对点追踪服务器334的伪分享计算机列表此时无任何记录。当点对点引擎333收到伪分享计算机列表后发现私有网域320中并无其他计算机在分享上述文件,点对点引擎333便回报内部点对点追踪服务器334其正在分享该文件,如此,内部点对点追踪服务器334更新伪分享计算机列表,加入点对点引擎333代表的网络地址192.168.0.1及端口(未绘示)。According to Fig. 3, when a
计算机321根据修改点对点超描述文件302所记录的上述点对点追踪服务器地址,送出一第一询问信息向内部点对点追踪服务器334询问分享中的计算机信息,由于点对点引擎333向内部点对点追踪服务器334表明正在分享文件中,故计算机321所收到的伪分享计算机列表信息便会含有点对点引擎333的网络地址192.168.0.1及端口(未绘示)。计算机321根据伪分享计算机列表内的信息,送出一第一请求信息向点对点引擎333要求下载上述被分享文件片段,点对点引擎333收到此请求信息时,根据原始点对点超描述文件301所记录的上述点对点追踪服务器地址,送出一外部询问信息向位于公众网域310的一公众点对点追踪服务器311询问分享中的计算机信息,并接收来自公众点对点追踪服务器311的一回应信息,该回应信息包括一真分享计算机列表;点对点引擎333根据上述真分享计算机列表开始下载上述被分享文件片段,再将所下载的被分享文件片段转送至计算机321。
补充说明的是,计算机321会周期性或非周期性的送出询问信息向内部点对点追踪服务器334询问正在分享文件的计算机信息,计算机321根据收到的伪分享计算机列表信息来得知正在分享文件的计算机是否仍在分享中。It should be added that the
在此实施例中,当计算机321已下载完被分享文件片段后,代表计算机321此时也可分享给其他计算机,则计算机321会向内部点对点追踪服务器334回报状态,则内部点对点追踪服务器334更新伪分享计算机列表,将计算机312的网络地址(192.168.0.3)与端口(未绘示)加入伪分享计算机列表。In this embodiment, after the
网络地址转换单元335针对除了上述外部询问信息、上述回应信息、以及所下载的上述被分享文件片段之外的所有来自或送往公众网域310的数据包(datagram)执行一网络地址转换程序,意即点对点通信类别的数据包不需要经过网络地址转换单元335的处理。The network
在其它实施例中,网络网关器330可具有多个私有网络地址,而使得内部点对点追踪服务器334与点对点引擎333能够分别使用不同私有网络地址为其代表网络地址。In other embodiments, the
图4是显示根据本发明另一实施例所述在一网络网关装置中提供点对点代理服务的点对点通信方法。在此实施例中,计算机321已通过如图3所示的点对点通信方法完成下载并处于分享中的状态,即内部点对点追踪服务器334内的伪分享计算机列表已含有计算机321的网络地址(192.168.0.3)与端口(未绘示)的信息。FIG. 4 is a diagram illustrating a peer-to-peer communication method for providing a peer-to-peer proxy service in a network gateway device according to another embodiment of the present invention. In this embodiment, the
当私有网域320中的另一计算机422也从公众网域310下载同一个原始点对点超描述文件301(或不同的点对点超描述文件但其内所记载的被分享文件是相同的),网络网关器330中的点对点超描述文件检测器331会拦截原始点对点超描述文件301,并将之转送给点对点代理服务器控制单元332,点对点代理服务器控制单元332将此原始点对点超描述文件转301送给点对点引擎333,再将原始点对点超描述文件301中所记录的上述点对点追踪服务器的网络地址122.116.223.113及端口(未绘示)修改为内部点对点追踪服务器334的网络地址及端口(未绘示)(即为网络网关器330的上述私有网络地址192.168.0.1:9786),以产生一修改点对点超描述文件302,然后将修改点对点超描述文件302转送给计算机422。When another
此时,点对点引擎333载入修改点对点超描述文件302,并且向内部点对点追踪服务器334询问是否有其他计算机正在分享上述的文件,在本实施例中由于私有网域320中已有计算机321正在分享该文件,点对点引擎333便不向内部点对点追踪服务器334回报任何讯息,故内部点对点追踪服务器334不需将点对点引擎333的网络地址192.168.0.1及端口信息更新至伪分享计算机列表。At this point, the peer-to-
计算机422通过网络网关器330收到修改点对点超描述文件302,并根据该修改点对点超描述文件302送出一第二询问信息向内部点对点追踪服务器334询问分享中的计算机信息,内部点对点追踪服务器334收到上述第二询问信息后,回传伪分享计算机列表于计算机422;在本实施例中,计算机422所接收到的伪分享计算机列表里含有计算机321的连线信息(192.168.0.3与端口(未绘示),即计算机321正在分享计算机422欲下载的上述被分享文件片段,进而开始向计算机321下载上述被分享文件片段。The
进一步说明的是,内部点对点追踪服务器334会主动或被动更新上述伪分享计算机列表,当点对点引擎333向内部点对点追踪服务器334询问并且得知私有网域320中已有其他计算机在分享上述被分享文件,点对点引擎333便向内部点对点追踪服务器334发出一停止分享的讯息,而内部点对点追踪服务器334亦会更新其伪分享计算机列表,将点对点引擎333的信息从上述伪分享计算机列表中删除;但当点对点引擎333通过向内部点对点追踪服务器334询问发现私有网域320中并不存在任何计算机正在分享上述文件,例如,计算机321离线或已删除文件,点对点引擎333便回报内部点对点追踪服务器334其正在分享该文件,如此,内部点对点追踪服务器334更新伪分享计算机列表,加入点对点引擎333代表的网络地址192.168.0.1及端口(未绘示)。It should be further explained that the internal point-to-
当计算机321停止分享,计算机422下载文件失败时,会向内部点对点追踪服务器334送出一第三询问信息,内部点对点追踪服务器334再将上述伪分享计算机列表回复给计算机422,然后计算机422再根据该伪分享计算机列表向点对点引擎333送出一第二请求信息要求下载上述被分享文件片段。点对点引擎333接收到此请求信息后,继续下载上述被分享文件片段,然后将所下载的上述被分享文件片段转送至计算机422。When the
此外,本发明的点对点代理服务机制亦能处理来自公众网域310的下载要求。位于公众网域310的计算机412能够通过公众点对点追踪服务器311得知网络网关器330的点对点引擎333正在分享上述被分享文件片段,因为在点对点通信架构中,每个下载被分享文件片段的计算机也同时上传被分享文件片段。于是计算机412送出一第三请求信息给点对点引擎333,要求下载上述被分享文件片段,此时,点对点引擎333会向内部点对点追踪服务器334询问私有网域320中是否有任何计算机正在分享上述被分享文件片段,内部点对点追踪服务器334回传伪分享计算机列表于点对点引擎333,如果有(即内部点对点追踪服务器334的伪分享计算机列表有私有网域320中正在分享上述被分享文件片段的计算机信息),点对点引擎333会再向私有网域320中正在分享上述被分享文件片段的计算机进行下载,并将所下载的上述被分享文件片段转送至计算机412。In addition, the point-to-point proxy service mechanism of the present invention can also handle download requests from the
网络地址转换单元335更针对除了上述外部询问信息、上述回应信息、以及所下载的上述被分享文件片段之外的所有来自或送往公众网域310的数据包(datagram)执行上述网络地址转换程序,意即点对点通信类别的数据包不需要经过网络地址转换单元335的处理。The network
图5是显示根据本发明在一网络网关装置中提供点对点代理服务的点对点通信方法流程图。根据图5,当一网络网关装置检测到一原始点对点超描述文件时(步骤S01),将上述原始点对点超描述文件载入一点对点引擎(步骤S02),修改上述原始点对点超描述文件以产生一修改点对点超描述文件(步骤S03),然后将上述修改点对点超描述文件转送至一私有网域计算机(步骤S04)。FIG. 5 is a flowchart showing a peer-to-peer communication method for providing a peer-to-peer proxy service in a network gateway device according to the present invention. According to Fig. 5, when an original point-to-point hyperdescription file is detected by a network gateway device (step S01), the above-mentioned original point-to-point hyperdescription file is loaded into the peer-to-peer engine (step S02), and the above-mentioned original point-to-point hyperdescription file is modified to produce a Modify the point-to-point hyperdescription file (step S03), and then transfer the modified point-to-point hyperdescription file to a private network domain computer (step S04).
点对点引擎通过修改点对点超描述文件向内部点对点追踪服务器询问,内部点对点追踪服务器回传伪分享计算机列表于点对点引擎,点对点引擎根据伪分享计算机列表判断是否有另一私有网域计算机正在分享上述询问信息中指示的被分享文件片段?(步骤S05),如果有,表示伪分享计算机列表中含有被分享文件片段的另一私有网域计算机信息,上述网络网关装置将伪分享计算机列表回应给上述私有网域计算机(步骤S06),而上述私有网域计算机则进一步从上述另一私有网域计算机下载上述被分享文件片段(步骤S07)。The peer-to-peer engine inquires the internal peer-to-peer tracking server by modifying the peer-to-peer super description file, and the internal peer-to-peer tracking server returns the pseudo-shared computer list to the peer-to-peer engine, and the peer-to-peer engine judges whether there is another private network domain computer sharing the above query information based on the pseudo-shared computer list The shared file fragment indicated in the ? (Step S05), if there is, it means that the pseudo-shared computer list contains another private network domain computer information of the shared file segment, and the above-mentioned network gateway device responds to the above-mentioned private network domain computer with the pseudo-shared computer list (step S06), and The above-mentioned private network domain computer further downloads the above-mentioned shared file segment from the above-mentioned another private network domain computer (step S07).
回到步骤S05,如果判断没有另一私有网域计算机正在分享上述询问信息中指示的被分享文件片段,则点对点引擎向内部点对点追踪服务器回传其状态为分享中,在内部点对点追踪服务器收到其回传的讯息后更新其伪分享计算机列表,将点对点引擎代表的网络地址及端口信息加入伪分享计算机列表中(步骤S08)。当下一次收到私有网域计算机询问信息时,内部点对点追踪服务器将伪分享计算机列表回应于私有网域计算机(步骤S09)。然后上述私有网域计算机根据上述伪分享计算机列表向上述网络网关装置送出一请求信息要求下载上述被分享文件片段,当上述网络网关装置收到上述请求信息时,根据上述原始点对点超描述文件下载上述被分享文件片段(步骤S10),将所下载的被分享文件片段转送至上述私有网域计算机(步骤S11)。Back to step S05, if it is judged that there is no other private network domain computer sharing the shared file segment indicated in the above query information, the peer-to-peer engine returns its status to the internal peer-to-peer tracking server as sharing, and the internal peer-to-peer tracking server receives After the message sent back, it updates its pseudo-sharing computer list, and adds the network address and port information represented by the peer-to-peer engine into the pseudo-sharing computer list (step S08). When receiving the query information from the computer in the private network domain next time, the internal point-to-point tracking server responds to the computer in the private network domain with the pseudo-shared computer list (step S09). Then the above-mentioned private network domain computer sends a request message to the above-mentioned network gateway device to download the above-mentioned shared file fragment according to the above-mentioned pseudo-sharing computer list. When the above-mentioned network gateway device receives the above-mentioned request information, it downloads the above-mentioned The shared file segment (step S10), and the downloaded shared file segment is transferred to the above-mentioned private network domain computer (step S11).
当一公众网域计算机通过一公众点对点追踪服务器得知上述网络网关器正在分享上述被分享文件片段,因为在点对点通信架构中,每个下载被分享文件片段的计算机也同时上传被分享文件片段。于是上述公众网域计算机送出一请求信息给上述网络网关器,要求下载上述被分享文件片段,上述网络网关器根据上述伪分享计算机列表中的信息向上述私有网域中正在分享上述被分享文件片段的计算机进行下载,并将所下载的上述被分享文件片段转送至上述公众网域计算机。When a public network domain computer learns that the above-mentioned network gateway is sharing the above-mentioned shared file fragment through a public peer-to-peer tracking server, because in the peer-to-peer communication architecture, each computer that downloads the shared file fragment also uploads the shared file fragment at the same time. Then the above-mentioned public network domain computer sends a request message to the above-mentioned network gateway to download the above-mentioned shared file fragment, and the above-mentioned network gateway is sharing the above-mentioned shared file fragment to the above-mentioned private network domain according to the information in the above-mentioned pseudo-sharing computer list computer to download, and transfer the downloaded above-mentioned shared file fragments to the above-mentioned public network domain computer.
本发明虽以范例公开如上,然其并非用以限定本发明的范围,本领域技术人员,在不脱离本发明的精神和范围内,当可做些许的更动与润饰,因此本发明的保护范围当视所附权利要求书所界定者为准。Although the present invention is disclosed as above with examples, it is not intended to limit the scope of the present invention. Those skilled in the art may make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection of the present invention The scope is to be determined as defined by the appended claims.
Claims (17)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100029672A CN101789914B (en) | 2009-01-23 | 2009-01-23 | Peer-to-peer communication device and method using peer-to-peer proxy service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100029672A CN101789914B (en) | 2009-01-23 | 2009-01-23 | Peer-to-peer communication device and method using peer-to-peer proxy service |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101789914A CN101789914A (en) | 2010-07-28 |
CN101789914B true CN101789914B (en) | 2012-07-18 |
Family
ID=42532974
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100029672A Active CN101789914B (en) | 2009-01-23 | 2009-01-23 | Peer-to-peer communication device and method using peer-to-peer proxy service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101789914B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117880550A (en) * | 2024-01-23 | 2024-04-12 | 广州虎牙科技有限公司 | Live broadcast stream transmission method and device and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1901540A (en) * | 2005-12-02 | 2007-01-24 | 陈勇 | Method for resolving P2P application problem |
CN1988661A (en) * | 2006-12-21 | 2007-06-27 | 成都金山数字娱乐科技有限公司 | Using and transmitting method in game vide frequency |
-
2009
- 2009-01-23 CN CN2009100029672A patent/CN101789914B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1901540A (en) * | 2005-12-02 | 2007-01-24 | 陈勇 | Method for resolving P2P application problem |
CN1988661A (en) * | 2006-12-21 | 2007-06-27 | 成都金山数字娱乐科技有限公司 | Using and transmitting method in game vide frequency |
Also Published As
Publication number | Publication date |
---|---|
CN101789914A (en) | 2010-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI384812B (en) | Apparatus and method for providing peer-to-peer proxy service with temporary storage management and traffic load balancing mechanism in peer-to-peer communication | |
US9608957B2 (en) | Request routing using network computing components | |
US8032583B2 (en) | Apparatus and method for providing peer-to-peer proxy services in peer-to-peer communications | |
EP2266064B1 (en) | Request routing | |
US9800539B2 (en) | Request routing management based on network components | |
JP5050095B2 (en) | Method, system, and node for P2P content sharing | |
US8082290B2 (en) | Intelligent establishment of peer-to-peer communication | |
US8244867B2 (en) | System and method for the location of caches | |
US8959243B2 (en) | System and method to guide active participation in peer-to-peer systems with passive monitoring environment | |
WO2012075853A1 (en) | Peer-to-peer communication method, apparatus, and system | |
CN101146130A (en) | A method and system for transmitting data between clients | |
CN101789914B (en) | Peer-to-peer communication device and method using peer-to-peer proxy service | |
US8832281B2 (en) | Utilizing resources of a peer-to-peer computer environment | |
CN101789913B (en) | Proxy service device and method using temporary storage management and data transmission load balancing | |
US20120117192A1 (en) | Information Processing System and Method Providing a Remote Access |
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 |