[go: up one dir, main page]

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 PDF

Info

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
Application number
CN2009100029672A
Other languages
Chinese (zh)
Other versions
CN101789914A (en
Inventor
刘炳传
李宗杰
阮大洋
孙明福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial Technology Research Institute ITRI
Original Assignee
Industrial Technology Research Institute ITRI
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 Industrial Technology Research Institute ITRI filed Critical Industrial Technology Research Institute ITRI
Priority to CN2009100029672A priority Critical patent/CN101789914B/en
Publication of CN101789914A publication Critical patent/CN101789914A/en
Application granted granted Critical
Publication of CN101789914B publication Critical patent/CN101789914B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

A network gateway apparatus. The point-to-point hyper-description file detector detects an original point-to-point hyper-description file from the public network domain. The point-to-point proxy server control unit modifies the original point-to-point hyper-description file to generate a modified point-to-point hyper-description file, and transfers the modified point-to-point hyper-description file to a computer in the private network domain. The internal point-to-point tracking server receives the first inquiry information and replies the pseudo sharing computer list to the computer. The peer-to-peer engine loads an original peer-to-peer hyper-description file, downloads the shared file segments, and forwards the downloaded shared file segments to the computer.

Description

运用点对点代理服务的点对点通信装置与方法Peer-to-peer communication device and method using peer-to-peer proxy service

技术领域 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 computer 221 located in a private network domain 220 communicates with a public peer-to-peer network located in a public network 210 according to a simulated torrent (torrent file) 201 The tracking server (Tracker) 212 inquires about the information of the computer that is sharing the file. According to the response from the public point-to-point tracking server, it knows that the computer 211 is sharing the file it wants to download, so it establishes a connection with the computer 211 and starts the download operation. A network gateway 230 connecting the public network domain 210 and the private network domain 220 maintains a network address translation table 231 according to the external connection status of any computer in the private network domain 220, including the Bittorrent connection between the computer 221 and the computer 211 information.

发明内容 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 network gateway 330 is connected between a public network domain 310 and a private network domain 320, and has a public network address 140.96.115.210 and a private network address 192.168.0.1, and the network gateway 330 The point-to-point proxy service is used, and the network connection of the point-to-point category is handed over to the relevant elements of the point-to-point proxy service for processing; the network gateway 330 includes a point-to-point super description file (P2Pmeta descriptor file) detector 331, a point-to-point proxy server control unit 332, an internal point-to-point tracking server (internal tracker) 334, a point-to-point engine (peer-to-peerengine) 333, and a network address translation unit 335. Compared with the architecture in FIG. 2 , the NAT table 336 in FIG. 3 does not need to record and maintain numerous point-to-point connection information, so the data volume of the NAT table 336 can be greatly reduced.

根据图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 computer 321 in the private network domain 320 attempts to perform a peer-to-peer connection, it will download an original peer-to-peer hyperdescription file 301 from the public domain 310, and the original peer-to-peer hyperdescription file 301 includes the information of the shared file segment and The network address and the port of the point-to-point tracking server, the point-to-point hyperdescription file detector 331 in the network gateway 330 can intercept the original point-to-point hyperdescription file 301, and forward it to the point-to-point proxy server control unit 332, the point-to-point proxy server control unit 332 This original point-to-point hyperdescription file 301 is forwarded to the point-to-point engine 333, and then the network address and port (not shown) of the above-mentioned point-to-point tracking server recorded in the original point-to-point hyperdescription file 301 are modified to the representative network of the internal point-to-point tracking server 334 Address and port (being the private network address 192.168.0.1:9786 of the network gateway device 330), to generate a modified point-to-point hyperdescription file 302, then the modified point-to-point hyperdescription file 302 is transferred to the computer 321; meanwhile, the point-to-point engine 333 loads Enter and modify the point-to-point hyperdescription file 302, and ask whether other computers are sharing the above-mentioned files to the internal point-to-point tracking server 334. In this embodiment, because there are no other computers in the private network domain 320. The pseudo-sharing computer list of the tracking server 334 does not have any records at this time. When the peer-to-peer engine 333 receives the pseudo-sharing computer list and finds that there are no other computers in the private network domain 320 to share the above-mentioned files, the peer-to-peer engine 333 reports to the internal peer-to-peer tracking server 334 that it is sharing the file, so that the internal peer-to-peer tracking server 334 updates Pseudo-sharing computer list, add the network address 192.168.0.1 and port (not shown) represented by the peer-to-peer engine 333.

计算机321根据修改点对点超描述文件302所记录的上述点对点追踪服务器地址,送出一第一询问信息向内部点对点追踪服务器334询问分享中的计算机信息,由于点对点引擎333向内部点对点追踪服务器334表明正在分享文件中,故计算机321所收到的伪分享计算机列表信息便会含有点对点引擎333的网络地址192.168.0.1及端口(未绘示)。计算机321根据伪分享计算机列表内的信息,送出一第一请求信息向点对点引擎333要求下载上述被分享文件片段,点对点引擎333收到此请求信息时,根据原始点对点超描述文件301所记录的上述点对点追踪服务器地址,送出一外部询问信息向位于公众网域310的一公众点对点追踪服务器311询问分享中的计算机信息,并接收来自公众点对点追踪服务器311的一回应信息,该回应信息包括一真分享计算机列表;点对点引擎333根据上述真分享计算机列表开始下载上述被分享文件片段,再将所下载的被分享文件片段转送至计算机321。Computer 321 sends a first query message to the internal point-to-point tracking server 334 to inquire about the computer information in sharing according to the above-mentioned point-to-point tracking server address recorded in the point-to-point super description file 302. In the file, the fake shared computer list information received by the computer 321 will contain the network address 192.168.0.1 and the port (not shown) of the peer-to-peer engine 333 . The computer 321 sends a first request message to the peer-to-peer engine 333 according to the information in the pseudo-sharing computer list, and requests to download the above-mentioned shared file segment. Point-to-point tracking server address, send an external inquiry message to a public point-to-point tracking server 311 located in the public network domain 310 to inquire about the computer information in sharing, and receive a response message from the public point-to-point tracking server 311, the response information includes a true share Computer list; the peer-to-peer engine 333 starts to download the above-mentioned shared file segments according to the above-mentioned true sharing computer list, and then transfers the downloaded shared file segments to the computer 321 .

补充说明的是,计算机321会周期性或非周期性的送出询问信息向内部点对点追踪服务器334询问正在分享文件的计算机信息,计算机321根据收到的伪分享计算机列表信息来得知正在分享文件的计算机是否仍在分享中。It should be added that the computer 321 will periodically or non-periodically send inquiry information to the internal point-to-point tracking server 334 to inquire about the computer information that is sharing the file, and the computer 321 will know the computer that is sharing the file according to the received pseudo-sharing computer list information Is it still being shared.

在此实施例中,当计算机321已下载完被分享文件片段后,代表计算机321此时也可分享给其他计算机,则计算机321会向内部点对点追踪服务器334回报状态,则内部点对点追踪服务器334更新伪分享计算机列表,将计算机312的网络地址(192.168.0.3)与端口(未绘示)加入伪分享计算机列表。In this embodiment, after the computer 321 has downloaded the shared file segment, the representative computer 321 can also share it with other computers at this time, then the computer 321 will report the status to the internal point-to-point tracking server 334, and the internal point-to-point tracking server 334 will update For the pseudo-shared computer list, add the network address (192.168.0.3) and port (not shown) of the computer 312 into the pseudo-shared computer list.

网络地址转换单元335针对除了上述外部询问信息、上述回应信息、以及所下载的上述被分享文件片段之外的所有来自或送往公众网域310的数据包(datagram)执行一网络地址转换程序,意即点对点通信类别的数据包不需要经过网络地址转换单元335的处理。The network address translation unit 335 executes a network address translation program for all datagrams from or to the public network domain 310 except the above-mentioned external inquiry information, the above-mentioned response information, and the downloaded above-mentioned shared file segments, That is, data packets of the point-to-point communication type do not need to be processed by the NAT unit 335 .

在其它实施例中,网络网关器330可具有多个私有网络地址,而使得内部点对点追踪服务器334与点对点引擎333能够分别使用不同私有网络地址为其代表网络地址。In other embodiments, the network gateway 330 may have multiple private network addresses, so that the internal P2P tracking server 334 and the P2P engine 333 can respectively use different private network addresses as their representative network addresses.

图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 computer 321 has completed the download through the point-to-point communication method as shown in Figure 3 and is in the state of sharing, that is, the pseudo-sharing computer list in the internal point-to-point tracking server 334 already contains the network address of the computer 321 (192.168. 0.3) and port (not shown) information.

当私有网域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 computer 422 in the private network domain 320 also downloads the same original point-to-point hyperdescription file 301 (or different point-to-point hyperdescription files but the shared files recorded therein are identical) from the public network domain 310, the network gateway The point-to-point hyperdescription file detector 331 in the device 330 can intercept the original point-to-point hyperdescription file 301, and transfer it to the point-to-point proxy server control unit 332, and the point-to-point proxy server control unit 332 transfers the original point-to-point hyperdescription file 301 to the point-to-point Engine 333, then the network address 122.116.223.113 and the port (not shown) of the above-mentioned point-to-point tracking server recorded in the original point-to-point hyperdescription file 301 are modified to the network address and port (not shown) of the internal point-to-point tracking server 334 ( That is, the above-mentioned private network address 192.168.0.1:9786 of the network gateway 330) to generate a modified point-to-point hyperdescription file 302, and then transfer the modified point-to-point hyperdescription file 302 to the computer 422.

此时,点对点引擎333载入修改点对点超描述文件302,并且向内部点对点追踪服务器334询问是否有其他计算机正在分享上述的文件,在本实施例中由于私有网域320中已有计算机321正在分享该文件,点对点引擎333便不向内部点对点追踪服务器334回报任何讯息,故内部点对点追踪服务器334不需将点对点引擎333的网络地址192.168.0.1及端口信息更新至伪分享计算机列表。At this point, the peer-to-peer engine 333 loads and modifies the peer-to-peer hyperdescription file 302, and asks the internal peer-to-peer tracking server 334 whether other computers are sharing the above-mentioned files. With this file, the peer-to-peer engine 333 does not report any information to the internal peer-to-peer tracking server 334, so the internal peer-to-peer tracking server 334 does not need to update the network address 192.168.0.1 and port information of the peer-to-peer engine 333 to the pseudo-sharing computer list.

计算机422通过网络网关器330收到修改点对点超描述文件302,并根据该修改点对点超描述文件302送出一第二询问信息向内部点对点追踪服务器334询问分享中的计算机信息,内部点对点追踪服务器334收到上述第二询问信息后,回传伪分享计算机列表于计算机422;在本实施例中,计算机422所接收到的伪分享计算机列表里含有计算机321的连线信息(192.168.0.3与端口(未绘示),即计算机321正在分享计算机422欲下载的上述被分享文件片段,进而开始向计算机321下载上述被分享文件片段。The computer 422 receives the revised peer-to-peer hyperdescription file 302 through the network gateway 330, and sends a second query message to the internal peer-to-peer tracking server 334 to inquire about the shared computer information according to the modified peer-to-peer hyper-description file 302, and the internal peer-to-peer tracking server 334 receives After receiving the above-mentioned second query information, return the fake shared computer list to the computer 422; in this embodiment, the fake shared computer list received by the computer 422 contains the connection information of the computer 321 (192.168. ), that is, the computer 321 is sharing the above-mentioned shared file segment that the computer 422 wants to download, and then starts to download the above-mentioned shared file segment to the computer 321.

进一步说明的是,内部点对点追踪服务器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-point tracking server 334 will actively or passively update the list of pseudo-shared computers. , the peer-to-peer engine 333 will send a message of stopping sharing to the internal peer-to-peer tracking server 334, and the internal peer-to-peer tracking server 334 will also update its pseudo-sharing computer list, and the information of the peer-to-peer engine 333 will be deleted from the above-mentioned pseudo-sharing computer list; but when The peer-to-peer engine 333 finds that there is no computer sharing the above-mentioned files in the private network domain 320 by asking the internal peer-to-peer tracking server 334. For example, the computer 321 is offline or has deleted the file, and the peer-to-peer engine 333 will report to the internal peer-to-peer tracking server 334 that it is sharing This file, so that the internal peer-to-peer tracking server 334 updates the fake shared computer list, adding the network address 192.168.0.1 and port (not shown) represented by the peer-to-peer engine 333 .

当计算机321停止分享,计算机422下载文件失败时,会向内部点对点追踪服务器334送出一第三询问信息,内部点对点追踪服务器334再将上述伪分享计算机列表回复给计算机422,然后计算机422再根据该伪分享计算机列表向点对点引擎333送出一第二请求信息要求下载上述被分享文件片段。点对点引擎333接收到此请求信息后,继续下载上述被分享文件片段,然后将所下载的上述被分享文件片段转送至计算机422。When the computer 321 stops sharing and the computer 422 fails to download the file, it will send a third inquiry message to the internal point-to-point tracking server 334, and the internal point-to-point tracking server 334 will reply the above-mentioned false sharing computer list to the computer 422, and then the computer 422 according to the The pseudo-sharing computer list sends a second request message to the peer-to-peer engine 333 to request downloading of the above-mentioned shared file segment. After receiving the request information, the peer-to-peer engine 333 continues to download the above-mentioned shared file fragments, and then transfers the downloaded above-mentioned shared file fragments to the computer 422 .

此外,本发明的点对点代理服务机制亦能处理来自公众网域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 public network domain 310 . The computer 412 located in the public network domain 310 can know that the peer-to-peer engine 333 of the network gateway 330 is sharing the above-mentioned shared file segment through the public peer-to-peer tracking server 311, because in the peer-to-peer communication architecture, each computer that downloads the shared file segment also At the same time upload the shared file fragment. Then the computer 412 sends a third request message to the peer-to-peer engine 333, requesting to download the above-mentioned shared file segment. At this time, the peer-to-peer engine 333 will ask the internal peer-to-peer tracking server 334 whether any computer is sharing the above-mentioned shared file in the private network domain 320 For file fragments, the internal point-to-point tracking server 334 returns the pseudo-sharing computer list to the peer-to-peer engine 333, if there is (that is, the pseudo-sharing computer list of the internal point-to-point tracking server 334 has the computer information that is sharing the above-mentioned shared file fragments in the private network domain 320) , the peer-to-peer engine 333 will then download to the computer in the private network domain 320 that is sharing the above-mentioned shared file segment, and transfer the downloaded above-mentioned shared file segment to the computer 412 .

网络地址转换单元335更针对除了上述外部询问信息、上述回应信息、以及所下载的上述被分享文件片段之外的所有来自或送往公众网域310的数据包(datagram)执行上述网络地址转换程序,意即点对点通信类别的数据包不需要经过网络地址转换单元335的处理。The network address translation unit 335 executes the above-mentioned network address translation program for all data packets (datagram) from or sent to the public network domain 310 except the above-mentioned external query information, the above-mentioned response information, and the downloaded above-mentioned shared file segments. , which means that the data packets of the point-to-point communication type do not need to be processed by the NAT unit 335 .

图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)

1.一种网络网关装置,连接于一公众网域和一私有网域之间,包括:1. A network gateway device, connected between a public network domain and a private network domain, comprising: 一点对点超描述文件检测器,检测来自上述公众网域的一原始点对点超描述文件,该原始点对点超描述文件包括被分享文件片段的信息和一点对点追踪服务器地址和端口;A peer-to-peer hyperdescription file detector detects an original peer-to-peer hyperdescription file from the above-mentioned public domain, and the original peer-to-peer hyperdescription file includes the information of the shared file segment and the address and port of the peer-to-peer tracking server; 一点对点代理服务器控制单元,接收来自上述点对点超描述文件检测器的上述原始点对点超描述文件,将该原始点对点超描述文件转送给点对点引擎,再将上述原始点对点超描述文件中所记录的点对点追踪服务器地址和端口修改成内部点对点追踪服务器的私有网络地址和端口以产生一修改点对点超描述文件,以及将上述修改点对点超描述文件转送至一私有网域中的一第一计算机;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, forwards the original point-to-point hyper-description file to the point-to-point engine, and then sends the point-to-point tracing recorded in the above-mentioned original point-to-point hyper-description file Modifying the server address and port to the private network address and port of the internal point-to-point tracking server to generate a modified point-to-point hyperdescription file, and transferring 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 inquiry message from the first computer, and replying a list of pseudo-shared computers to the first computer; and 一点对点引擎,载入上述原始点对点超描述文件,当上述伪分享计算机列表无任何记录时,该点对点引擎回报上述内部点对点追踪服务器正在分享上述被分享文件片段,则上述内部点对点追踪服务器将上述点对点引擎代表的信息更新至上述伪分享计算机列表,该点对点引擎接收来自上述第一计算机要求下载该被分享文件片段的一第一请求信息,根据上述原始点对点超描述文件下载上述被分享文件片段,以及将所下载的上述被分享文件片段转送至上述第一计算机,The point-to-point engine loads the above-mentioned original point-to-point super description file. When there is no record in the above-mentioned pseudo-sharing computer list, the point-to-point engine reports that the above-mentioned internal point-to-point tracking server is sharing the above-mentioned shared file fragment, then the above-mentioned internal point-to-point tracking server will share the above-mentioned point-to-point The information represented by the engine is updated to the above-mentioned pseudo-sharing computer list, the peer-to-peer engine receives a first request message from the above-mentioned first computer to download the shared file segment, and downloads the above-mentioned shared file segment according to the above-mentioned original peer-to-peer hyperdescription file, and transferring the downloaded above-mentioned shared file fragments to the above-mentioned first computer, 其中上述伪分享计算机列表是正在分享上述被分享文件片段的计算机的列表。Wherein the above-mentioned pseudo-sharing computer list is a list of computers that are sharing the above-mentioned shared file segment. 2.如权利要求1所述的网络网关装置,其中当上述第一计算机已下载完上述被分享文件片段后,则上述内部点对点追踪服务器将上述第一计算机代表的信息更新至上述伪分享计算机列表。2. The network gateway device according to claim 1, wherein when the first computer has downloaded the shared file segment, the internal point-to-point tracking server updates the information represented by the first computer to the pseudo-shared computer list . 3.如权利要求2所述的网络网关装置,其中上述点对点代理服务器控制单元还将上述修改点对点超描述文件转送至上述私有网域中的一第二计算机。3. The network gateway device as claimed in claim 2, wherein the point-to-point proxy server control unit also forwards the modified point-to-point hyperdescription file to a second computer in the private network domain. 4.如权利要求3所述的网络网关装置,其中上述内部点对点追踪服务器还接收来自上述第二计算机的一第二询问信息,将上述伪分享计算机列表回复给上述第二计算机,使得上述第二计算机从上述第一计算机下载上述被分享文件片段。4. The network gateway device as claimed in claim 3, wherein said internal point-to-point tracking server also receives a second inquiry message from said second computer, and replies the list of pseudo-shared computers to said second computer, so that said second The computer downloads the above-mentioned shared file segment from the above-mentioned first computer. 5.如权利要求3所述的网络网关装置,其中上述第一计算机停止分享上述被分享文件片段时,上述内部点对点追踪服务器将上述点对点引擎代表的信息更新至上述伪分享计算机列表,上述内部点对点追踪服务器接收到来自上述第二计算机的一第三询问信息时将上述伪分享计算机列表回复给上述第二计算机。5. The network gateway device as claimed in claim 3, wherein when the first computer stops sharing the shared file segment, the internal peer-to-peer tracking server updates the information represented by the peer-to-peer engine to the list of pseudo-sharing computers, and the internal peer-to-peer When the tracking server receives a third inquiry message from the second computer, it replies the fake sharing computer list to the second computer. 6.如权利要求5所述的网络网关装置,其中上述点对点引擎还接收来自上述第二计算机要求下载上述被分享文件片段的一第二请求信息,根据上述原始点对点超描述文件下载上述被分享文件片段,并且将所下载的上述被分享文件片段转送至上述第二计算机。6. The network gateway device as claimed in claim 5, wherein the peer-to-peer engine also receives a second request message from the second computer for downloading the segment of the shared file, and downloads the shared file according to the original peer-to-peer hyperdescription file segment, and transfer the downloaded segment of the shared file to the second computer. 7.如权利要求2所述的网络网关装置,其中上述点对点引擎还接收来自上述公众网域的一第三计算机要求下载上述被分享文件片段的一第三请求信息,上述点对点引擎根据上述内部点对点追踪服务器回传的上述伪分享计算机列表向正在分享上述被分享文件片段的上述第一计算机进行下载,并将所下载的上述被分享文件片段转送至上述第三计算机。7. The network gateway device as claimed in claim 2, wherein the peer-to-peer engine also receives a third request message from a third computer in the public network domain to download the segment of the shared file, and the peer-to-peer engine according to the internal peer-to-peer The above-mentioned fake sharing computer list returned by the tracking server is downloaded to the above-mentioned first computer that is sharing the above-mentioned shared file segment, and the downloaded above-mentioned shared file segment is transferred to the above-mentioned third computer. 8.一种网络网关装置,连接于一公众网域和一私有网域之间,包括:8. A network gateway device connected between a public network domain and a private network domain, comprising: 一点对点超描述文件检测器,检测来自一公众网域的一原始点对点超描述文件,该原始点对点超描述文件包括被分享文件片段的信息和一点对点追踪服务器地址和端口;A peer-to-peer hyperdescription file detector detects an original peer-to-peer hyperdescription file from a public network domain, and the original peer-to-peer hyperdescription file includes the information of the shared file segment and the address and port of the peer-to-peer tracking server; 一点对点代理服务器控制单元,接收来自上述点对点超描述文件检测器的上述原始点对点超描述文件,将该原始点对点超描述文件转送给点对点引擎,再将上述原始点对点超描述文件中所记录的点对点追踪服务器地址和端口修改成内部点对点追踪服务器的私有网络地址和端口以产生一修改点对点超描述文件,以及将上述修改点对点超描述文件转送至上述私有网域中的一第一计算机;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, forwards the original point-to-point hyper-description file to the point-to-point engine, and then sends the point-to-point tracing recorded in the above-mentioned original point-to-point hyper-description file Modifying the server address and port to the private network address and port of the internal point-to-point tracking server to generate a modified point-to-point hyperdescription file, and transferring the modified point-to-point hyperdescription file to a first computer in the above-mentioned private network domain; 一内部点对点追踪服务器,接收来自上述第一计算机的一第一询问信息,将一伪分享计算机列表回复给上述第一计算机,使得上述第一计算机从上述伪分享计算机列表中包括的一第二计算机下载上述被分享文件片段;以及An internal point-to-point tracking server, which receives a first inquiry message from the first computer, and replies a pseudo-shared computer list to the first computer, so that the first computer can obtain information from a second computer included in the pseudo-shared computer list. Download the above-mentioned fragment of the shared file; and 一点对点引擎,载入上述原始点对点超描述文件,Peer-to-peer engine, load the above original peer-to-peer hyperdescription file, 其中上述伪分享计算机列表是正在分享上述被分享文件片段的计算机的列表。Wherein the above-mentioned pseudo-sharing computer list is a list of computers that are sharing the above-mentioned shared file segment. 9.如权利要求8所述的网络网关装置,其中上述内部点对点追踪服务器当检测到上述第二计算机停止分享上述被分享文件片段时,上述内部点对点追踪服务器将上述点对点引擎代表的信息更新至上述伪分享计算机列表,上述内部点对点追踪服务器接收到来自上述第一计算机的一第二询问信息时将上述伪分享计算机列表回复给上述第一计算机。9. The network gateway device as claimed in claim 8, wherein when the internal peer-to-peer tracking server detects that the second computer stops sharing the shared file segment, the internal peer-to-peer tracking server updates the information represented by the peer-to-peer engine to the above-mentioned A list of pseudo-sharing computers. When the internal point-to-point tracking server receives a second inquiry message from the first computer, it replies the list of pseudo-sharing computers to the first computer. 10.如权利要求9所述的网络网关装置,其中上述点对点引擎还接收来自上述第一计算机要求下载上述被分享文件片段的一第一请求信息,根据上述原始点对点超描述文件下载上述被分享文件片段,以及将所下载的上述被分享文件片段转送至上述第一计算机。10. The network gateway device as claimed in claim 9, wherein the peer-to-peer engine also receives a first request message from the first computer to download the segment of the shared file, and downloads the shared file according to the original peer-to-peer hyperdescription file segment, and transfer the downloaded segment of the shared file to the first computer. 11.如权利要求8所述的网络网关装置,其中上述点对点引擎还接收来自上述公众网域的一第三计算机要求下载上述被分享文件片段的一第二请求信息,上述点对点引擎根据上述内部点对点追踪服务器回传的上述伪分享计算机列表向正在分享上述被分享文件片段的计算机进行下载,并将所下载的上述被分享文件片段转送至上述第三计算机。11. The network gateway device as claimed in claim 8, wherein the peer-to-peer engine also receives a second request message from a third computer in the public network domain to download the segment of the shared file, and the peer-to-peer engine according to the internal peer-to-peer The above-mentioned pseudo-sharing computer list returned by the tracking server is downloaded to the computer that is sharing the above-mentioned shared file segment, and the downloaded above-mentioned shared file segment is transferred to the above-mentioned third computer. 12.一种在一网络网关装置中提供点对点伺服服务的点对点通信方法,其中上述网络网关装置连接于一公众网域和一私有网域之间,包括:12. A point-to-point communication method for providing point-to-point server services in a network gateway device, wherein the network gateway device is connected between a public network domain and a private network domain, comprising: 检测来自上述公众网域的一原始点对点超描述文件,该原始点对点超描述文件包括被分享文件片段的信息和一点对点追踪服务器地址和端口;Detect an original peer-to-peer hyperdescription file from the above-mentioned public network domain, the original peer-to-peer hyperdescription file includes the information of the shared file segment and the address and port of the peer-to-peer tracking server; 将上述原始点对点超描述文件载入一点对点引擎;Load the above original peer-to-peer hyperdescription file into the peer-to-peer engine; 将上述原始点对点超描述文件中所记录的点对点追踪服务器地址和端口修改成该网络网关装置的私有网络地址和端口以产生一修改点对点超描述文件;Modify the point-to-point tracking server address and port recorded in the original point-to-point hyperdescription file to the private network address and port of the network gateway device to generate a modified point-to-point hyperdescription file; 将上述修改点对点超描述文件转送至上述私有网域中的一第一计算机;Transfer the modified peer-to-peer hyperdescription file to a first computer in the private network domain; 接收来自上述第一计算机的一第一询问信息;receiving a first query message from the first computer; 根据一伪分享计算机列表判断在上述私有网域中是否有一第二计算机正在分享上述第一计算机要求下载的一被分享文件片段;Judging whether a second computer in the above-mentioned private network domain is sharing a shared file segment requested by the first computer to download according to a pseudo-sharing computer list; 如果判断在上述私有网域中有一第二计算机正在分享该被分享文件片段,则执行以下步骤:If it is determined that a second computer is sharing the shared file segment in the above-mentioned private network domain, then perform the following steps: 一内部点对点追踪服务器将上述伪分享计算机列表回复给上述第一计算机;An internal point-to-point tracking server replies the above-mentioned fake sharing computer list to the above-mentioned first computer; 所述第一计算机从该第二计算机下载上述被分享文件片段;以及The first computer downloads the above-mentioned shared file segment from the second computer; and 如果判断没有上述第二计算机正在分享上述被分享文件片段,则执行以下步骤:If it is judged that none of the above-mentioned second computers is sharing the above-mentioned shared file segment, then perform the following steps: 上述点对点引擎回报所述内部点对点追踪服务器正在分享上述被分享文件片段,则上述内部点对点追踪服务器将上述点对点引擎代表的信息更新至上述伪分享计算机列表;When the peer-to-peer engine reports that the internal peer-to-peer tracking server is sharing the shared file segment, the internal peer-to-peer tracking server updates the information represented by the peer-to-peer engine to the pseudo-sharing computer list; 将上述伪分享计算机列表回复给上述第一计算机;Reply the above-mentioned pseudo-sharing computer list to the above-mentioned first computer; 当接收来自上述第一计算机要求下载上述被分享文件片段的一第一请求信息时,上述点对点引擎根据上述原始点对点超描述文件下载上述被分享文件片段;以及When receiving a first request from the first computer to download the shared file segment, the peer-to-peer engine downloads the shared file segment according to the original peer-to-peer hyperdescription file; and 将所下载的上述被分享文件片段转送至上述第一计算机。and transferring the downloaded segment of the shared file to the first computer. 13.如权利要求12所述的点对点通信方法,还包括将上述修改点对点超描述文件转送至上述私有网域中的一第三计算机。13. The peer-to-peer communication method according to claim 12, further comprising transferring the modified peer-to-peer hyperdescription file to a third computer in the private network domain. 14.如权利要求13所述的点对点通信方法,还包括接收来自上述第三计算机的一第二询问信息时,将上述伪分享计算机列表回复给上述第三计算机。14. The point-to-point communication method according to claim 13, further comprising: when receiving a second inquiry message from the third computer, replying the list of pseudo-shared computers to the third computer. 15.如权利要求14所述的点对点通信方法,还包括当检测到上述第二计算机停止分享上述被分享文件片段时,上述内部点对点追踪服务器将上述点对点引擎代表的信息更新至上述伪分享计算机列表,以及当接收到来自上述第三计算机的一第三询问信息时,将上述伪分享计算机列表回复给上述第三计算机。15. The peer-to-peer communication method according to claim 14, further comprising: when detecting that the second computer stops sharing the shared file segment, the internal peer-to-peer tracking server updates the information represented by the peer-to-peer engine to the pseudo-sharing computer list , and when receiving a third inquiry message from the third computer, replying the list of pseudo-sharing computers to the third computer. 16.如权利要求15所述的点对点通信方法,还包括该点对点引擎接收来自上述第三计算机要求下载上述被分享文件片段的一第二请求信息,根据上述原始点对点超描述文件下载上述被分享文件片段,并且将所下载的上述被分享文件片段转送至上述第三计算机。16. The point-to-point communication method as claimed in claim 15, further comprising that the point-to-point engine receives a second request message from the third computer to download the above-mentioned shared file segment, and downloads the above-mentioned shared file according to the above-mentioned original point-to-point hyperdescription file segment, and transfer the downloaded segment of the shared file to the third computer. 17.如权利要求12所述的点对点通信方法,还包括该点对点引擎接收来自上述公众网域的一第四计算机要求下载上述被分享文件片段的一第三请求信息,向上述私有网域中正在分享上述被分享文件片段的计算机进行下载,并将所下载的上述被分享文件片段转送至上述第四计算机。17. The peer-to-peer communication method as claimed in claim 12, further comprising the peer-to-peer engine receiving a third request message from a fourth computer in the public network domain requesting to download the segment of the shared file, and sending it to the private network domain The computer sharing the above-mentioned shared file segment downloads, and transfers the downloaded above-mentioned shared file segment to the above-mentioned fourth computer.
CN2009100029672A 2009-01-23 2009-01-23 Peer-to-peer communication device and method using peer-to-peer proxy service Active CN101789914B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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