Movatterモバイル変換


[0]ホーム

URL:


CN101764833B - Resource node information notification method and network entity device - Google Patents

Resource node information notification method and network entity device
Download PDF

Info

Publication number
CN101764833B
CN101764833BCN2008102408217ACN200810240821ACN101764833BCN 101764833 BCN101764833 BCN 101764833BCN 2008102408217 ACN2008102408217 ACN 2008102408217ACN 200810240821 ACN200810240821 ACN 200810240821ACN 101764833 BCN101764833 BCN 101764833B
Authority
CN
China
Prior art keywords
network
resource
information
node information
resource node
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
CN2008102408217A
Other languages
Chinese (zh)
Other versions
CN101764833A (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Corp
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 China Mobile Communications CorpfiledCriticalChina Mobile Communications Corp
Priority to CN2008102408217ApriorityCriticalpatent/CN101764833B/en
Publication of CN101764833ApublicationCriticalpatent/CN101764833A/en
Application grantedgrantedCritical
Publication of CN101764833BpublicationCriticalpatent/CN101764833B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明公开了一种资源节点信息通知方法及网络实体装置,本发明的方法包括:接收本网用户端发起的获取请求,获取请求用于获取所需资源对应的资源节点信息;根据所述获取请求,确定出对应所述资源的资源节点信息中所包含的本网资源节点信息,并返回给该用户端。在此基础上,本发明还提供了进一步的优化方案,即在存储的本网资源节点信息中,进一步根据各本网资源节点所属子域网流量负荷参数信息和自身服务能力信息,选取需要返回给客户端的本网资源节点信息并返回给该用户端。并在存储的所有本网资源节点的数量未达到设定的阈值的情况下,还可以按照各外网的优先级顺序,补充返回外网的资源节点信息。

Figure 200810240821

The invention discloses a resource node information notification method and a network entity device. The method of the invention includes: receiving an acquisition request initiated by a user end of the network, and the acquisition request is used to acquire resource node information corresponding to required resources; according to the acquisition Request, determine the resource node information of the local network included in the resource node information corresponding to the resource, and return it to the client. On this basis, the present invention also provides a further optimization scheme, that is, in the stored resource node information of the local network, further according to the traffic load parameter information of the sub-domain network to which each resource node of the local network belongs and its own service capability information, select the information that needs to be returned. The resource node information of the network to the client and returned to the client. And when the number of all resource nodes stored in the local network does not reach the set threshold, the resource node information returned to the external network can also be supplemented according to the priority order of each external network.

Figure 200810240821

Description

Translated fromChinese
一种资源节点信息通知方法及网络实体装置Resource node information notification method and network entity device

技术领域technical field

本发明涉及对等网络领域,尤其涉及一种资源节点信息通知方法及网络实体装置。The invention relates to the field of peer-to-peer networks, in particular to a resource node information notification method and a network entity device.

背景技术Background technique

目前,对等网络(Peer to Peer,P2P)业务在网络中所占的流量越来越大。P2P业务流量大量占据骨干网以及由此产生跨网流量的问题,对运营商的网络设备负担及运营成本带来了很大的挑战。At present, peer-to-peer (Peer to Peer, P2P) services account for more and more traffic in the network. A large number of P2P business traffic occupies the backbone network and the resulting cross-network traffic poses a great challenge to operators' network equipment burden and operating costs.

在当前P2P业务流量占互联网统治地位的状况下,低级骨干互联网运营商网络受到上述挑战显得尤为严重。In the current situation where P2P business traffic dominates the Internet, the above-mentioned challenges to the low-level backbone Internet operator networks are particularly serious.

以目前P2P应用中的常见的比特流(Bitorrent,BT)下载业务为例,这种业务技术是基于索引服务器(Tracker)的网状网(Mesh)的传输模式。如图1所示,当ISP2网络中的标识为User的用户需要下载资源文件时,需要先到外网的BT资源发布网站上查找并获取资源描述文件,然后根据资源描述文件的指示通过网络之间的核心路由器(Core Router)在ISP1网络中索引服务器(Tracker)中获取资源下载节点的列表(SeedList),假定资源文件分成Data1、Data2和Data3三部分,根据Data1,Data2和Data3的索引,可以从正在同时下载该文件的所属资源节点User1、User2和User3分别下载所需要的资源文件。如图1所示,用户User可以从ISP1中的标识为User1的节点下载Data1,从ISP1中标识为User2节点下载Data2,以及从ISP2中的标识为User3的节点下载Data3。Take the common Bitorrent (BT) download service in the current P2P application as an example, this service technology is based on the transmission mode of the Mesh network of the index server (Tracker). As shown in Figure 1, when a user identified as User in the ISP2 network needs to download a resource file, he needs to first search for and obtain the resource description file on the BT resource release website on the external network, and then pass the resource description file through the network according to the instructions of the resource description file. The core router (Core Router) in the ISP1 network obtains the resource download node list (SeedList) from the index server (Tracker) in the ISP1 network. Assume that the resource file is divided into three parts: Data1, Data2 and Data3. According to the indexes of Data1, Data2 and Data3, you can The required resource files are respectively downloaded from the resource nodes User1, User2 and User3 which are downloading the file at the same time. As shown in FIG. 1 , User can download Data1 from a node identified as User1 in ISP1, download Data2 from a node identified as User2 in ISP1, and download Data3 from a node identified as User3 in ISP2.

如果资源文件下载的目的节点和源节点不属于同一运营商的网络,例如,资源文件下载的目的节点(用户User)属于互联网服务提供商(Internet ServiceProvider,ISP)2的网络,而源节点User1和User2则属于ISP1的网络,此时资源文件的点对点传输就会造成产生不同运营商之间的跨网络流量。If the destination node and the source node of the resource file download do not belong to the network of the same operator, for example, the destination node (User) of the resource file download belongs to the network of Internet Service Provider (ISP) 2, and the source node User1 and User2 belongs to the network of ISP1. At this time, the point-to-point transmission of resource files will cause cross-network traffic between different operators.

若ISP2为低级骨干运营商网络,ISP1为高级骨干运营商网络,由于大量互联网络资源基本上都集中在高级骨干运营商网络ISP1内,低级骨干运营商网络ISP2网内的网络资源并不丰富,并且索引服务器所提供的资源下载列表中的资源节点往往是随机分配的,也就是说,索引服务器所提供的资源下载列表中的资源节点通常会较多数位于骨干互联网运营商网络中,这样的话,就会导致低级骨干运营商网络ISP2的用户需要经常访问高级骨干运营商网络ISP1网络中的资源,由此产生巨大的P2P业务跨网流量,大大增加了低级骨干运营商网络ISP2的网络设备负担,增加了其运营成本,并且过多的P2P跨网络流量也会造成两个运营商网络之间的通信瓶颈。If ISP2 is a low-level backbone operator network, and ISP1 is a high-level backbone operator network, since a large amount of Internet resources are basically concentrated in the high-level backbone operator network ISP1, the network resources in the low-level backbone operator network ISP2 network are not abundant. And the resource nodes in the resource download list provided by the index server are often randomly assigned, that is to say, the resource nodes in the resource download list provided by the index server are usually located in the backbone Internet operator network. As a result, users of the low-level backbone operator network ISP2 need to frequently access the resources in the high-level backbone operator network ISP1 network, resulting in huge P2P service cross-network traffic, which greatly increases the network equipment burden of the low-level backbone operator network ISP2. It increases its operating cost, and too much P2P cross-network traffic will also cause a communication bottleneck between the two operator networks.

现有的降低跨网流量的解决方案如P2P缓存(P2P Cache)方案,通过运营商在本网内的转接点链路(Transit Link)或者关键汇聚点设置一些缓存(Cache)节点,这些节点使用专门的硬件、存储和相关软件,对流过本网的P2P业务数据内容进行存储。这样,当其他网内的P2P业务用户再次请求访问该业务数据内容时,网络可以透明地将请求导向P2P缓存节点,利用缓存节点存储的业务数据内容提供服务。这样,很大一部分流量都能限制在网内传输,从而降低跨网流量。Existing solutions to reduce cross-network traffic, such as P2P cache (P2P Cache) scheme, set some cache (Cache) nodes through the operator's transit point link (Transit Link) or key convergence point in the network, these nodes Use specialized hardware, storage and related software to store the P2P business data content flowing through this network. In this way, when P2P service users in other networks request to access the service data content again, the network can transparently direct the request to the P2P cache node, and use the service data content stored in the cache node to provide services. In this way, a large part of traffic can be restricted to be transmitted within the network, thereby reducing cross-network traffic.

但上述方法存在下列的问题:But the above method has the following problems:

P2P Cache需要在本网内的转接点链路或者关键汇聚点都设置P2P Cache设备,价格比较昂贵;同时由于需要进行内容的缓存,因此需要投资较多的存储设备,所需耗费的成本较高。P2P Cache needs to set up P2P Cache devices on the transfer point links or key convergence points in the network, and the price is relatively expensive; at the same time, due to the need to cache content, it needs to invest in more storage devices, and the cost required is relatively high. high.

发明内容Contents of the invention

本发明提供了一种资源节点信息通知方法及网络实体装置,用以解决现有P2P应用中存在由于跨网流量所造成的运营商网络设备负担和运营成本增加,以及由此产生不同运营商网络之间通信瓶颈问题。The present invention provides a resource node information notification method and a network entity device, which are used to solve the problem of increasing the operator's network equipment burden and operating costs caused by cross-network traffic in existing P2P applications, as well as the resulting generation of different operator networks. communication bottleneck problem.

本发明实施例提供的一种资源节点信息通知方法,包括:A resource node information notification method provided by an embodiment of the present invention includes:

本网的索引服务器从外网的资源发布服务器获取资源描述文件并解析,解析出资源描述文件所包含的外网的索引服务器的地址信息;根据所述地址信息向外网的索引服务器获取网络资源对应的资源节点信息;将所述资源描述文件中包含的所述外网的索引服务器的地址修改为自身的地址,并将修改后的资源描述文件发送至本网的资源发布服务器进行发布;The index server of this network obtains and analyzes the resource description file from the resource publishing server of the external network, and resolves the address information of the index server of the external network contained in the resource description file; obtains network resources from the index server of the external network according to the address information Corresponding resource node information; modifying the address of the index server of the external network contained in the resource description file to its own address, and sending the modified resource description file to the resource publishing server of this network for publishing;

本网的资源发布服务器接收本网用户端发送的获取资源描述文件的请求;The resource publishing server of this network receives the request for obtaining the resource description file sent by the client of this network;

本网的资源发布服务器向本网用户端返回修改后的资源描述文件;The resource publishing server of this network returns the modified resource description file to the client of this network;

本网的索引服务器接收本网用户端发起的获取请求,所述获取请求用于获取所需资源对应的资源节点信息。The index server of the local network receives the obtaining request initiated by the client of the local network, and the obtaining request is used to obtain resource node information corresponding to the required resource.

本网的索引服务器根据所述获取请求,确定出对应所述资源的资源节点信息中所包含的本网资源节点信息,并返回给所述用户端。The index server of the local network determines the resource node information of the local network included in the resource node information corresponding to the resource according to the acquisition request, and returns the information to the client.

所述确定出本网资源节点信息并返回至所述用户端,具体包括:The determining the resource node information of this network and returning it to the client end includes:

确定对应所述资源的资源节点信息包含的所有本网资源节点信息;Determining all resource node information on the local network included in the resource node information corresponding to the resource;

根据本网各子域网上报的流量负荷参数信息和各子域网内每个本网资源节点上报的自身服务能力信息,从确定出的所述所有本网资源节点信息中选取所需返回的资源节点信息,将选取出来的资源节点信息返回至所述用户端。According to the traffic load parameter information reported by each sub-area network of the local network and the self-service capability information reported by each local network resource node in each sub-domain network, select the information that needs to be returned from the determined information of all local network resource nodes. Resource node information, returning the selected resource node information to the client.

所述各子域网的流量负荷参数信息包括各子域网流量密度值信息;The traffic load parameter information of each sub-area network includes the traffic density value information of each sub-area network;

所述本网节点的自身服务能力信息,包括:CPU平均使用率信息、内存平均使用率信息和可用网络带宽信息。The self-service capability information of the nodes on the local network includes: average CPU usage information, memory average usage information, and available network bandwidth information.

本发明实施例提供的资源节点信息通知方法,本网各子域网上报流量负荷参数信息,包括:In the resource node information notification method provided by the embodiment of the present invention, each subdomain of the local network reports traffic load parameter information, including:

本网内各子域网周期性地对本子域网流量的总量进行统计,计算所述流量的总量与本子域网内节点总数的比值得到本子域网的流量密度值并上报。Each sub-area network in the local network periodically counts the total amount of traffic in the sub-area network, and calculates the ratio of the total amount of traffic to the total number of nodes in the sub-area network to obtain the traffic density value of the sub-area network and reports it.

本发明实施例提供的资源节点信息通知方法,还包括:The resource node information notification method provided by the embodiment of the present invention further includes:

判断确定出的本网资源节点数量是否达到设定的阈值;Judging whether the determined number of resource nodes on the local network reaches the set threshold;

当本网资源节点的数量未达到设定的阈值时,确定对应所述资源的资源节点信息中所包含的外网资源节点信息,补充返回给所述用户端;补充返回的外网资源节点的数量等于所述阈值与已返回的本网资源节点的数量之差。When the number of resource nodes on the local network does not reach the set threshold, determine the external network resource node information contained in the resource node information corresponding to the resource, supplement and return to the client; supplement the returned external network resource node information The quantity is equal to the difference between the threshold and the returned quantity of resource nodes of the local network.

确定外网资源节点信息,并返回给所述用户端,具体包括:Determine the resource node information of the external network and return it to the client, including:

根据预设的各外网的优先级顺序,依次从对应资源的资源节点信息包含的外网资源节点信息中选取所需返回的外网资源节点信息,将选取出来的外网资源节点信息返回给所述用户端。According to the preset priority order of each external network, select the external network resource node information to be returned from the external network resource node information contained in the resource node information of the corresponding resource in turn, and return the selected external network resource node information to the client.

所述各外网的优先级顺序,根据本网与各外网不同自治域之间的树状订购关系和连接关系确定。The order of priority of each external network is determined according to the tree order relationship and connection relationship between this network and different autonomous domains of each external network.

本发明实施例还提供了一种网络实体装置,包括:The embodiment of the present invention also provides a network entity device, including:

用于从外网的资源发布服务器获取资源描述文件并解析,解析出资源描述文件所包含的外网的索引服务器的地址信息,根据所述地址信息向外网的索引服务器获取网络资源对应的资源节点信息,将所述资源描述文件中包含的所述外网的索引服务器的地址修改为自身的地址,并将修改后的资源描述文件发布的模块;It is used to obtain and parse the resource description file from the resource publishing server of the external network, parse out the address information of the index server of the external network contained in the resource description file, and obtain the resources corresponding to the network resources from the index server of the external network according to the address information Node information, a module for modifying the address of the index server of the external network contained in the resource description file to its own address, and publishing the modified resource description file;

接收模块,用于接收本网用户端发送的获取资源描述文件的请求,以及接收本网用户端发起的获取请求,所述获取请求用于获取所需资源对应的资源节点信息;The receiving module is used to receive the request for obtaining the resource description file sent by the user end of the network, and receive the acquisition request initiated by the user end of the network, and the acquisition request is used to obtain the resource node information corresponding to the required resource;

确定模块,用于根据所述接收模块接收的获取请求,确定对应所述资源的资源节点信息中所包含的本网资源节点信息;A determining module, configured to determine the resource node information of the local network included in the resource node information corresponding to the resource according to the acquisition request received by the receiving module;

返回模块,用于向本网用户端返回修改后的资源描述文件,以及将确定模块确定出的所述本网资源节点信息返回至所述用户端。The return module is used to return the modified resource description file to the user end of the local network, and return the resource node information of the local network determined by the determination module to the user end.

所述确定模块,还用于确定对应所述资源的资源节点信息包含的所有本网资源节点信息;并根据本网各子域网上报的流量负荷参数信息和各子域网内每个本网资源节点上报的自身服务能力信息,从确定出的所述所有本网资源节点信息中选取所需返回的资源节点信息;The determination module is also used to determine all the resource node information of the local network included in the resource node information corresponding to the resource; The resource node reports its own service capability information, and selects the resource node information that needs to be returned from the determined resource node information of the local network;

所述返回模块,还用于将所述选取子模块选取的资源节点信息返回至所述用户端。The returning module is further configured to return the resource node information selected by the selecting sub-module to the client.

所述接收模块,还用于接收本网各子域网上报的流量密度值信息,以及各子域网内每个节点上报的自身CPU平均使用率信息、内存平均使用率信息和可用网络带宽信息并存储;所述流量密度值信息为每个子域网流量的总量与本子域网内节点总数的比值信息;The receiving module is also used to receive the traffic density value information reported by each sub-area network of this network, and the self CPU average utilization rate information, memory average utilization rate information and available network bandwidth information reported by each node in each sub-area network and store; the traffic density value information is the ratio information of the total amount of traffic in each sub-area network to the total number of nodes in the sub-area network;

所述确定模块,还用于根据所述各子域网流量密度值信息、每个节点自身CPU平均使用率信息、内存平均使用率信息和可用网络带宽信息,从所述所有本网资源节点信息中选取所需返回的本网资源节点信息。The determination module is further configured to obtain information from all local network resource nodes according to the traffic density value information of each sub-area network, the average CPU usage information of each node, the average memory usage information, and the available network bandwidth information. Select the resource node information of the network that needs to be returned.

所述确定模块,还用于判断确定出的本网资源节点数量是否达到设定的阈值;当所述本网资源节点数量未达到设定的阈值时,确定对应所述资源的资源节点信息中所包含的外网资源节点信息;The determining module is also used to judge whether the determined number of resource nodes on the local network reaches a set threshold; when the number of resource nodes on the local network does not reach the set threshold, determine whether the resource node information corresponding to the resource The contained external network resource node information;

所述返回模块,还用于根据确定模块确定出的外网资源节点信息,补充返回数量等于所述阈值与已返回的本网资源节点数量之差的外网资源节点信息至所述用户端。The returning module is further configured to, according to the external network resource node information determined by the determining module, supplement and return external network resource node information whose quantity is equal to the difference between the threshold value and the returned local network resource node quantity to the client.

所述确定模块,还用于根据预设的各外网的优先级顺序,依次从对应资源的资源节点信息包含的外网资源节点信息中选取所需返回的外网资源节点信息;所述各外网的优先级顺序,根据本网与各外网不同自治域之间的树状订购关系和连接关系确定;The determination module is also used to sequentially select the external network resource node information that needs to be returned from the external network resource node information contained in the resource node information of the corresponding resource according to the preset priority order of each external network; The priority order of the external network is determined according to the tree order relationship and connection relationship between this network and different autonomous domains of each external network;

所述返回模块,还用于将所述确定模块选取的所述外网资源节点信息返回至所述用户端。The returning module is further configured to return the external network resource node information selected by the determining module to the client.

本发明实施例的有益效果如下:The beneficial effects of the embodiments of the present invention are as follows:

本发明实施例提供的一种资源节点信息通知方法及网络实体装置,从外网的资源发布服务器获取资源描述文件,将所述资源描述文件中包含的所述外网的索引服务器的地址修改为自身的地址,并将修改后的资源描述文件发送至本网的资源发布服务器进行发布;接收本网用户端发送的获取资源描述文件的请求;向本网用户端返回修改后的资源描述文件;接收本网用户端发起的获取资源节点信息的请求之后,确定出对应资源节点信息中所包含的本网资源节点信息,并返回给用户端。对用户端来说,由于所接收到的资源节点信息可能全部或绝大多数都是本网节点的信息,所以,当用户端与这些资源节点之间建立连接进行资源传输时所产生的流量基本上都发生在本网内部,较大程度地降低了跨网的流量,减轻运营商网络设备的负担和运营成本,避免了由于跨网流量所产生的不同运营商网络之间通信瓶颈问题。A resource node information notification method and a network entity device provided by an embodiment of the present invention obtain a resource description file from a resource publishing server of an external network, and modify the address of the index server of the external network contained in the resource description file to own address, and send the modified resource description file to the resource publishing server of this network for publishing; receive the request for resource description file sent by the user end of this network; return the modified resource description file to the user end of this network; After receiving the request for obtaining resource node information initiated by the user terminal of the local network, determine the resource node information of the local network contained in the corresponding resource node information, and return it to the user terminal. For the client, since all or most of the received resource node information may be the information of the nodes on the local network, the traffic generated when the client establishes a connection with these resource nodes for resource transmission is basically The above-mentioned information happens inside the network, which greatly reduces the cross-network traffic, reduces the burden on the operator's network equipment and operating costs, and avoids the communication bottleneck problem between different operator networks caused by the cross-network traffic.

进一步地,本发明实施例提供的资源节点信息通知方法及网络实体装置,还通过将本网预先划分为若干各子域网,各子域网周期性地上报本子域网流量密度值信息,本网内的每个节点也周期性地上报自身服务能力信息,索引服务器根据各子域网上报的流量密度值信息和各本网节点上报的服务能力信息,在存储的对应资源的本网资源节点信息中,进一步地选取所属流量密度较小、服务能力较高的本网资源节点信息返回给用户端,提高了用户端与本网资源节点间进行数据传输的效率,且降低了P2P数据传输在本网内发生拥塞的可能性。Furthermore, the resource node information notification method and the network entity device provided by the embodiments of the present invention further divide the local network into several sub-area networks, and each sub-area network periodically reports the traffic density value information of the local sub-area network. Each node in the network also periodically reports its own service capability information, and the index server stores corresponding resources in the local network resource node In the information, the resource node information of the local network with low traffic density and high service capability is further selected and returned to the client, which improves the efficiency of data transmission between the client and the resource node of the local network, and reduces the time spent on P2P data transmission. Possibility of congestion within the network.

即使在存储的对应资源的所有本网资源节点的数量未达到设定的阈值,必须向用户端补充返回外网资源节点信息的情况下,本网的索引服务器可以按照各外网的优先级顺序,例如根据网间传输代价(传输代价的高低可以由本网与外网各自治域之间的树状订购关系和连接关系决定)从低到高对应的优先级顺序,在存储的对应资源的外网资源节点中尽量选取与本网间传输代价较低的外网的资源节点信息返回给客户端,在尽可能地降低跨网P2P数据传输流量的前提下,进一步优化了跨网进行P2P数据传输的效率和经济性。Even if the number of all local network resource nodes stored for the corresponding resource does not reach the set threshold, and it is necessary to supplement and return external network resource node information to the client, the index server of the local network can follow the priority order of each external network , for example, according to the priority order from low to high corresponding to the inter-network transmission cost (the transmission cost can be determined by the tree order relationship and connection relationship between the autonomous domains of the local network and the external network), in the storage of the corresponding resources outside the In the network resource nodes, try to select the resource node information of the external network with a lower transmission cost between the local network and return it to the client. On the premise of reducing the cross-network P2P data transmission traffic as much as possible, the cross-network P2P data transmission is further optimized. efficiency and economy.

附图说明Description of drawings

图1为现有P2P应用中用户端进行资源下载的网络连接示意图;FIG. 1 is a schematic diagram of a network connection for resource downloading by a client in an existing P2P application;

图2为本发明实施例提供的应用于ISP1网络的资源节点信息通知方法流程图;FIG. 2 is a flowchart of a resource node information notification method applied to an ISP1 network provided by an embodiment of the present invention;

图3为本发明实施例提供的ISP1网络分成若干个子域网的示意图;Fig. 3 is the schematic diagram that the ISP1 network provided by the embodiment of the present invention is divided into several sub-area networks;

图4为本发明实施例提供的ISP1网络中各子域网的示意图;FIG. 4 is a schematic diagram of each sub-area network in the ISP1 network provided by the embodiment of the present invention;

图5为本发明实施例提供的应用于ISP2网络的资源节点信息通知方法流程图之一;5 is one of the flow charts of the resource node information notification method applied to the ISP2 network provided by the embodiment of the present invention;

图6为本发明实施例提供的应用于ISP2网络的资源节点信息通知方法的流程图之二;FIG. 6 is the second flow chart of the resource node information notification method applied to the ISP2 network provided by the embodiment of the present invention;

图7为本发明实施例提供的网络实体装置结构示意图。FIG. 7 is a schematic structural diagram of a network entity device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图,用具体实施例对本发明提供的一种资源节点信息通知方法及网络实体装置进行详细的说明。A method for notifying resource node information and a network entity device provided by the present invention will be described in detail below with reference to the accompanying drawings.

为了便于说明本发明实施例提供的一种资源节点信息通知方法,本发明实施例还是分别以图1所示的两种不同类型网络ISP1网络和ISP2网络为例进行说明。In order to facilitate the description of a method for notifying resource node information provided by the embodiment of the present invention, the embodiments of the present invention are described by taking two different types of networks ISP1 network and ISP2 network shown in FIG. 1 as examples.

对于ISP1这种高级骨干运营商网络来说,与现有技术相同,在ISP1网络内部的索引服务器(可以不止一个)存储有各个资源对应的资源节点信息,该资源节点信息的内容包括各资源节点的IP地址、端口和用户ID等信息。For an advanced backbone operator network such as ISP1, similar to the existing technology, the index server (can be more than one) inside the ISP1 network stores resource node information corresponding to each resource, and the content of the resource node information includes each resource node information such as IP address, port, and user ID.

如图2所示,对于ISP1网络来说,本发明实施例所提供的资源节点信息通知方法,具体包括以下步骤:As shown in Figure 2, for the ISP1 network, the resource node information notification method provided by the embodiment of the present invention specifically includes the following steps:

步骤S201、ISP1网络中的索引服务器接收本网用户端发起的获取请求,该获取请求用于获取所需资源对应的资源节点信息。Step S201 , the index server in the ISP1 network receives an acquisition request initiated by the client of the network, and the acquisition request is used to acquire resource node information corresponding to the required resources.

步骤S202、ISP1网络中的索引服务器根据该资源节点信息获取请求,确定出存储的资源节点信息中包含的本网资源节点信息,并根据各本网资源节点所属的子域网的流量负荷参数信息和各本网资源节点的自身服务能力信息,进一步选取所需返回的本网资源节点信息,返回给该用户端。Step S202, the index server in the ISP1 network determines the local network resource node information contained in the stored resource node information according to the resource node information acquisition request, and according to the traffic load parameter information of the sub-area network to which each local network resource node belongs and the self-service capability information of each local network resource node, and further select the local network resource node information that needs to be returned, and return it to the client.

该用户端根据返回的资源节点信息,分别向各个对应的资源节点发送建立连接请求,得到资源节点的许可后,即建立网状网进行资源的传输。According to the returned resource node information, the client sends a connection establishment request to each corresponding resource node, and after obtaining the permission of the resource node, establishes a mesh network for resource transmission.

在上述步骤S202中,ISP1网络中的索引服务器在确定出存储的资源节点信息包含的所有本网资源节点信息中,进一步地按照各本网资源节点所属的子域网的流量负荷参数信息,以及各本网资源节点的自身服务能力信息,选取需要返回的本网资源节点信息,最终将选取出来的本网资源节点信息返回给用户端。In the above step S202, the index server in the ISP1 network, after determining all the local network resource node information contained in the stored resource node information, further according to the traffic load parameter information of the sub-area network to which each local network resource node belongs, and The self-service capability information of each local network resource node selects the local network resource node information that needs to be returned, and finally returns the selected local network resource node information to the client.

本发明实施例中,如图3所示,ISP1网络中,预先分成若干个子域网,包括子域网A、子域网B、子域网C和子域网D。各子域网的内部结构如图4所示,在每个子域网中,可以配置一个或多个监测点(Detection Point,DP);例如可以利用现有的DPI(Deep Packet Indentification)设备,每个监测点的作用是周期性地监测本子域网内的流量负载情况,统计本子域网内各节点上载或下载数据流量的总量,然后将统计出的本子域网内流量的总量除以本子域网内节点总数,得到本子域网的流量密度值。并且不断地将当前周期计算得到的流量密度值信息上报给ISP1网络中的索引服务器。In the embodiment of the present invention, as shown in FIG. 3 , the ISP1 network is pre-divided into several sub-area networks, including sub-area network A, sub-area network B, sub-area network C, and sub-area network D. The internal structure of each sub-area network is shown in Figure 4. In each sub-area network, one or more detection points (Detection Point, DP) can be configured; for example, existing DPI (Deep Packet Identification) equipment can be used to The function of each monitoring point is to periodically monitor the traffic load in the sub-area network, count the total amount of uploaded or downloaded data traffic of each node in the sub-area network, and then divide the total amount of traffic in the sub-area network calculated by The total number of nodes in this sub-area network to get the traffic density value of this sub-area network. And continuously report the traffic density value information calculated in the current period to the index server in the ISP1 network.

并且,ISP1网络中各子域网内的每个节点,也周期性地统计自身CPU平均使用率、内存平均使用率以及可用网络带宽等参数作为自身服务能力信息上报给ISP1网络中的索引服务器。Moreover, each node in each subnet in the ISP1 network also periodically collects its own CPU average usage rate, memory average usage rate, and available network bandwidth and other parameters and reports it to the index server in the ISP1 network as its own service capability information.

ISP1网络中的索引服务器将各子域网监测节点上报的各子域网的流量密度值信息,以及各节点上报的自身服务能力信息存储并不断周期性地更新。The index server in the ISP1 network stores and periodically updates the traffic density value information of each sub-area network reported by each sub-area network monitoring node and the self-service capability information reported by each node.

在选取本网资源节点时,索引服务器根据存储的上述信息,在存储的本网资源节点信息中,进一步地选择所属子域网流量密度值较低、自身服务能力较高的本网资源节点的相关信息返回给用户端。When selecting local network resource nodes, the index server further selects local network resource nodes with lower traffic density values in their sub-domain networks and higher self-service capabilities based on the stored information above and among the stored local network resource node information. Relevant information is returned to the client.

之所以按照上述原则进行选择,是因为在流量密度较低的子域网中,资源节点可能具有较高的上行带宽和较小的负载,服务能力高的资源节点具备更好为其他节点提供资源的能力。The reason for choosing according to the above principles is that in sub-area networks with low traffic density, resource nodes may have higher uplink bandwidth and smaller load, and resource nodes with high service capabilities are better able to provide resources for other nodes. Ability.

索引服务器综合上述所属子域网流量密度值信息、自身服务能力信息两项参数选取本网资源节点信息时,也可设定将上述两项参数优先级,例如各资源节点的服务能力信息优先于子域网流量密度值信息,在设定这样的优先级的情况下,假设图中,各子域网的流量密度值从小到大排列依次为:子域网A<子域网B<子域网C<子域网D,子域网A中的资源节点User 1和子域网B中的资源节点User 2都是备选的资源节点,如果资源节点User 2的服务能力大于资源节点User 1,那么,即使子域网A的流量密度值小于子域网B的流量密度值,索引服务器会优先选择资源节点User 2的信息返回给用户端。When the index server selects the resource node information of the local network based on the two parameters of the above-mentioned sub-network traffic density value information and its own service capability information, it can also set the priority of the above two parameters. For example, the service capability information of each resource node is prioritized over Sub-area network traffic density value information, in the case of setting such a priority, assuming that in the figure, the traffic density values of each sub-area network are arranged in ascending order: sub-area network A<sub-area network B<sub-domain Network C<subnet D, resource node User 1 in subnet A and resource node User 2 in subnet B are candidate resource nodes. If the service capability of resource node User 2 is greater than that of resource node User 1, Then, even if the traffic density value of subnet A is lower than the traffic density value of subnet B, the index server will preferentially select the information of resource node User 2 to return to the client.

本发明实施例提供的资源节点信息通知方法在实际应用中,如果P2P应用对于资源节点的数量有要求,例如BT下载业务规定,用户端至少需要4个资源节点进行资源的下载(有利于用户端能够完整地下载该资源的所有部分),那么,在上述步骤的基础上,还可以继续执行以下步骤:In practical applications, the resource node information notification method provided by the embodiment of the present invention, if the P2P application has a requirement for the number of resource nodes, such as the BT download business regulation, the user terminal needs at least 4 resource nodes to download resources (beneficial to the user terminal can completely download all parts of the resource), then, on the basis of the above steps, you can also continue to perform the following steps:

步骤S203、将存储的资源节点信息中包含的本网资源节点的数量与设定的阈值比较。当本网资源节点的数量未达到该设定的阈值时,执行下述步骤S204。Step S203, comparing the number of local network resource nodes included in the stored resource node information with a set threshold. When the number of resource nodes on the local network does not reach the set threshold, the following step S204 is performed.

步骤S204、当本网资源节点的数量未达到设定的阈值时,在返回所有的本网资源节点信息之外,还需要在存储的资源节点中的外网资源节点中,按照预设的各个运营商网络的优先级顺序,依次选取足够数量的外网资源节点返回给用户端。Step S204, when the number of resource nodes on the local network does not reach the set threshold, in addition to returning all resource node information on the local network, it is also necessary to store resource nodes in the external network according to each preset According to the priority order of the operator's network, a sufficient number of external network resource nodes are sequentially selected and returned to the client.

补充返回的外网资源节点信息的数量等于阈值与已返回的本网资源节点的数量之差。The number of supplementary returned external network resource node information is equal to the difference between the threshold and the returned number of local network resource nodes.

各个运营商网络的优先级顺序,例如可以依据本网(ISP1网络)与各外网中不同的自治域(Autonomous System,AS)之间的树状订购关系和连接关系来决定,本网与各外网的不同自治域之间的树状订购关系和连接关系决定了本网与各外网之间比特传输代价的大小,可以优先选择与之传输代价较低的外网的资源节点信息返回给用户端。The order of priority of each operator's network, for example, can be determined according to the tree order relationship and connection relationship between the home network (ISP1 network) and different autonomous domains (Autonomous System, AS) in each extranet. The tree order relationship and connection relationship between different autonomous domains of the external network determine the cost of bit transmission between the local network and each external network, and the resource node information of the external network with a lower transmission cost can be preferentially selected and returned to user terminal.

当然,本发明实施例中,外网的优先级顺序也可以由其他因素等来决定。本发明实施例对此不做限定。Certainly, in the embodiment of the present invention, the priority order of the external network may also be determined by other factors and the like. This embodiment of the present invention does not limit this.

下面针对ISP2这种低级骨干运营商网络(例如移动互联网运营商的网络)来说明本发明实施例所提供的资源节点信息通知方法的原理及步骤。在现有技术中,ISP2网络内部不存在能够提供资源节点信息的索引服务器,本发明实施例提供的资源节点信息通知方法在ISP2网络中设置了索引服务器和资源发布服务器,为了与ISP1网络中的索引服务器进行区分,以下以第一索引服务器称呼ISP2网络中的索引服务器。本发明实施例中可以将ISP2网络中的资源发布服务器的功能设置于第一索引服务器中,将两者合设为同一个设备。The principle and steps of the method for notifying resource node information provided by the embodiment of the present invention are described below for a low-level backbone operator network (such as a network of a mobile Internet operator) such as ISP2. In the prior art, there is no index server that can provide resource node information inside the ISP2 network. The resource node information notification method provided by the embodiment of the present invention sets an index server and a resource publishing server in the ISP2 network. In order to communicate with the ISP1 network The index servers are distinguished, and the index servers in the ISP2 network are referred to as the first index server below. In the embodiment of the present invention, the function of the resource publishing server in the ISP2 network can be set in the first index server, and both can be combined into one device.

还是以ISP2网络中的用户端User使用BT业务进行资源下载为例,如图5所示,本发明实施例提供的资源节点信息通知方法,第一索引服务器需要首先完成下述步骤:Still taking the user terminal User in the ISP2 network to use the BT service to download resources as an example, as shown in Figure 5, in the resource node information notification method provided by the embodiment of the present invention, the first index server needs to first complete the following steps:

步骤S501、第一索引服务器从外网的资源发布服务器上获取资源描述文件并解析,解析出资源描述文件所包含的第二索引服务器的地址信息。Step S501, the first index server obtains and parses the resource description file from the resource publishing server on the external network, and parses out the address information of the second index server included in the resource description file.

第一索引服务器向外网中下载量较大的资源发布服务器上获取各种网络资源对应的资源描述文件,对接收的资源描述文件进行解析,解析出该资源描述文件中所包含的第二索引服务器的地址信息。The first index server obtains the resource description files corresponding to various network resources from the resource publishing server with a large amount of downloads in the external network, parses the received resource description files, and parses out the second index contained in the resource description files The address information of the server.

步骤S502、第一索引服务器根据第二索引服务器的地址信息,向对应的第二索引服务器获取该网络资源对应的资源节点信息。Step S502, the first index server acquires resource node information corresponding to the network resource from the corresponding second index server according to the address information of the second index server.

为了与ISP2网络中的第一索引服务器相区别,称位于外网的索引服务器为第二索引服务器。In order to distinguish it from the first index server in the ISP2 network, the index server located on the external network is called the second index server.

步骤S503、第一索引服务器将获取到的资源描述文件中包含的第二索引服务器地址修改为自身的地址。Step S503, the first index server modifies the address of the second index server included in the obtained resource description file to its own address.

步骤S504、第一索引服务器将修改后的资源描述文件发送至本网内的资源发布服务器进行发布。Step S504, the first index server sends the modified resource description file to the resource publishing server in the local network for publishing.

为了实现ISP2网内的用户端User能够直接登录本网内的资源发布服务器,而不通过核心路由器访问外网的资源发布网站,在本发明实施例中,对现有ISP2网络中的域名服务器(Domain Name Server,DNS)预先设置了重定向功能,当用户端向本网的域名服务器发起登录外网资源发布服务器的登录请求时,该域名服务器可以实现将该登录请求重定向至本网的资源发布服务器,这样,对于本网用户端User来说,并不知道自己实际登录的网站服务器是网内的资源服务器。由于DNS的重定向功能属于现有技术的范围,在此不再赘述。In order to realize that the user terminal User in the ISP2 network can directly log in to the resource publishing server in this network, without accessing the resource publishing website of the external network through the core router, in the embodiment of the present invention, the domain name server in the existing ISP2 network ( Domain Name Server (DNS) has pre-set the redirection function. When the client sends a login request to the domain name server of this network to log in to the resource publishing server of the external network, the domain name server can redirect the login request to the resources of this network. In this way, for the user of this network, the user does not know that the website server that he actually logs in is a resource server in the network. Since the redirection function of the DNS belongs to the scope of the prior art, it will not be repeated here.

当ISP2网内资源发布服务器接收到本网用户端User发起的经过重定向后的登录请求,ISP2网内的资源发布服务器向用户端User返回资源发布网页的内容,用户User根据需要选择需要获取的网络资源,也就是向本网的资源发布服务器发送获取资源描述文件的请求,此后第一索引服务器端的流程,如图6所示,包括:When the resource publishing server in the ISP2 network receives the redirected login request initiated by the user of the network, the resource publishing server in the ISP2 network returns the content of the resource publishing webpage to the user, and the user selects the content that needs to be obtained according to the needs. Network resources, that is, send a request to obtain a resource description file to the resource publishing server of this network, and then the process of the first index server, as shown in Figure 6, includes:

步骤S601、本网资源发布服务器接收用户端User发送的获取资源描述文件的请求。In step S601, the resource publishing server of the local network receives a request for obtaining a resource description file sent by a user terminal User.

步骤S602、本网的资源发布服务器向该用户端返回修改后的资源描述文件。Step S602, the resource publishing server of the local network returns the modified resource description file to the client.

步骤S603、用户端获取该资源描述文件并解析,根据修改后的资源描述文件中所包含索引服务器的地址,也就是ISP2网络中第一索引服务器的地址,向第一索引服务器发起资源节点信息获取请求。Step S603, the client obtains and parses the resource description file, and initiates resource node information acquisition to the first index server according to the address of the index server contained in the modified resource description file, that is, the address of the first index server in the ISP2 network ask.

步骤S604、第一索引服务器接收该用户端发起的获取请求,确定出存储的对应资源的资源节点信息中所包含的本网资源节点信息,并根据各本网资源节点所属的子域网的流量负荷参数信息和各本网资源节点的自身服务能力信息,从本网资源节点信息中选取所需返回的资源节点信息,返回给该用户端。Step S604, the first index server receives the acquisition request initiated by the client, determines the resource node information of the local network contained in the resource node information of the corresponding resource stored, and according to the traffic of the sub-domain network to which each resource node of the local network belongs The load parameter information and the self-service capability information of each local network resource node select the resource node information to be returned from the local network resource node information and return it to the client.

与ISP1网络类似,ISP2网络中,可以预先划分为若干个子域网,每个子域网周期性地统计本子域网内的流量总量,计算本子域网流量密度值上报给ISP2网络中的第一索引服务器;同时,各子域网中的节点周期性地统计自身CPU平均使用率、内存平均使用率以及可用网络带宽等参数作为自身服务能力信息上报给第一索引服务器。Similar to the ISP1 network, the ISP2 network can be pre-divided into several sub-area networks, and each sub-area network periodically counts the total amount of traffic in the sub-area network, and the calculated traffic density value of the sub-area network is reported to the first in the ISP2 network. Index server; meanwhile, the nodes in each sub-area network periodically count their average CPU usage, average memory usage, and available network bandwidth and other parameters as their own service capability information and report them to the first index server.

ISP2网络中的第一索引服务器在存储的资源节点信息包含的所有本网资源节点信息中,进一步地参照各本网资源节点所属的子域网上报的流量密度值信息和各本网资源节点上报的自身服务能力信息,选取需要返回的本网资源节点信息,最终将选取出来的本网资源节点信息返回给用户端。具体的选取原则和方法也与前述步骤S202中相同,在此不再详述。The first index server in the ISP2 network further refers to the traffic density value information reported by the sub-domain network to which each resource node of the local network belongs and the resource node information reported by each local network resource node among all the resource node information of the local network contained in the stored resource node information. own service capability information, select the resource node information of the local network that needs to be returned, and finally return the selected resource node information of the local network to the client. The specific selection principles and methods are also the same as those in the aforementioned step S202, and will not be described in detail here.

与ISP1网络中类似,如果P2P应用对于资源节点的数量有要求,那么,在上述步骤的基础上,如图6所示,还可以继续执行以下步骤:Similar to the ISP1 network, if the P2P application has requirements for the number of resource nodes, then, on the basis of the above steps, as shown in Figure 6, the following steps can also be performed:

步骤S605、第一索引服务器将存储的资源节点信息中包含的本网资源节点的数量与设定的阈值比较。Step S605 , the first index server compares the number of local network resource nodes included in the stored resource node information with a set threshold.

当本网资源节点的数量未达到该设定的阈值时,执行下述步骤S606。When the number of resource nodes on the local network does not reach the set threshold, the following step S606 is performed.

步骤S606、当存储的该资源对应的本网资源节点的数量未达到设定的阈值时,第一索引服务器在返回所有的本网资源节点信息之外,在存储的资源节点中的外网资源节点中,按照预设的各个运营商网络的优先级顺序,依次选取足够数量的外网资源节点返回给用户端。Step S606, when the number of resource nodes stored on the local network corresponding to the resource does not reach the set threshold, the first index server returns information on all resource nodes on the local network, and the resource nodes on the external network stored in the resource nodes Among the nodes, according to the preset priority order of each operator's network, a sufficient number of external network resource nodes are sequentially selected and returned to the user terminal.

各个运营商网络的优先级顺序,例如可以依据本网(ISP1网络)与各外网的自治域之间的树状订购关系和连接关系来决定。The order of priority of each operator's network can be determined, for example, according to the tree order relationship and connection relationship between the home network (ISP1 network) and the autonomous domains of each external network.

具体选取的原则和方法与图2中的步骤S204相同,在此不再详述。The principles and methods for specific selection are the same as step S204 in FIG. 2 , and will not be described in detail here.

根据本发明实施例提供的资源节点信息通知方法,本发明实施例还提供了一种网络实体装置,如图7所示,包括:接收模块701、确定模块702和返回模块703。其中:According to the resource node information notification method provided by the embodiment of the present invention, the embodiment of the present invention also provides a network entity device, as shown in FIG. 7 , including: a receiving module 701 , a determining module 702 and a returning module 703 . in:

接收模块701,用于接收本网用户端发起的获取请求,该获取请求用于获取所需资源对应的资源节点信息;The receiving module 701 is configured to receive an acquisition request initiated by the user end of the network, and the acquisition request is used to acquire resource node information corresponding to the required resource;

确定模块702,用于根据接收模块701接收的获取请求,确定对应资源的资源节点信息中所包含的本网资源节点信息;A determining module 702, configured to determine the resource node information of the network contained in the resource node information of the corresponding resource according to the acquisition request received by the receiving module 701;

返回模块703,用于将确定模块702确定出的本网资源节点信息返回至该用户端。A returning module 703, configured to return the resource node information of the local network determined by the determining module 702 to the client.

本发明实施例提供的网络实体装置中的确定模块702,还用于确定对应资源的资源节点信息包含的所有本网资源节点信息;并根据本网各子域网上报的流量负荷参数信息和各子域网内每个本网资源节点上报的自身服务能力信息,从确定出的本网资源节点信息中选取所需返回的资源节点信息;The determination module 702 in the network entity device provided by the embodiment of the present invention is also used to determine all resource node information of the local network contained in the resource node information of the corresponding resource; The self-service capability information reported by each local network resource node in the sub-area network, select the resource node information that needs to be returned from the determined local network resource node information;

相应地,返回模块703,还用于将确定模块702选取的资源节点信息返回至用户端。Correspondingly, the returning module 703 is further configured to return the resource node information selected by the determining module 702 to the client.

本发明实施例提供的网络实体装置中的接收模块701,还用于接收本网各子域网上报的流量密度值信息,以及各子域网内每个节点上报的自身CPU平均使用率信息、内存平均使用率信息和可用网络带宽信息并存储;流量密度值信息为每个子域网流量的总量与本子域网内节点总数的比值信息。The receiving module 701 in the network entity device provided by the embodiment of the present invention is also used to receive the traffic density value information reported by each sub-area network of the local network, and the average CPU usage rate information reported by each node in each sub-area network, The average memory usage information and available network bandwidth information are stored together; the traffic density value information is the ratio information of the total amount of traffic in each sub-area network to the total number of nodes in this sub-area network.

相应地,确定模块702,还用于根据各子域网流量密度值信息、每个节点自身CPU平均使用率信息、内存平均使用率信息和可用网络带宽信息,从存储的所有本网资源节点信息中选取所需返回的资源节点信息。Correspondingly, the determining module 702 is further configured to select from all the resource node information of the local network stored according to the traffic density value information of each sub-area network, the average CPU usage information of each node itself, the average memory usage information, and the available network bandwidth information. Select the resource node information to be returned.

本发明实施例提供的网络实体装置中的确定模块702,还用于判断确定出的本网资源节点数量是否到设定的阈值;当本网资源节点数量未达到设定的阈值时,确定对应该资源的资源节点信息中所包含的外网资源节点信息;The determination module 702 in the network entity device provided by the embodiment of the present invention is also used to judge whether the determined number of resource nodes of the local network reaches the set threshold; when the number of resource nodes of the local network does not reach the set threshold, determine the The external network resource node information contained in the resource node information of the resource;

相应地,返回模块703,还用于根据确定模块702确定出的外网资源节点信息,补充返回数量等于阈值与已返回的本网资源节点数量之差的外网资源节点信息至该用户端。Correspondingly, the returning module 703 is further configured to, according to the external network resource node information determined by the determining module 702, complement the external network resource node information returned to the client with a quantity equal to the difference between the threshold value and the returned local network resource node quantity.

本发明实施例提供的网络实体装置中的确定模块702,还用于根据预设的各外网的优先级顺序,依次从对应资源的资源节点信息包含的外网资源节点信息中选取所需返回的外网资源节点信息。The determination module 702 in the network entity device provided by the embodiment of the present invention is also used to sequentially select the required return from the external network resource node information contained in the resource node information of the corresponding resource according to the preset priority order of each external network. The external network resource node information.

各外网的优先级顺序,例如可以根据本网与各外网不同自治域之间的树状订购关系和连接关系确定。The order of priority of each extranet can be determined according to the tree order relationship and connection relationship between the home network and different autonomous domains of each extranet, for example.

返回模块703,还用于将确定模块702选取的外网资源节点信息返回至该用户端。The return module 703 is further configured to return the external network resource node information selected by the determination module 702 to the client.

本发明实施例提供的一种资源节点信息通知方法及网络实体装置,在接收本网用户端发起的获取资源节点信息的请求之后,确定出对应资源节点信息中所包含的本网资源节点信息,并返回给用户端。对用户端来说,由于所接收到的资源节点信息可能全部或绝大多数都是本网节点的信息,所以,当用户端与这些资源节点之间建立连接进行资源传输时所产生的流量基本上都发生在本网内部,较大程度地降低了跨网的流量,减轻运营商网络设备的负担和运营成本,避免了由于跨网流量所产生的不同运营商网络之间通信瓶颈问题。The resource node information notification method and the network entity device provided by the embodiments of the present invention determine the resource node information of the local network contained in the corresponding resource node information after receiving a request for acquiring resource node information initiated by a user terminal of the local network, and return to the client. For the client, since all or most of the received resource node information may be the information of the nodes on the local network, the traffic generated when the client establishes a connection with these resource nodes for resource transmission is basically The above-mentioned information happens inside the network, which greatly reduces the cross-network traffic, reduces the burden on the operator's network equipment and operating costs, and avoids the communication bottleneck problem between different operator networks caused by the cross-network traffic.

进一步地,本发明实施例提供的资源节点信息通知方法及网络实体装置,还通过将本网预先划分为若干各子域网,各子域网周期性地上报本子域网流量密度值信息,本网内的每个节点也周期性地上报自身服务能力信息,索引服务器根据各子域网上报的流量密度值信息和各本网节点上报的服务能力信息,在存储的对应资源的本网资源节点信息中,进一步地选取所属流量密度较小、服务能力较高的本网资源节点信息返回给用户端,提高了用户端与本网资源节点间进行数据传输的效率,且降低了P2P数据传输在本网内发生拥塞的可能性。Furthermore, the resource node information notification method and the network entity device provided by the embodiments of the present invention further divide the local network into several sub-area networks, and each sub-area network periodically reports the traffic density value information of the local sub-area network. Each node in the network also periodically reports its own service capability information, and the index server stores corresponding resources in the local network resource node In the information, the resource node information of the local network with low traffic density and high service capability is further selected and returned to the client, which improves the efficiency of data transmission between the client and the resource node of the local network, and reduces the time spent on P2P data transmission. Possibility of congestion within the network.

即使在存储的对应资源的所有本网资源节点的数量未达到设定的阈值,必须向用户端补充返回外网资源节点信息的情况下,本网的索引服务器可以按照各外网的优先级顺序,例如根据网间传输代价从低到高对应的优先级顺序,在存储的对应资源的外网资源节点中尽量选取与本网间传输代价较低的外网的资源节点信息返回给客户端,在尽可能地降低跨网P2P数据传输流量的前提下,进一步优化了跨网进行P2P数据传输的效率和经济性。Even if the number of all local network resource nodes stored for the corresponding resource does not reach the set threshold, and it is necessary to supplement and return external network resource node information to the client, the index server of the local network can follow the priority order of each external network For example, according to the priority sequence corresponding to the transmission cost between the networks from low to high, try to select the resource node information of the external network with a lower transmission cost between the local network from the stored external network resource nodes of the corresponding resources and return it to the client. On the premise of reducing the cross-network P2P data transmission traffic as much as possible, the efficiency and economy of cross-network P2P data transmission are further optimized.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (12)

Translated fromChinese
1.一种资源节点信息通知方法,其特征在于,包括:1. A resource node information notification method, characterized in that, comprising:本网的索引服务器从外网的资源发布服务器获取资源描述文件并解析,解析出资源描述文件所包含的外网的索引服务器的地址信息;根据所述地址信息向外网的索引服务器获取网络资源对应的资源节点信息;将所述资源描述文件中包含的所述外网的索引服务器的地址修改为自身的地址,并将修改后的资源描述文件发送至本网的资源发布服务器进行发布;The index server of this network obtains and analyzes the resource description file from the resource publishing server of the external network, and resolves the address information of the index server of the external network contained in the resource description file; obtains network resources from the index server of the external network according to the address information Corresponding resource node information; modifying the address of the index server of the external network contained in the resource description file to its own address, and sending the modified resource description file to the resource publishing server of this network for publishing;本网的资源发布服务器接收本网用户端发送的获取资源描述文件的请求;The resource publishing server of this network receives the request for obtaining the resource description file sent by the client of this network;本网的资源发布服务器向本网用户端返回修改后的资源描述文件;The resource publishing server of this network returns the modified resource description file to the client of this network;本网的索引服务器接收本网用户端发起的获取请求,所述获取请求用于获取所需资源对应的资源节点信息;The index server of the local network receives the acquisition request initiated by the client of the local network, and the acquisition request is used to obtain resource node information corresponding to the required resource;本网的索引服务器根据所述获取请求,确定出对应所述资源的资源节点信息中所包含的本网资源节点信息,并返回给所述用户端。The index server of the local network determines the resource node information of the local network included in the resource node information corresponding to the resource according to the acquisition request, and returns the information to the client.2.如权利要求1所述的方法,其特征在于,确定出本网资源节点信息并返回至所述用户端,具体包括:2. The method according to claim 1, wherein the resource node information of the local network is determined and returned to the client, specifically comprising:确定对应所述资源的资源节点信息包含的所有本网资源节点信息;Determining all resource node information on the local network included in the resource node information corresponding to the resource;根据本网各子域网上报的流量负荷参数信息和各子域网内每个本网资源节点上报的自身服务能力信息,从确定出的所述所有本网资源节点信息中选取所需返回的资源节点信息,将选取出来的资源节点信息返回至所述用户端。According to the traffic load parameter information reported by each sub-area network of the local network and the self-service capability information reported by each local network resource node in each sub-domain network, select the information that needs to be returned from the determined information of all local network resource nodes. Resource node information, returning the selected resource node information to the client.3.如权利要求2所述的方法,其特征在于,各子域网的流量负荷参数信息包括各子域网流量密度值信息;3. The method according to claim 2, wherein the traffic load parameter information of each sub-area network includes each sub-area network traffic density value information;本网节点的自身服务能力信息,包括:CPU平均使用率信息、内存平均使用率信息和可用网络带宽信息。The self-service capability information of the nodes on the local network includes: average CPU usage information, memory average usage information, and available network bandwidth information.4.如权利要求3所述的方法,其特征在于,本网各子域网上报流量负荷参数信息,包括:4. method as claimed in claim 3 is characterized in that, each sub-domain network of this network reports traffic load parameter information, comprises:本网各子域网周期性地对本子域网流量的总量进行统计,计算所述流量的总量与本子域网内节点总数的比值得到本子域网的流量密度值并上报。Each sub-area network of this network periodically collects statistics on the total amount of traffic in this sub-area network, and calculates the ratio of the total amount of traffic to the total number of nodes in this sub-area network to obtain the traffic density value of this sub-area network and reports it.5.如权利要求1所述的方法,其特征在于,还包括:5. The method of claim 1, further comprising:本网的索引服务器判断确定出的本网资源节点数量是否达到设定的阈值;The index server of the local network judges whether the determined number of resource nodes of the local network reaches the set threshold;当本网资源节点的数量未达到设定的阈值时,本网的索引服务器确定对应所述资源的资源节点信息中所包含的外网资源节点信息,补充返回给所述用户端;补充返回的外网资源节点信息的数量等于所述阈值与已返回的本网资源节点的数量之差。When the number of resource nodes of the local network does not reach the set threshold, the index server of the local network determines the external network resource node information contained in the resource node information corresponding to the resource, and supplements and returns the information to the client; The quantity of external network resource node information is equal to the difference between the threshold and the returned quantity of local network resource nodes.6.如权利要求5所述的方法,其特征在于,确定外网资源节点信息,并返回给所述用户端,具体包括:6. The method according to claim 5, characterized in that, determining the external network resource node information and returning it to the client, specifically comprising:根据预设的各外网的优先级顺序,依次从对应资源的资源节点信息包含的外网资源节点信息中选取所需返回的外网资源节点信息,将选取出来的外网资源节点信息返回给所述用户端。According to the preset priority order of each external network, select the external network resource node information to be returned from the external network resource node information contained in the resource node information of the corresponding resource in turn, and return the selected external network resource node information to the client.7.如权利要求6所述的方法,其特征在于,所述各外网的优先级顺序,根据本网与各外网的不同自治域之间的树状订购关系和连接关系确定。7. The method according to claim 6, characterized in that, the priority order of each external network is determined according to the tree order relationship and connection relationship between the home network and different autonomous domains of each external network.8.一种网络实体装置,其特征在于,包括:8. A network entity device, comprising:用于从外网的资源发布服务器获取资源描述文件并解析,解析出资源描述文件所包含的外网的索引服务器的地址信息,根据所述地址信息向外网的索引服务器获取网络资源对应的资源节点信息,将所述资源描述文件中包含的所述外网的索引服务器的地址修改为自身的地址,并将修改后的资源描述文件发布的模块;It is used to obtain and parse the resource description file from the resource publishing server of the external network, parse out the address information of the index server of the external network contained in the resource description file, and obtain the resources corresponding to the network resources from the index server of the external network according to the address information Node information, a module for modifying the address of the index server of the external network contained in the resource description file to its own address, and publishing the modified resource description file;接收模块,用于接收本网用户端发送的获取资源描述文件的请求,以及接收本网用户端发起的获取请求,所述获取请求用于获取所需资源对应的资源节点信息;The receiving module is used to receive the request for obtaining the resource description file sent by the user end of the network, and receive the acquisition request initiated by the user end of the network, and the acquisition request is used to obtain the resource node information corresponding to the required resource;确定模块,用于根据所述接收模块接收的获取请求,确定对应所述资源的资源节点信息中所包含的本网资源节点信息;A determining module, configured to determine the resource node information of the local network included in the resource node information corresponding to the resource according to the acquisition request received by the receiving module;返回模块,用于向本网用户端返回修改后的资源描述文件,以及将确定模块确定出的所述本网资源节点信息返回至所述用户端。The return module is used to return the modified resource description file to the user end of the local network, and return the resource node information of the local network determined by the determination module to the user end.9.如权利要求8所述的装置,其特征在于,所述确定模块,还用于确定对应所述资源的资源节点信息包含的所有本网资源节点信息;并根据本网各子域网上报的流量负荷参数信息和各子域网内每个本网资源节点上报的自身服务能力信息,从确定出的所述所有本网资源节点信息中选取所需返回的资源节点信息;9. The device according to claim 8, wherein the determining module is further configured to determine all resource node information of the local network included in the resource node information corresponding to the resource; The traffic load parameter information and the self-service capability information reported by each local network resource node in each sub-area network, select the resource node information that needs to be returned from the determined information of all local network resource nodes;所述返回模块,还用于将所述确定模块选取的资源节点信息返回至所述用户端。The returning module is further configured to return the resource node information selected by the determining module to the client.10.如权利要求9所述的装置,其特征在于,所述接收模块,还用于接收本网各子域网上报的流量密度值信息,以及各子域网内每个节点上报的自身CPU平均使用率信息、内存平均使用率信息和可用网络带宽信息并存储;所述流量密度值信息为每个子域网流量的总量与本子域网内节点总数的比值信息;10. The device according to claim 9, wherein the receiving module is also used to receive the traffic density value information reported by each sub-area network of the local network, and the own CPU reported by each node in each sub-area network The average utilization rate information, memory average utilization rate information and available network bandwidth information are stored together; the traffic density value information is the ratio information of the total amount of traffic in each sub-area network to the total number of nodes in the sub-area network;所述确定模块,还用于根据所述各子域网流量密度值信息、每个节点自身CPU平均使用率信息、内存平均使用率信息和可用网络带宽信息,从所述所有本网资源节点信息中选取所需返回的本网资源节点信息。The determination module is further configured to obtain information from all local network resource nodes according to the traffic density value information of each sub-area network, the average CPU usage information of each node, the average memory usage information, and the available network bandwidth information. Select the resource node information of the network that needs to be returned.11.如权利要求8所述的装置,其特征在于,所述确定模块,还用于判断确定出的本网资源节点数量是否到设定的阈值;当所述本网资源节点数量未达到设定的阈值时,确定对应所述资源的资源节点信息中所包含的外网资源节点信息;11. The device according to claim 8, wherein the determining module is further configured to judge whether the determined number of local network resource nodes reaches a set threshold; when the number of local network resource nodes does not reach the set threshold When the predetermined threshold is determined, determine the external network resource node information contained in the resource node information corresponding to the resource;所述返回模块,还用于根据确定模块确定出的外网资源节点信息,补充返回数量等于所述阈值与已返回的本网资源节点数量之差的外网资源节点信息至所述用户端。The returning module is further configured to, according to the external network resource node information determined by the determining module, supplement and return external network resource node information whose quantity is equal to the difference between the threshold value and the returned local network resource node quantity to the client.12.如权利要求11所述的装置,其特征在于,所述确定模块,还用于根据预设的各外网的优先级顺序,依次从对应资源的资源节点信息包含的外网资源节点信息中选取所需返回的外网资源节点信息;所述各外网的优先级顺序,根据本网与各外网不同自治域之间的树状订购关系和连接关系确定;12. The device according to claim 11, wherein the determining module is further configured to sequentially select the external network resource node information included in the resource node information of the corresponding resource according to the preset priority order of each external network Select the external network resource node information that needs to be returned; the priority order of each external network is determined according to the tree order relationship and connection relationship between the different autonomous domains of this network and each external network;所述返回模块,还用于将所述确定模块选取的所述外网资源节点信息返回至所述用户端。The returning module is further configured to return the external network resource node information selected by the determining module to the client.
CN2008102408217A2008-12-242008-12-24Resource node information notification method and network entity deviceActiveCN101764833B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN2008102408217ACN101764833B (en)2008-12-242008-12-24Resource node information notification method and network entity device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN2008102408217ACN101764833B (en)2008-12-242008-12-24Resource node information notification method and network entity device

Publications (2)

Publication NumberPublication Date
CN101764833A CN101764833A (en)2010-06-30
CN101764833Btrue CN101764833B (en)2013-01-23

Family

ID=42495815

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN2008102408217AActiveCN101764833B (en)2008-12-242008-12-24Resource node information notification method and network entity device

Country Status (1)

CountryLink
CN (1)CN101764833B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102387062B (en)*2010-08-302014-04-23上海悠络客电子科技有限公司Method for improving transmission rate of peer-to-peer (p2p) node in crossing network by dynamic bridging contact
CN102752335B (en)*2011-04-222017-08-08中兴通讯股份有限公司Peer-to-peer overlay network interior joint overload information subscribing method and system
CN102904916B (en)*2011-07-282016-07-06华为技术有限公司Set up the method for point-to-point communication, index server and system
CN103138994B (en)*2011-11-242015-10-07中国移动通信集团公司A kind of method and device determining seed analog node
CN102571597B (en)*2012-02-062015-03-18北京蓝汛通信技术有限责任公司Method for controlling network flow in peer to peer (P2P) protocol system
CN103873282A (en)*2012-12-142014-06-18中国移动通信集团福建有限公司Method and device for realizing P2P data traffic optimization
CN103957269B (en)*2014-05-082017-09-29中国联合网络通信集团有限公司The system of selection of P2P network nodes and point-to-point redirection P2P Redirector servers
CN105162852A (en)*2015-08-122015-12-16西安电子科技大学Distributed resource sharing method of multi-exit heterogeneous wireless network
CN114666072B (en)*2020-12-042023-06-02中国联合网络通信集团有限公司 Illegal transfer point detection method, server, platform, system and storage medium
CN112600915B (en)*2020-12-072023-02-28北京升哲科技有限公司Application method, device, equipment and storage medium of network resources

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6189043B1 (en)*1997-06-092001-02-13At&T CorpDynamic cache replication in a internet environment through routers and servers utilizing a reverse tree generation
CN1972289A (en)*2006-12-012007-05-30华中科技大学Method for suppressing free rider of nodes in peer-to-peer network
CN1988449A (en)*2005-12-202007-06-27中国科学院声学研究所Data distributing/obtaining method based on network information
CN101098272A (en)*2006-06-272008-01-02腾讯科技(深圳)有限公司Seed enquiring method of P2P system and P2P server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6189043B1 (en)*1997-06-092001-02-13At&T CorpDynamic cache replication in a internet environment through routers and servers utilizing a reverse tree generation
CN1988449A (en)*2005-12-202007-06-27中国科学院声学研究所Data distributing/obtaining method based on network information
CN101098272A (en)*2006-06-272008-01-02腾讯科技(深圳)有限公司Seed enquiring method of P2P system and P2P server
CN1972289A (en)*2006-12-012007-05-30华中科技大学Method for suppressing free rider of nodes in peer-to-peer network

Also Published As

Publication numberPublication date
CN101764833A (en)2010-06-30

Similar Documents

PublicationPublication DateTitle
CN101764833B (en)Resource node information notification method and network entity device
EP3528440B1 (en)Path selection method and system, network acceleration node, and network acceleration system
CN102571856B (en)Method, device and system for selecting transition node
CN101631061B (en)Method for informing resource node message and network entity device
US10367893B1 (en)Method and apparatus of performing peer-to-peer communication establishment
US9468025B2 (en)System and method for configuring device connections in an extended network environment
CN101997822A (en)Streaming media content delivery method, system and equipment
US20220070736A1 (en)Traffic steering device
KR20150061013A (en)Peer node and method for improved peer node selection
KR101445047B1 (en)Confidential or protected access to a network of nodes distributed over a communication architecture with the aid of a topology server
US9356824B1 (en)Transparently cached network resources
CN106657183A (en)Caching acceleration method and apparatus
Nguyen et al.Adaptive caching for beneficial content distribution in information-centric networking
US8601151B2 (en)Apparatus and method for receiving data
CN101964741B (en) A node list sending method and device
WO2012167659A1 (en)Data communication method and device in constrained application protocol
Miyoshi et al.A P2P traffic localization method with additional delay insertion
US9832703B2 (en)Optimization of application layer traffic carried by an IP connection over a mobile network
CN108574615A (en) A content transmission method, device and system based on multipath MPTCP
CN102447724B (en)Method, server and system for controlling peer-to-peer (P2P) download
CN113613290B (en)Method, device and terminal for transmitting downlink data stream
Smith et al.Wireless adaptive video streaming with edge cloud
Wang et al.A study on key strategies in P2P file sharing systems and ISPs’ P2P traffic management
CN102088399B (en)Flow control method of peer-to-peer (P2P) network, routing equipment and communication system
Hoang-Van et al.A hierarchical P2P traffic localization method with bandwidth limitation

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp